Particular games

Maundy Cake

Cutcake with one word added: a cut must divide the piece into equal parts. The values are still whole numbers, and the rule this site has been repeating about them is false — over all 1,296 cakes to 36×36 the largest-odd-divisor account has 946 counterexamples. What survives is a count of prime factors, and it says who wins without saying by how much.

Assumes: Cutcake, where every value is a whole number · The simplicity rule

A rectangular cake scored into unit squares. Left cuts along a vertical scoring line, all the way through; Right cuts along a horizontal one; whoever cannot cut loses. That is Cutcake, and the surprising thing about it is how unsurprising its answers are: every value is a plain whole number, and the number is a count of spare moves.

Maundy Cake is the same cake with one word added. A cut must divide the piece into equal parts. Left may cut an m×nm \times n cake into three m×(n/3)m \times (n/3) cakes if three divides nn, or into two halves if two does, but not into a piece of four columns and a piece of five. Every piece stays on the table and stays in play. Nothing else changes — same board, same alternation, same losing condition.

Maundy Cake: the pieces must be equal. The same cake as Cutcake, cut by the same two players, with one extra rule: a cut must divide the cake into equal pieces, and every piece stays in play. The values are still whole numbers, but the arithmetic that decides them is not Cutcake's — it counts prime factors rather than binary digits.
Fig. 1 Every Maundy cake up to twelve squares on a side, with the 8×12 cake picked out: it is worth nothing at all, and 8 and 12 both have three prime factors counted with multiplicity. All 144 values here were checked to be whole numbers before the figure would draw, and every zero in the table sits where the two dimensions have an equal count of prime factors.

The values are still integers, so the game is still cold: neither player ever gains by cutting, nothing is ever at stake, and the number is a count of moves in hand. But the arithmetic that decides that number is not Cutcake’s, and the account of it this site has been carrying is wrong.

The game it is a variant of

Cutcake’s answer is about binary digits. An m×nm \times n cake is worth nothing exactly when log2m=log2n\lfloor \log_2 m \rfloor = \lfloor \log_2 n \rfloor — when the two dimensions have the same binary length — which puts the zeros of the table into square blocks of doubling size: the single cell 1×11\times1, then the 22-to-33 square, then the 44-to-77 square, then the 88-to-1515 square.

Cutcake: every value an integer. The value of an m by n cake, for every small m and n. Left cuts down, Right cuts across, and neither player ever gains by moving — so nothing is ever at stake, every value is a whole number, and the number says exactly how many spare moves one player has.
Fig. 2 Cutcake up to six squares a side, with the 4×5 cake picked out as one of the balanced ones. Blue where Left is ahead, red where Right is, shaded where the cake is worth nothing — and the shaded cells fall into the blocks the binary lengths cut the numbers into.

That rule was checked here over all 576 cakes to 24×2424 \times 24 and holds without exception, and so does the closed form that goes with it: for mnm \le n, with a=log2ma = \lfloor \log_2 m \rfloor and b=log2nb = \lfloor \log_2 n \rfloor, the cake is worth n/2an/2b\lfloor n/2^a \rfloor - \lfloor n/2^b \rfloor, the rest of the table following by antisymmetry. The mechanism is a count of halvings and the value is a count of spare moves: the binary length is how often a dimension can be halved before reaching one, and the player with more halvings in hand has moves left when the other has none.

Maundy Cake changes which cuts exist rather than merely how many. Cutcake’s Left, on a cake twelve columns wide, has eleven cuts; Maundy Cake’s Left has five, one for each way of writing twelve as a number of equal parts greater than one. The change looks like a restriction and behaves like a substitution: a game organised by halving in, a game organised by factorising out.

The claim, and three ways of reading it

The Cutcake essay names Maundy Cake as its generalisation, and until this census was run it reported that its values are integers and that the count involves the largest odd divisor rather than the binary length. That is the received summary of the game, a reader may well have met it there, and it is false. The sentence has since been corrected on the strength of what follows.

