All Chapters

The Missing Chapter

The Art of Fair Division

How to cut cake so nobody complains — and why it took mathematicians 68 years to figure out

An extension of Jordan Ellenberg's "How Not to Be Wrong"

Chapter 93

Two Kids, One Cake

Every parent knows the problem. Two children. One cake. And the absolute, unshakeable conviction — held simultaneously by both children — that the other one got the bigger piece.

But here's the thing: this problem, one of the oldest and most intuitive fairness puzzles in human experience, has a solution so elegant it almost feels like cheating. And you already know it.

I cut, you choose.

One child divides the cake into two pieces. The other picks first. That's it. That's the whole protocol. And yet embedded in those five words is a self-enforcing fairness mechanism that would make any game theorist weep with admiration. The cutter is incentivized to make the pieces exactly equal — because if they don't, the chooser will snatch the bigger one. The chooser is guaranteed to be happy — they always get their preferred piece. Nobody can complain. Nobody will complain.1

Mathematicians call this property envy-freeness: every participant prefers their own piece to anyone else's (or at least doesn't prefer anyone else's piece to their own). And for two players, "I cut, you choose" has been envy-free since at least the book of Genesis — there's a plausible reading of Abraham and Lot dividing the land of Canaan this way.2

So two players: solved, elegant, ancient. Three players? That's where things get interesting. And by "interesting," I mean "the kind of interesting that consumed decades of mathematical research and produced algorithms of genuinely terrifying complexity."

· · ·

What Does "Fair" Even Mean?

Before we add that third kid to the birthday party, we need to be precise about what we're asking for. Because it turns out there are several different flavors of fairness, and they are not the same thing.

Proportionality: Every player believes they got at least 1/n of the total value (where n is the number of players). With three people, everyone thinks they got at least a third.

Envy-freeness: No player would trade their piece for anyone else's. Everyone prefers what they have.

Equitability: Every player values their own piece equally. If Alice thinks her piece is worth 40%, Bob also thinks his piece is worth 40%.

Now here's the subtle part. Envy-freeness implies proportionality — if you don't envy anyone else, you must think you got at least 1/n, because the n pieces include yours. But proportionality does not imply envy-freeness. You could believe you got a third of the cake's value but still eye your neighbor's piece enviously, because you think they got even more than a third.

And equitability is off doing its own thing entirely. You can have an envy-free division that isn't equitable, and an equitable division that isn't envy-free. Fairness, it turns out, is a surprisingly multidimensional concept.3

Proportional Equitable Envy-Free EF ⊂ Prop Fairness concepts overlap but are distinct

The three flavors of fairness. Envy-freeness implies proportionality, but equitability is independent of both.

Chapter 93

The Third Child Problem

In 1948, the Polish mathematician Hugo Steinhaus posed the three-player fair division problem and immediately proposed a solution: the moving-knife procedure.4

Imagine a knife sliding slowly across the cake from left to right. At any moment, the region to the left of the knife represents a potential first piece. Each player watches, mentally calculating. The moment any player thinks the left portion equals exactly one-third of the total value (by their own subjective measure), they shout "Stop!" — and they take that piece. The remaining two players divide what's left using "I cut, you choose."

This is proportional — the shouter got exactly a third (by their lights), and each remaining player thought the left portion was worth at most a third when it was claimed (otherwise they would have shouted first), so they believe at least two-thirds remains, and "I cut, you choose" guarantees them half of that, which is at least one-third.

But here's the catch: it's not necessarily envy-free. Player 2 might look at Player 1's piece and think, "I got my fair share, sure, but theirs looks bigger." Proportionality without envy-freeness. You're not cheated, but you're not happy either. And if you've ever watched children divide Halloween candy, you know that "not cheated but not happy" is a very real and very loud emotional state.

Selfridge-Conway: Envy-Free for Three

It took until roughly 1960 for John Selfridge and, independently, John Horton Conway to devise a protocol that achieves genuine envy-freeness for three players.5 The Selfridge-Conway protocol is a discrete procedure — no moving knives, just a finite sequence of cuts and choices. It goes like this:

Step 1: Player A cuts the cake into three pieces they consider equal.

Step 2: Player B looks at the pieces. If they think two or more are tied for largest, they pass (go to Step 4). Otherwise, B trims the largest piece to create a two-way tie for largest, setting the trimming aside.

Step 3: Player C chooses first from the three pieces. Then B chooses — but if B trimmed a piece, B must take it if C didn't. Then A gets the remaining piece.

