You're at a party. Someone hands you a pizza and a knife. One straight cut and you've got 2 pieces. Another cut — if it crosses the first — gives you 4. A third, crossing both previous cuts, yields 7. Your friend bets you can't get more than 10 pieces from four cuts. Should you take the bet?
This humble question — what is the maximum number of regions created by n straight cuts across a disk? — is a gateway into one of the most elegant intersections of combinatorics, numerical analysis, and physics. Its answer connects a technique Newton refined in the 17th century to the very law Galileo discovered rolling balls down ramps in Padua. The thread that ties them together is surprisingly simple: the pattern hiding inside differences.
Let's set up the rules precisely. Each cut is a full straight line across the pizza (not a chord ending early). To maximize pieces, every new line must cross all the previous ones, and no three lines may meet at a single point. Under these conditions, what is the maximum number of regions R(n) for n cuts?
Try it yourself below. Add cuts one at a time and watch the regions multiply. Every region is colored distinctly so you can count them.
Each new line is arranged so that every pair of lines intersects inside the circle, with no three lines meeting at a single point — guaranteeing the maximum number of regions. Every region is flood-filled with a distinct color so you can verify the count.
Count carefully and you'll build up this table:
| Cuts (n) | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| Regions R(n) | 1 | 2 | 4 | 7 | 11 | 16 | 22 |
The sequence 1, 2, 4, 7, 11, 16, 22 … doesn't jump out as an obvious formula. The differences between terms are 1, 2, 3, 4, 5, 6 — the natural numbers themselves. And the differences of those differences are all 1. One more step and we hit all zeros. This is the telltale signature of a quadratic — a polynomial of degree 2. But how do we extract the exact formula?
Enter a technique that Newton himself championed.
The method of divided differences is one of the oldest and most powerful tools in numerical mathematics. The idea is deceptively simple: given a table of data, compute successive "differences" between consecutive values. If those differences eventually become constant (or zero), you've discovered the polynomial hiding in your data — and you can reconstruct it exactly.
For equally spaced data we use forward differences, denoted by the Greek letter delta (Δ). The first forward difference is Δf(n) = f(n+1) − f(n). The second difference is Δ²f(n) = Δf(n+1) − Δf(n), and so on. Let's apply it to our pizza data:
| n | R(n) | Δ¹ | Δ² | Δ³ |
|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 0 |
| 1 | 2 | 2 | 1 | 0 |
| 2 | 4 | 3 | 1 | 0 |
| 3 | 7 | 4 | 1 | |
| 4 | 11 | 5 | ||
| 5 | 16 | |||
| 6 | 22 |
The top entries of each column (highlighted in gold) — 1, 1, 1 — are the key values we need. Third differences vanish (green zeros), proving the data is exactly quadratic.
The third differences are all zero. This is the crucial signal. A fundamental theorem in finite calculus states: if the k-th forward differences of a sequence are all zero, then the sequence is generated by a polynomial of degree at most k − 1. Since Δ³ = 0, our pizza function R(n) is a polynomial of degree at most 2 — a quadratic.
Newton's interpolation formula lets us reconstruct the polynomial using the top row of the difference table — the highlighted values 1, 1, 1 from our forward difference table above. For equally spaced points starting at n = 0:
Here C(n,k) denotes the binomial coefficient "n choose k." Plugging in n = 4 gives R(4) = (16 + 4 + 2)/2 = 11. Your friend was wrong — and you should have taken the bet.
But this formula does more than answer a party trick. It demonstrates a profound principle: when differences stabilize, pattern becomes law. And this exact same principle was waiting, centuries earlier, in a physics laboratory in Italy.
In the 1600s, Galileo Galilei set out to understand the most basic motion in nature: the fall of a heavy body. Legend has it he dropped objects from the Leaning Tower of Pisa; what's certain is that he meticulously timed falling objects and discovered a stunning regularity.
What Galileo recorded was distance versus time. He found that the distances traveled in successive equal time intervals followed the pattern of odd numbers: 1, 3, 5, 7, 9 … And the cumulative distances — 1, 4, 9, 16, 25 — were perfect squares. Distance, he concluded, grows as the square of time.
But let's pretend we don't know this. Let's play Galileo ourselves and use the tool Newton would later formalize — divided differences — to extract the law of motion from raw data. Watch the ball drop and notice how the gaps between time markers grow wider — the unmistakable signature of acceleration.
Free fall under gravity: g = 32 ft/s². Distance markers appear at each half-second. The widening gaps between marks reveal that the ball is accelerating — covering more distance in each successive interval.
Here is the data for a ball dropped from rest under gravity (g = 32 ft/s²), with distance measured in feet at half-second intervals. Since d = ½gt², we get d = 16t²:
| Time t (s) | Distance d (ft) | Δ¹ | Δ² | Δ³ |
|---|---|---|---|---|
| 0.0 | 0 | 4 | 4 | 0 |
| 0.5 | 4 | 8 | 4 | 0 |
| 1.0 | 16 | 12 | 4 | 0 |
| 1.5 | 36 | 16 | 4 | |
| 2.0 | 64 | 20 | ||
| 2.5 | 100 |
Look at the structure. The first differences — 4, 8, 12, 16, 20 — grow steadily. The second differences are constant at 4. The third differences are zero. The same signal we found in the pizza problem: a quadratic hiding in the data.
But there's a beautiful pattern in the raw distances too. The values 0, 4, 16, 36, 64, 100, divided by 4, give 0, 1, 4, 9, 16, 25 — perfect squares. And the ratios between successive intervals follow 1 : 3 : 5 : 7 : 9 — the odd numbers that Galileo himself marveled at. Distance grows as the square of time, and the constant second difference is the numerical fingerprint of uniform acceleration.
Galileo stated this as an empirical law. Newton's divided differences give us the machinery to derive it from raw data — no physics intuition required. Feed a table of numbers, compute the differences, and the polynomial writes itself.
Step back and consider what just happened. We took two problems from entirely different worlds — one a puzzle about slicing a pizza, the other a fundamental question about how objects fall — and cracked both open with the same simple act: subtraction.
Galileo stared at distances piling up — 1, 4, 9, 16, 25 — and subtracted his way to a constant. That constant was gravity. Newton aimed the same machinery at the heavens. Babbage was so captivated he spent his fortune building a machine to do nothing but subtract — the Difference Engine, philosophical ancestor of the computer you're reading this on.
From a dinner table puzzle to the laws of the cosmos — all it took was subtraction.