It is also imprecise, so it was tested in every reading that could be made of it, by exhaustive search against a solver that computes Maundy values from the moves and knows nothing about divisors. Write od(k)\mathrm{od}(k) for the largest odd divisor of kk, so that k/od(k)k/\mathrm{od}(k) is the largest power of two dividing kk. Over all 1,296 cakes to 36×3636 \times 36:

  • The value is n/od(n)m/od(m)n/\mathrm{od}(n) - m/\mathrm{od}(m). 946 counterexamples out of 1,296. The first is the 1×31 \times 3 cake, which the rule makes worth 0 and which is worth 1.
  • The cake is worth zero exactly when od(m)=od(n)\mathrm{od}(m) = \mathrm{od}(n). 382 counterexamples. The first is the 1×21 \times 2 cake: the odd parts agree, and the cake is worth 1.
  • The value is Ω(n)Ω(m)\Omega(n) - \Omega(m), counting prime factors with multiplicity — the reading that keeps the shape of the claim and swaps the arithmetic function. 408 counterexamples. The first is 1×41 \times 4, worth 3 where the rule says 2.
Maundy Cake: the pieces must be equal. The same cake as Cutcake, cut by the same two players, with one extra rule: a cut must divide the cake into equal pieces, and every piece stays in play. The values are still whole numbers, but the arithmetic that decides them is not Cutcake's — it counts prime factors rather than binary digits.
Fig. 3 The same corner of the table under the new rule, with the 4×6 cake picked out: worth nothing, and 4 and 6 both have two prime factors. The 1×3 cake in the top row is worth 1 here and 2 under Cutcake — the first place the two games part company, and the first counterexample to the largest-odd-divisor account.

The 1×31 \times 3 cake is the whole refutation in one cell, and small enough to check by hand. Under Maundy Cake, Left’s only legal cut of a strip three squares long is into three 1×11 \times 1 cakes, each worth nothing, so Left’s single option is 00; Right has no cut at all; the value is {0 }=1\{0 \mid \ \} = 1. Under Cutcake, Left may also cut it into a 1×11 \times 1 and a 1×21 \times 2, worth 0+1=10 + 1 = 1, so the value is {1 }=2\{1 \mid \ \} = 2. Every version of the odd-divisor claim has 33 and 11 sharing an odd part and therefore predicts a balanced cake, and the cake is not balanced: it is a win for Left by one move, whoever goes first.

What survives is a count of prime factors

What the exhaustive computation supports, without a single exception over the 1,296 cakes, is a rule about Ω(k)\Omega(k) — the number of prime factors of kk counted with multiplicity, so that Ω(1)=0\Omega(1) = 0, Ω(12)=3\Omega(12) = 3 and Ω(16)=4\Omega(16) = 4:

  • the m×nm \times n Maundy cake is worth zero exactly when Ω(m)=Ω(n)\Omega(m) = \Omega(n), and
  • the sign of the value is the sign of Ω(n)Ω(m)\Omega(n) - \Omega(m).
Maundy Cake: the pieces must be equal. The same cake as Cutcake, cut by the same two players, with one extra rule: a cut must divide the cake into equal pieces, and every piece stays in play. The values are still whole numbers, but the arithmetic that decides them is not Cutcake's — it counts prime factors rather than binary digits.
Fig. 4 Maundy Cake to nine squares a side, with the 1×8 strip picked out: worth 7, against Ω(1) = 0 and Ω(8) = 3. All 81 cakes drawn here are worth whole numbers and every one of them is worth zero exactly where the two dimensions have an equal count of prime factors — which is the rule the table was drawn to test, and which no cell in it breaks.

The mechanism is the same shape as Cutcake’s with a different operation inside it. A Maundy cut of the nn-side into jj equal pieces replaces nn by n/jn/j, and Ω(n/j)=Ω(n)Ω(j)\Omega(n/j) = \Omega(n) - \Omega(j), at most Ω(n)1\Omega(n) - 1 and exactly that when jj is prime. Each cut spends at least one of the nn-side’s prime factors, so no line of play cuts the nn-side more than Ω(n)\Omega(n) times: Left’s supply of cuts, measured in depth, is Ω(n)\Omega(n) and Right’s is Ω(m)\Omega(m), and the player with more still has somewhere to cut after the other has run out.

Cutcake counts the same thing over a smaller alphabet. log2n\lfloor \log_2 n \rfloor is how long a chain of halvings nn admits; Ω(n)\Omega(n) is how long a chain of divisions by primes it admits. One game lets a player divide only by two, the other by anything, and both turn out to be about the length of the resulting chain — which is how a rectangle with no arithmetic in its rules produces a table organised by number theory twice over, by two different pieces of it, from rules a word apart.

