Get AI summaries of any video or article — Sign up free
The most unexpected answer to a counting puzzle thumbnail

The most unexpected answer to a counting puzzle

3Blue1Brown·
5 min read

Based on 3Blue1Brown's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

With perfectly elastic, frictionless collisions, the total number of collisions becomes a digit counter for π when the mass ratio is chosen as 100^(d−1).

Briefing

A counting puzzle about two frictionless, perfectly elastic sliding blocks turns into an unexpected appearance of pi: when the incoming block’s mass is 100^(d−1) times the other block’s mass, the total number of collisions equals the first d digits of π. The setup is simple—one block starts moving toward a wall, the other begins at rest—but the collision count behaves in a way that looks engineered rather than derived. For equal masses, the motion produces 3 collisions. With a 100:1 mass ratio, the count jumps to 31. With 10,000:1, it becomes 313 (or 314, depending on the precise burst accounting), and with a 1,000,000:1 ratio it lands on 3,141. The punchline is that powers of 100 in the mass ratio force the collision count to share π’s digits.

The mechanism is framed as a kind of “mathematical croquet”: the heavier block’s momentum gets handed off through a sequence of elastic rebounds between the lighter block and the wall, repeatedly transferring momentum back and forth until both blocks effectively drift away. As the mass ratio grows, the collisions don’t just increase—they bunch up into rapid bursts near a single region of space, making the counting both more dramatic and more numerically delicate. The transcript emphasizes how quickly the collision frequency becomes extreme: for 20 digits of π, the mass ratio required is 100^(20−1), which corresponds to a “big” block mass on the order of 10 times the mass of the supermassive black hole at the Milky Way’s center if the small block is 1 kilogram. That same choice implies counting about 31 billion billion collisions, with clacks occurring around 10^20 per second. Even in a perfect physics simulation, the computation would demand very high precision and would be comically inefficient.

What makes the pi connection especially striking is that it doesn’t arise from π’s usual role as a constant describing continuous geometry or measurement. Instead, π’s digits are functioning as a discrete counter—an integer tally of events in an idealized dynamical system. The transcript points out that the explanation hinges on conservation of energy, which hides a “circle” behind the scenes. Two separate methods are promised for the next installment, each tied to why energy conservation forces a circular structure to emerge from the collision dynamics. The result is less a practical algorithm for computing π and more a mind-bending example of how a continuous constant can surface inside a discrete counting process—while also illustrating how fragile the idealized assumptions are compared with real-world physics.

Cornell Notes

Two frictionless, perfectly elastic blocks collide with a wall in a way that turns event counting into a digit generator for π. When the incoming block’s mass is 100^(d−1) times the other block’s mass, the total number of collisions equals the first d digits of π (e.g., 3 for equal masses, 31 for 100:1, 313/314 for 10,000:1, and 3,141 for 1,000,000:1). As the mass ratio grows, collisions occur in rapid bursts, so the collision frequency becomes astronomically high and would require extreme numerical precision to simulate. The surprising part is why π appears at all; the explanation is said to come from conservation of energy, which effectively introduces a hidden circular structure. The transcript withholds the full derivation for the next video.

How does the collision count behave for simple mass ratios like 1:1 and 100:1?

For equal masses, the moving block transfers momentum to the stationary block, the stationary block bounces off the wall, and then transfers momentum back—ending after 3 total collisions. With a 100:1 mass ratio (incoming block 100 times heavier), the lighter block repeatedly rebounds between the wall and the heavy block, producing 31 collisions before both blocks drift away.

Why do larger mass ratios create “bursts” of collisions instead of a steady stream?

With a very heavy incoming block, each elastic collision transfers only a tiny amount of momentum to the lighter block, but the lighter block’s rapid back-and-forth with the wall keeps feeding momentum exchanges. As the mass ratio grows (e.g., 10,000:1 or 1,000,000:1), most collisions cluster near a specific region in space and occur over a very short time, creating a burst-like event pattern.

What mass ratio is used to target d digits of π, and what does that imply computationally?

To get d digits, the incoming block’s mass is set to 100^(d−1) times the other block’s mass. For d = 20, that ratio is 100^19. If the smaller block is 1 kilogram, the larger block’s mass becomes roughly 10 times the Milky Way’s central supermassive black hole mass. The collision count is about 31 billion billion, and the clack frequency reaches around 10^20 per second, making simulation extremely demanding.

Why is this not a practical π-computing algorithm?

The method is intentionally over-idealized: it assumes frictionless motion and perfectly elastic collisions, conditions far from real physics. Even within a simulation, the required mass ratios explode with d, producing collision counts and event rates that grow so fast that numerical precision and runtime become prohibitive. The transcript calls it comically inefficient despite its elegance.

What’s the promised reason π appears in a discrete collision count?

The explanation is tied to conservation of energy, which is said to reveal a hidden circle underlying the dynamics. Since energy conservation constrains the motion in a way that effectively maps to circular behavior, π’s digits emerge from counting how many discrete collision events occur before the system transitions to “sliding off” behavior.

Review Questions

  1. What specific mass ratio rule links the number of collisions to the first d digits of π?
  2. Describe how the collision pattern changes as the mass ratio increases from 1:1 to 100:1 to 10,000:1.
  3. Why does conservation of energy suggest a “hidden circle,” and how might that connect to π’s appearance?

Key Points

  1. 1

    With perfectly elastic, frictionless collisions, the total number of collisions becomes a digit counter for π when the mass ratio is chosen as 100^(d−1).

  2. 2

    Equal masses produce 3 collisions; a 100:1 mass ratio produces 31 collisions; larger powers of 100 produce collision counts matching π’s digits (e.g., 3,141 for 1,000,000:1).

  3. 3

    As the mass ratio grows, collisions concentrate into rapid bursts near a specific region rather than spreading out over time.

  4. 4

    The method is computationally impractical because the required mass ratios and collision counts explode with the number of digits d.

  5. 5

    For d = 20, the implied mass ratio is 100^19, corresponding to an enormous “big block” mass if the small block is 1 kilogram, and the collision frequency becomes astronomically high.

  6. 6

    The pi connection is framed as coming from conservation of energy, which introduces a hidden circular structure behind the discrete collision counting.

Highlights

Pi emerges as an integer collision count: choosing the incoming mass as 100^(d−1) times the other block’s mass makes the collision total match the first d digits of π.
Increasing the mass ratio doesn’t just increase collisions—it compresses them into a near-instant burst, making the event counting numerically extreme.
The approach is elegant but absurdly inefficient: computing 20 digits would require counting on the order of 31 billion billion collisions under idealized physics.
The promised explanation ties π to a hidden circle created by conservation of energy, not to π’s usual role in continuous geometry.

Topics

Mentioned

  • Henry Cavill
  • Gregory Galperin