Step 4: The trimmings (if any) are divided using "I cut, you choose" between B and C, with B cutting if C took the trimmed piece, and C cutting if B took it.

Work through the logic and you'll find something remarkable: nobody envies anyone. A cut three equal pieces and gets one — no envy possible. B either trimmed to create a tie (guaranteeing two acceptable options) or was already happy. C picked first from the main pieces. The trimmings are handled so the advantage never accumulates. It's like a little engine of justice, powered by sequential reasoning.

Try it yourself:

🎂 Cake Cutting Simulator

Set how each player values different parts of the cake, then step through the fair division protocol.

· · ·
Chapter 93

The n-Player Abyss

Three players: solved (elegantly) in 1960. So four? Five? n?

This is where the story takes a vertiginous turn. For decades, mathematicians knew that envy-free divisions for any number of players must exist. The Dubins-Spanier theorem, rooted in Lyapunov's theorem on vector measures, guarantees it: given any collection of non-atomic probability measures on an interval (that is, players with continuous preferences over cake), an envy-free division always exists.6 The existence proof is beautiful and non-constructive — it tells you the fair division is out there, like a treasure map that says "somewhere on Earth," but doesn't bother with coordinates.

Finding an actual protocol — a step-by-step procedure that humans (or algorithms) could follow to produce an envy-free allocation — proved excruciatingly difficult. Various unbounded protocols existed: procedures that would eventually converge on envy-freeness but might require an infinite number of steps. What everyone wanted was a bounded protocol: one where you could guarantee termination in a finite number of steps known in advance.

1948 Steinhaus 3-player prop. ~1960 Selfridge-Conway 3-player EF 1995 Brams-Taylor n-player EF (unbounded) 2016 Aziz-Mackenzie n-player EF (bounded!) 68 years from three players to n players

The long road to envy-free cake cutting for any number of players.

In 2016, Haris Aziz and Simon Mackenzie finally cracked it. They published a bounded, discrete, envy-free protocol that works for any number of players.7 The mathematical community celebrated. And then everyone looked at the complexity.

The Aziz-Mackenzie protocol for n players requires at most nnnnnn steps. For four players, that's a number so large it makes the number of atoms in the observable universe look like a rounding error.

This is the kind of result that makes you appreciate the difference between "exists" and "practical." The protocol is correct. It terminates. It is envy-free. And you will die of old age — the heat death of the universe will come and go — before it finishes dividing a cake among, say, ten people. But it exists, and in mathematics, existence is everything.

It's worth sitting with this for a moment, because it illustrates something deep about the relationship between fairness and complexity. Two-player fairness is trivial. Three-player fairness is elegant. And n-player fairness is technically possible but computationally insane. The universe, it seems, was designed for bilateral agreements. Multilateral ones are hard — as anyone who has followed international trade negotiations can confirm.

Chapter 93

Beyond Cake: Fair Division in the Wild

Cake-cutting is a metaphor, of course. The mathematics of fair division applies anywhere something must be shared among people with different preferences:

Divorce settlements. A house, a car, a retirement account, a record collection. Each spouse values these differently. A fair division protocol can produce an allocation where neither party envies the other — which may not produce happiness, but at least eliminates one source of bitterness.

Inheritance. Three siblings and a family estate: a house, farmland, and a set of heirlooms. Each sibling has different attachments. Proportional division is straightforward (sell everything, split the cash), but it destroys value. Fair division protocols can allocate the actual goods envy-free.

International borders. The partition of disputed territory — think the post-WWI division of the Ottoman Empire, or the India-Pakistan partition — is, at its mathematical core, a fair division problem. That it usually goes badly is a testament to how far politics can stray from mathematics.8

Bandwidth allocation. Multiple users sharing a wireless spectrum. Each values different frequency bands differently. Fair division isn't just polite; it's efficient.

The Rent Problem

But perhaps the most relatable application is one that millions of people face every year: splitting rent among roommates.

Three roommates. Three rooms of different sizes and qualities. Total rent: fixed. Who gets which room, and how much does each person pay?

The naive approach — divide by three — ignores the fact that the master bedroom with the en-suite bathroom is obviously worth more than the closet-sized room next to the garbage chute. But "obviously worth more" to whom? And by how much? Everyone values the rooms differently.

Here's where a gorgeous piece of topology enters the picture. Sperner's lemma — a combinatorial result about colored triangulations — guarantees that an envy-free rent division always exists. Francis Su proved this connection in a lovely 1999 paper: if you set up a simplex where each point represents a possible rent division, and you label vertices according to roommate preferences, Sperner's lemma forces the existence of a "rainbow" cell — a rent split where each roommate is assigned a different room, and nobody wants to swap.