The rule also explains the row that looks most irregular. 1×n1 \times n is worth 1 for every prime nn — 2, 3, 5, 7, 11 and 13 all give 1 — because the only equal cut of a prime strip is into unit squares, and the value is {0 }=1\{0 \mid \ \} = 1 however long the strip. A strip of thirteen squares and a strip of two are worth the same one spare move.

Who wins is not by how much

The Ω rule is a complete account of the outcome over the range computed, and it is emphatically not an account of the value. The temptation to promote it is strong and the numbers refuse.

Take the four cakes 1×81 \times 8, 1×121 \times 12, 1×181 \times 18 and 1×201 \times 20. All four have Ω(n)=3\Omega(n) = 3 against Ω(m)=0\Omega(m) = 0; all four are wins for Left by the rule above; and they are worth 7, 10, 13 and 16. Four positions the rule cannot distinguish, four different values, a spread of nine moves. Nor is the difference explained by rescaling: 2×82 \times 8, 2×122 \times 12 and 2×202 \times 20 have the same three counts against one and are worth 3, 4 and 6.

The reason is in the cut. A Maundy cut into jj pieces does not leave one position behind, it leaves jj of them, and the option is worth jj times the value of a single piece — so the size of the factors matters and not only how many there are. Ω\Omega throws that away by construction, being a length. What does give the size is the simplicity rule, and it is the same rule that gives Cutcake its integers.

What the solver computed, and how

An m×nm \times n Maundy cake is built as a game whose Left options are, for each divisor j>1j > 1 of nn, the disjunctive sum of jj copies of the m×(n/j)m \times (n/j) cake, and whose Right options are the corresponding sums for divisors of mm. Nothing in that construction mentions integers, primes or divisor counts. The value comes back from the ordinary canonical-form machinery, and the generator then refuses to draw a cake whose name is not a plain integer, so a single fraction or star in a table would fail the build rather than appear in it.

Where both players’ best options are numbers and Left’s lies below Right’s, the value is the simplest number strictly between them — simplest meaning born earliest, so an integer beats a half and a half beats a quarter. Three cakes, worked:

  • 2×42 \times 4. Left’s best cut is into two 2×22 \times 2 cakes, each worth 0, for an option of 0. Right’s best cut is into two 1×41 \times 4 cakes, each worth 3, for 6. The simplest number strictly between 0 and 6 is 1.
  • 4×64 \times 6. The two bounds are 2-2 and 22, and the simplest number between them is 0 — which is also what the prime-factor rule says, since Ω(4)=Ω(6)=2\Omega(4) = \Omega(6) = 2.
  • 2×122 \times 12. Left’s best cut is into three 2×42 \times 4 cakes, worth 3 in total, beating the halving into two 2×62 \times 6 cakes at 2. Right’s cut gives 20. The simplest number strictly between 3 and 20 is 4.
The simplest number in between. A game whose options are numbers is worth the simplest number strictly between them — and simplest means born earliest, so integers come before halves and halves before quarters. It is not the midpoint, and the difference is the whole content of the rule.
Fig. 5 The three intervals the solver actually used, for the 2×4, 4×6 and 2×12 cakes. The value is the simplest number strictly between the two bounds, and simplest means born earliest rather than nearest the middle: the interval from 3 to 20 gives 4, not 11½, and only the middle case has its value at the midpoint by coincidence.

Two of the three are not midpoints, which is the whole content of the rule and the reason a reader cannot recover the table by averaging. The strips with no Right cut at all are starker still: 1×121 \times 12 has Left’s best option at 9 — three 1×41 \times 4 cakes at 3 each, beating two 1×61 \times 6 cakes at 4 each — and no Right option whatever, so the bound is (9,)(9, \infty) and the value is 10. 1×81 \times 8 has bound (6,)(6, \infty) and comes out at 7.

Two rules that draw the same number of draws

The two games are close on small cakes and part company fast. Up to 4×44 \times 4 they disagree about exactly one cake and its mirror image — the 1×31 \times 3 — and about nothing else among the sixteen. By 6×66 \times 6 they disagree on 18 of 36, by 8×88 \times 8 on 32 of 64, and by 12×1212 \times 12 on 96 of 144.

