Lambdia

Say Six: The Only Opening That Wins the Race to Fifty

Counting to fifty in steps of one to ten, the first player wins, and exactly one of the ten legal openings does it. The stations are 6, 17, 28, 39 and 50, spaced eleven apart because eleven is one more than the largest legal step. The article carries the residue argument that proves the opening is unique, and the target 55 where the advantage flips.

Two players count up to fifty. The first names any integer from 1 to 10. From then on each call must exceed the previous one by between 1 and 10, and nobody may go past 50. Whoever says 50 wins. Do you want to go first?

Yes, and there is exactly one opening that works: 6. Not 1, not 10, and not any of the other eight. That uniqueness is the part of the answer worth proving, because a strategy that happens to win is a different thing from a strategy that cannot lose.

Work from the end

The only way to see this problem is from 50 backwards. Say the position is the last number named, and think about whether the player who has to speak next is in trouble.

From any position in 40 through 49 you simply say 50 and win. So a player who is handed a position in that range is fine, and a player who has to hand one over is not. Which positions force you to hand one over? Exactly 39: from 39 the legal replies are 40 through 49 and nothing else, so whatever your opponent says, you win on the next call.

Fig. 1 — Backward induction on a finite game. Each row is forced by the row above it, so the conclusion is not a guess about how the game feels.

Repeat the reasoning from 39 instead of from 50 and the same thing happens eleven lower. The positions you want your opponent to face are

50,39,28,17,650,\quad 39,\quad 28,\quad 17,\quad 6
(1)

Why eleven and not ten

The spacing is the whole idea, and it is one subtraction:

5039=11=1+1050 - 39 = 11 = 1 + 10
(2)

The gap between stations is one more than the largest legal step. That means a single move can never cross a gap. Your opponent, standing on a station, must land strictly inside the gap above it, and you can always finish the gap because the amount left is between 1 and 10.

The invariant

A position pp is losing for the player about to move exactly when 50p50 - p is a multiple of 11, that is when p6(mod11)p \equiv 6 \pmod{11}. If you hand your opponent such a position, whatever step s{1,,10}s \in \{1,\dots,10\} he takes, 50(p+s)50 - (p + s) is no longer a multiple of 11, and you can restore the property by stepping 11s11 - s.

Fig. 2 — Five stations, eleven apart. The opponent can move anywhere inside a gap and never out of one.

The invariant also explains why the opening is unique. The five stations are the residue class 6mod116 \bmod 11, and a legal first call is any integer from 1 to 10. A residue class modulo 11 meets an interval of ten consecutive integers at most once, and here it meets it exactly once, at 6. Every other opening leaves your opponent a station to take, and a good opponent takes it.

The reflex opening loses

Most people open with 10, on the reasonable-sounding grounds that the biggest step must be the strongest. Check it against the invariant: 5010=4050 - 10 = 40, and 40 is not a multiple of 11. Your opponent replies 17 and from that moment you are the one being managed. Opening with 1 fails the same way, since 4949 is not a multiple of 11 either. Only 6 works.

This is the pattern behind most first-move puzzles of this shape. The strong move is not the biggest or the smallest, it is the one that lands on the arithmetic structure, and the structure is invisible until you look at the game from the finish line.

The general subtraction game

Replace 50 by a target TT and the step range by 11 through ss. Everything above goes through with 11 replaced by s+1s+1:

the player to move from p loses    (Tp)0(mods+1)\text{the player to move from } p \text{ loses} \iff (T - p) \equiv 0 \pmod{s+1}
(3)

The first player wins if and only if TT itself is not a multiple of s+1s+1, and then the unique winning opening is the remainder Tmod(s+1)T \bmod (s+1). With T=50T = 50 and s=10s = 10 that remainder is 6, which is the answer above.

This also locates the honest boundary of the result. Keep the same steps and move the target to 55. Now 55=51155 = 5 \cdot 11, so the starting position 0 is itself a station, the first player has no winning opening at all, and the advantage flips to the second player, who simply answers every call ss with 11s11 - s. One in every eleven targets is like that. The first player is not favoured by the rules of counting games in general, only by this particular target.

Changing who wins

Flip the goal so that whoever says 50 loses. The analysis is identical with the target moved down by one: you now want to hand your opponent 49, so the stations become

49,38,27,16,549,\quad 38,\quad 27,\quad 16,\quad 5
(4)

and the unique winning opening is 5 rather than 6, since 495(mod11)49 \equiv 5 \pmod{11}. The first player still wins. Both versions were solved by backward induction over all 51 positions with no arithmetic assumed, and the station sets came out of the game tree rather than being fed into it.

What breaks the ladder

The invariant needs the set of legal steps to be every integer from 1 to ss. Punch a hole in it and the periodicity can change completely. If the legal steps were {1,2,5}\{1, 2, 5\}, for instance, the losing positions are no longer an arithmetic progression and have to be computed by the same backward pass, which is what the theory of subtraction games is for. The period is usually still eventually regular, but its length is not something you read off the largest step.

The other thing the invariant needs is that overshooting is forbidden. If a player were allowed to name a number above 50 and simply lose, the analysis would not change, because a player sitting on 40 through 49 always has 50 available and would never choose to overshoot. That is worth checking rather than assuming, and it is the kind of rule you should pin down out loud before you start counting.

Sources and further reading

The strategy was verified rather than argued: every position from 0 to 50 was solved by backward induction, the losing set came out as exactly the five stations, and the station strategy was then played against every legal reply at every turn. All 10,000 complete lines of the game were enumerated and the first player won all of them. The general rule in equation (3) was checked against the solver for every target up to 60 and every step limit up to 10.

Comments · 0

Be the first to comment.