Quant Memo
Core

Maximum Regions From n Straight Cuts

The formula for the most pieces you can divide a plane (or a pancake, or a pizza) into with n straight cuts, derived by asking what each new cut can possibly add.

Prerequisites: Mathematical Induction

"You have a pancake. What's the maximum number of pieces you can cut it into with 5 straight cuts?" is a classic warm-up puzzle. The trap is guessing 25=322^5=32 by analogy to folding paper — that's wrong. The right approach asks a sharper question: when you add one more straight cut to an existing arrangement, what's the most new pieces it can possibly create?

What one new cut can add

Each new straight line can cross every previous line at most once (two straight lines intersect in at most one point). If the nn-th line crosses all n1n-1 previous lines, it gets divided into nn segments by those n1n-1 crossing points (a line split at n1n-1 points has nn pieces). Every one of those segments slices exactly one existing region into two, adding exactly one new region per segment. So the nn-th cut adds at most nn new regions — no more, no less, when positioned to cross every prior line at a distinct point.

Building the recurrence and formula

Let R(n)R(n) be the maximum number of regions with nn lines. With 00 lines, R(0)=1R(0)=1 (the whole plane, uncut). Each new line adds at most nn regions when it's the nn-th line drawn: R(n)=R(n1)+nR(n) = R(n-1) + n. Unrolling this recurrence: R(n)=1+1+2+3++n=1+n(n+1)2R(n) = 1 + 1 + 2 + 3 + \cdots + n = 1 + \dfrac{n(n+1)}{2}. In plain English: start with 1 region (uncut), then add 1,2,3,,n1, 2, 3, \ldots, n regions as each successive line crosses one more prior line than the last.

R(n)=1+n+(n2).R(n) = 1 + n + \binom{n}{2} .

This is the same formula written using the binomial coefficient (n2)=n(n1)2\binom{n}{2} = \dfrac{n(n-1)}{2}: you always get the base 1 region, plus nn regions from the lines' own presence, plus one extra region for every pair of lines that cross.

Worked example: n = 4 cuts

R(4)=1+4+(42)=1+4+6=11R(4) = 1 + 4 + \binom{4}{2} = 1 + 4 + 6 = 11. Check by building up: R(0)=1R(0)=1, R(1)=1+1=2R(1)=1+1=2 (one line splits the plane in two), R(2)=2+2=4R(2)=2+2=4 (a second line, crossing the first, adds 2), R(3)=4+3=7R(3)=4+3=7 (a third line, crossing both others, adds 3), R(4)=7+4=11R(4)=7+4=11 (a fourth line, crossing all three others, adds 4). So 5 straight cuts through a pancake give at most R(5)=1+5+(52)=1+5+10=16R(5) = 1+5+\binom{5}{2} = 1+5+10=16 pieces — not 32.

n=0: 1 n=3: 7 n=5: 16
Regions grow quadratically in n — R(n) = 1 + n + C(n,2) — much slower than the 2^n a naive folding analogy would suggest.

What this means in practice

The general move here — ask "what's the most a single new addition can contribute given everything already placed," then sum that contribution across all additions — is a reusable trick for a whole family of "maximum count" combinatorics interview questions, not just line-cutting: maximum intersection points among nn circles, maximum regions from nn planes cutting 3D space, maximum crossings among nn chords in a circle. Each has its own per-step contribution to sum, but the derivation pattern is identical.

The nn-th straight cut through a plane can add at most nn new regions (one per crossing with a prior line, plus one). Summing gives R(n)=1+n+(n2)R(n) = 1 + n + \binom{n}{2} — quadratic growth, not exponential, despite the intuitive pull toward 2n2^n.

The tempting wrong answer is 2n2^n, borrowed from folding-paper doubling intuition. Straight cuts through a shared plane don't double the count each time — each new cut only adds as many regions as the number of existing lines it crosses, capped by how many lines came before it.

Related concepts

Practice in interviews

Further reading

  • Graham, Knuth, Patashnik, Concrete Mathematics, ch. 1
ShareTwitterLinkedIn