One cake, two rules about where the knife may go. Every cake to this size under both rules: Cutcake's value above, Maundy Cake's below. Both games hand back whole numbers and neither ever hands back a fraction, and the cells they disagree on are shaded — which is most of them, because forcing the pieces to be equal changes which cuts exist rather than merely how many.
Fig. 6 Both games in one table to six squares a side: Cutcake’s value above in each cell, Maundy Cake’s below, shaded where they differ. They differ on 18 of the 36 cakes drawn. The 2×4 cake is picked out as one they agree on — worth 1 whether the knife may go anywhere or only into equal pieces.

Now the coincidence. Out to 24×2424 \times 24 there are 576 cakes, and each game is worth zero on exactly 166 of them — and only 58 are the same cake. Two rules that share no vocabulary, applied to the same 576 rectangles, produce the same number of balanced positions and disagree about two thirds of which ones they are.

The equality is an accident of where the count stops, and the arithmetic behind it shows exactly what kind of accident. Both rules partition {1,,24}\{1, \dots, 24\} into classes and call a cake balanced when its two dimensions fall in the same class. Cutcake’s classes are the binary bands {1}\{1\}, {2,3}\{2,3\}, {4..7}\{4..7\}, {8..15}\{8..15\}, {16..24}\{16..24\}, of sizes 1, 2, 4, 8, 9. Maundy Cake’s are the numbers with a given count of prime factors: one number with none, nine primes, eight with two factors, four with three, two with four — sizes 1, 9, 8, 4, 2. The count of balanced cakes is the sum of the squares of the class sizes, and the two lists are the same five numbers in opposite order: 1+4+16+64+811 + 4 + 16 + 64 + 81 and 1+81+64+16+41 + 81 + 64 + 16 + 4 are both 166.

Nothing forces that. One list is governed by powers of two and the other by how many integers up to the bound have exactly kk prime factors, and at a bound of 24 they happen to be reverses of one another. It is a coincidence with a completely explicit cause, and it is not claimed to survive a different bound — the 166 and the 58 are measurements at 24×2424 \times 24 and nowhere else.

One cake, two rules about where the knife may go. Every cake to this size under both rules: Cutcake's value above, Maundy Cake's below. Both games hand back whole numbers and neither ever hands back a fraction, and the cells they disagree on are shaded — which is most of them, because forcing the pieces to be equal changes which cuts exist rather than merely how many.
Fig. 7 The same comparison carried out to eight squares a side, where the disagreement stops looking like a handful of exceptions: the two rules differ on 32 of the 64 cakes drawn, Cutcake’s value above and Maundy Cake’s below in each cell. The 1×8 strip is picked out as one they agree on, worth 7 under both — a power of two is the one length where halving and factorising are the same operation.

That last observation is the honest summary of how the two games are related: they agree where the arithmetic they run on agrees, which is on dimensions whose only prime factor is two, and diverge everywhere a third or a fifth gets into the factorisation.

Where the search stops, and what is therefore not claimed

Every number above is a measurement over a bounded range, and the bounds differ between the two games.

Cutcake, computed the way this site has always computed it, stops at 6×66 \times 6. The whole table to that size takes 8.3 seconds, and 7×77 \times 7 exhausts the game registry after 99 seconds without finishing, which is the ordinary situation rather than a surprise. The comparison tables above reach 8×88 \times 8 only because a second implementation was written for them, one that reduces each option before storing it and reaches 40×4040 \times 40 in 22 milliseconds; the two agree on all 36 cakes both can compute. The slow one is deliberately kept, because the cost of the naive recursion is itself a measured quantity elsewhere on this site.

Everything walked, and the little that is kept. For each position: how many squares it is written on, how many positions its graph holds, and how many nodes are in the value that comes out. The value is smaller than the search by two or three orders of magnitude, and it is the only part worth storing — which is exactly why a component's value can be computed once and reused in every sum it appears in.
Fig. 8 What one cell costs. The 5×5 Cutcake cake walks 2,903 distinct positions to produce a value with a single node in it, worth 0; Domineering’s 3×3 board walks 18 for a four-node value, and Clobber’s 2×4 board walks 55 for one node. The answer is smaller than the search by two or three orders of magnitude in every case, and it is the only part worth keeping.