The algorithm works by repeatedly subdividing the simplex and following the Sperner path to finer and finer approximations of the fair division. It converges. It works. And unlike the Aziz-Mackenzie protocol, it's actually practical.

Try it:

🏠 Fair Rent Calculator

Three roommates, three rooms, one fixed rent. Set each person's value for each room, and find the envy-free allocation.

$3,000

Room Descriptions

🛏️

Room A — Master

Large, en-suite bath, sunny

📚

Room B — Medium

Mid-size, shared bath, quiet

🪴

Room C — Small

Cozy, street-facing, character

How much would each person pay at most for each room?

Slide to set maximum willingness to pay. Higher = prefers that room more.

· · ·
Chapter 93

The Deeper Lesson

The mathematics of fair division teaches us something that goes well beyond cake and rent. It shows us that fairness is not a feeling — it's a protocol. You can't just declare a division fair and expect everyone to agree. You need a procedure whose structure guarantees the outcome, regardless of what anyone secretly wants or believes.

"I cut, you choose" works not because children are fair, but because the rules are fair. The cutter's self-interest is harnessed in service of equality. The protocol doesn't require good people — it requires good incentives. This is, if you think about it, the same insight behind markets, democracy, and the rule of law. The machinery matters more than the intentions.

Self-Interest (Each player's wants) Protocol (Rules of the game) Fair Outcome (Envy-free division) Good protocols harness self-interest to produce fairness — no altruism required

The engine of fair division: self-interest in, fairness out. The protocol does the work.

And the tower-of-powers complexity of the general case? That teaches us something too. Bilateral fairness is easy. Adding a third party makes it hard. Adding a fourth makes it astronomical. Every additional stakeholder doesn't just add to the complexity — it multiplies it, exponentially upon exponentially. This is the fundamental mathematical reason why international agreements are hard, why corporate mergers are messy, and why group projects are a nightmare.

The Takeaway

Fair division is always possible — the math guarantees it. But the cost of finding it grows so steeply with the number of participants that for practical purposes, we often settle for "fair enough." This isn't cynicism. It's a rational response to computational reality. The perfect division exists. Getting there might take longer than the age of the universe. So we compromise, and we call the compromise civilization.

Next time you watch two children fight over who got the bigger half of a cookie, remember: they're not being petty. They're grappling with one of mathematics' most fundamental problems. And the solution — I cut, you choose — is not just a parenting trick. It's one of the oldest and most elegant algorithms in human history, a tiny engine of fairness that works because it trusts self-interest to do justice's job.

We should be so lucky that all our fairness problems had such tidy solutions.

Notes & References

  1. The "I cut, you choose" protocol dates to antiquity and is discussed in Brams, S.J. and Taylor, A.D., Fair Division: From Cake-Cutting to Dispute Resolution (Cambridge University Press, 1996), pp. 1-5.
  2. Genesis 13:8-12. Abraham lets Lot choose which portion of the land he prefers — a biblical instance of the "divider-chooser" method. See also Brams, S.J., "The Win-Win Solution" (W.W. Norton, 1999).
  3. For a rigorous treatment of the relationships between fairness criteria, see Procaccia, A.D., "Cake Cutting: Not Just Child's Play," Communications of the ACM, 56(7), 2013, pp. 78-87.
  4. Steinhaus, H., "The Problem of Fair Division," Econometrica, 16(1), 1948, pp. 101-104.
  5. The Selfridge-Conway protocol was discovered independently by John Selfridge (c. 1960) and John Horton Conway (c. 1960s). It was unpublished for years; a full description appears in Robertson, J. and Webb, W., Cake-Cutting Algorithms (A K Peters, 1998), Chapter 3.
  6. Dubins, L.E. and Spanier, E.H., "How to Cut a Cake Fairly," The American Mathematical Monthly, 68(1), 1961, pp. 1-17. The existence result relies on Lyapunov's convexity theorem for vector-valued measures.
  7. Aziz, H. and Mackenzie, S., "A Discrete and Bounded Envy-Free Cake Cutting Protocol for Any Number of Agents," Proceedings of the 57th IEEE Symposium on Foundations of Computer Science (FOCS), 2016, pp. 416-427.
  8. Su, F.E., "Rental Harmony: Sperner's Lemma in Fair Division," The American Mathematical Monthly, 106(10), 1999, pp. 930-942. For a broader discussion of fair division in political contexts, see Brams, S.J. and Taylor, A.D., The Win-Win Solution (W.W. Norton, 1999).