Maundy Cake reaches 36×3636 \times 36 in 10.8 seconds, and the growth of the exhaustive search is steep: 144 cakes in 93 milliseconds, 576 in 2.45 seconds, 1,296 in 10.8. The Ω rule is asserted over exactly that range. It is a measured regularity over 1,296 cakes and not a proof, and the counterexample counts quoted against the odd-divisor readings are counts within the same range — a rule can be wrong 946 times out of 1,296 here and nothing about that is a statement concerning a 50×5050 \times 50 cake.

The largest value found is 22, on the 1×241 \times 24 cake. Left’s best cut there is into three 1×81 \times 8 strips at 7 each, for 21, and there is no Right cut, so the value is the simplest integer above 21.

Normal play throughout. A player who cannot cut loses, and the entire coldness argument is an argument about who moves last — about which player runs out of cuts first. Under misère play — the player who cannot move wins — a cake worth a comfortable +7+7 is not worth anything of the kind, and none of the integer arithmetic survives the change. Maundy Cake under misère is a different game with the same rules.

What the tables cannot show

The grids are complete answers to a bounded question and they conceal three things worth naming.

They cannot show the rule they were drawn to test. Cutcake’s zeros form visible blocks: a reader sees squares of doubling size and can guess the binary length from the picture. Maundy Cake’s zeros do not form a shape. They are scattered across the table exactly as a function of Ω\Omega requires, and a scattering is what a completely determined pattern looks like when the function determining it is not geometric. That the zeros are the equal-Ω\Omega cells is asserted on the figure and cannot be read off it.

They cannot show the option trees. The 5×5 Cutcake cell summarises 2,903 positions, and the Maundy cells are the tops of recursions of the same kind. The grid gives no way of seeing which of those positions mattered, or that 2×122 \times 12’s value came from a cut into three rather than a cut into two.

They cannot show what is outside them. “No counterexample” is a claim about an absence, and an absence past the edge of the table has no picture at all. The strongest sentence in this essay — that the Ω rule has zero exceptions — is the one with nothing to look at. What makes it checkable rather than merely asserted is that the census keeps every exception it finds and returns them, so a rule that failed once would say so.

Who found it, and when

Cutcake is Conway’s, and appears in On Numbers and Games (1976) as an early worked example, placed deliberately before the games with fights in them so that a reader can watch the theory produce a complete answer once before being asked to trust it on a hard case.

Maundy Cake is from Winning Ways (Berlekamp, Conway and Guy, 1982), where it sits beside Cutcake with the same moral: a cold partizan game whose values are integers and whose table is organised by a number-theoretic quantity the rules never mention. Its name is the cake of Maundy Thursday, cut into equal portions.

What has travelled since is a one-line summary, and one line is not enough room for this game’s answer. The version that reached this site’s own rung-1 essay — largest odd divisor rather than binary length — is wrong under every reading of it that can be computed, and wrong in a way that is easy to see once the table is drawn and impossible to see from the sentence. Wythoff’s game has the golden ratio in it and is usually restated correctly, because what is being restated is a formula. Maundy Cake’s answer is not a formula, and the compression lost it.

The ladder from here

This is the second rung of the Cutcake anchor, and the first place its base rung turned out to need correcting.

The rungs above it: the proof that both games are cold, done properly by induction on the options rather than checked over a table, which is what would turn the Ω rule from a regularity over 1,296 cakes into a theorem. Maundy Cake in a hot sum, where an integer-valued component sitting beside a fight becomes a position neither player should ever move in, and where the count of spare moves finally has to be traded against something. The size question on its own — what function of mm and nn gives the magnitude, given that Ω\Omega gives only the sign, and whether the four values 7, 10, 13 and 16 have a closed form or only a recursion. And the classification of cold partizan games, which nobody has completed: Cutcake is cold, Maundy Cake is cold, Col very nearly is, Domineering on boards this small is not cold at all, and no one can say in advance which side of that line a new game falls on.

The thing established here is smaller than a theorem and more useful than an anecdote. A game one word away from a solved one is not one word away from its solution; the arithmetic can change completely, the received summary can be false, and a table of 1,296 computed values is what tells the difference between the two.

Part 2 of 7

One argument about Cutcake. The parts either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

What this makes readable

Essays that declare this one a prerequisite.

The objects named here

The third axis, after the field and the series: the games, values and theorems themselves, and every essay that touches each one.

Binary bandCold gameCounterexampleCutcakeDisjunctive sumExhaustive searchInteger valuedLargest odd divisorMaundy cakePartizanPrime factorsSimplicity ruleSpare moves