Skip to content
Vamshi Jandhyala

Books · The Fiddler: Solutions

Chapter 2

Camp Algebra

↓ Download PDF handout

Camp Algebra held a competition in which campers were split into two teams: the Aces and the Ciphers. Members of the two teams competed in a triathlon of chess, basketball, and baseball, and the results are reproduced below.

To commemorate the event, the counselors designed a cuboidal trophy with dimensions that cleverly related to the results of the three events. Then, being Camp Algebra after all, they computed the square of the shortest path along the trophy’s surface from one corner to the opposite corner. After decoding that number, what camp mascot did they carve into the trophy?

The Fiddler, Zach Wissner-Gross, August 14, 2026(original post). Originally set for the Financial Times’ games special, edited by Ollie Roeder. There was no Extra Credit this week.

The official solution appears in the post of August 21, 2026, which had not been published when this chapter was written. The answer here is my own.

Read the team names first

This one is a puzzle in the style of the MIT Mystery Hunt rather than a mathematical brainteaser, so the work is in noticing rather than deriving. What there is to notice is stated in the first sentence, before any of the events.

An ace is a one and a cipher is a zero. Both words carry that meaning in ordinary English, a cipher being the old name for the digit nothing, and the two teams are named for the two binary digits. That is the only instruction the puzzle gives about how to read anything, and it turns out to be enough: it says how to read the basketball, it says how to read the baseball, and it says how to read the final number.

Three events give three results, three results give three dimensions, and the trophy does the rest.

Chess

Occupatus, playing as white for the Aces, had Castor, playing as black for the Ciphers, on the ropes. But the industrious Castor clearly gave a dam. With what next move did Castor turn the tables?

The game runs to 24.Rd124.\,\mathrm{Rd}1, reaching the position below. White is a rook up for a knight and looks to be winning comfortably.

After 24.Rd124.\,\mathrm{Rd}1, Black to play and win. White pieces are light, Black pieces dark; pawns are marked p.

Black’s queen on d4\mathrm{d}4 already looks down the open file at the rook on d1\mathrm{d}1, which is the first thing anyone checks and the wrong thing to play: 24 Q ⁣× ⁣d1+24\ldots\ \mathrm{Q}\!\times\!\mathrm{d1+} is answered by 25.K ⁣× ⁣d125.\,\mathrm{K}\!\times\!\mathrm{d1} and Black has traded a queen for a rook.

The move that wins is quieter, and it is made by the one piece that has not moved all game: 24 Bb4+24\ldots\ \mathrm{Bb4+} The bishop steps out of f8\mathrm{f}8 to check along the a5\mathrm{a}5e1\mathrm{e}1 diagonal. Now count White’s replies. The king has nowhere to go, nothing can capture the bishop, and of the two squares that would block the diagonal, c3\mathrm{c}3 cannot be reached by any white piece. Exactly one legal move remains on the board, 25.Rd2,25.\,\mathrm{Rd2}, and the rook that interposes is pinned against its own king by the queen it is blocking, so it cannot recapture: 25 Q ⁣× ⁣d2#25\ldots\ \mathrm{Q}\!\times\!\mathrm{d2\#} That is the dam. Castor forces White to build one across the diagonal and then walks through it, and the flavour is a fair warning as well as a joke, since Castor is the beaver’s genus.

For the trophy only the result matters. The Ciphers win the chess, a decisive chess game is scored 1100, and the margin is 1\mathbf{1}.

Basketball

The Aces crushed the Ciphers in the second competition. While the box score showed all the players’ names in order, it neglected to tally the two teams’ scores bit by bit.

The box score gives each player’s shooting but no team totals, so the reader has to add them up. Total field goals include the three-pointers, so a player’s points are 2(FG3FG)+3(3FG)+FT2\,(\mathrm{FG} - \mathrm{3FG}) + 3\,(\mathrm{3FG}) + \mathrm{FT}.

Aces FG 3FG FT Pts
Parker, Unity 8–14 2–4 2–2 20
Edwards, Solo 7–12 3–5 2–3 19
Roberts, Singleton 7–11 1–3 3–3 18
Foster, Primo 6–10 2–4 3–5 17
Ellis, Uno 6–9 2–3 4–4 18
Carter, Tally 6–10 3–5 3–4 18
Thompson, O’Neal 6–10 4–4 1–1 17
127
Ciphers FG 3FG FT Pts
Smith, Zero 5–9 2–4 1–2 13
Taylor, Nil 4–8 2–3 2–3 12
Allen, Void 4–9 1–3 3–5 12
Harris, Off 4–7 1–2 2–2 11
Ingram, Null 4–6 1–2 2–4 11
Robinson, Nought 4–7 2–4 1–2 11
Davis, Nada 3–6 1–2 3–4 10
80

Now look at the first names, which is what all the players’ names in order is pointing at. Every Ace is a word for one: Unity, Solo, Singleton, Primo, Uno, Tally, O’Neal. Every Cipher is a word for nothing: Zero, Nil, Void, Off, Null, Nought, Nada.

Seven players a side, so each team’s names spell a seven-bit string, and for the Aces that string is 11111111111111, which is 127127. Their points also come to 127127. The puzzle has quietly checked your reading for you, which is what the phrase bit by bit is doing there.

The Ciphers score 8080, so the margin is 12780=47127 - 80 = \mathbf{47}.

Baseball

In the final event, the Aces narrowly defeated the Ciphers, 5–4. But whatever did the scoreboard look like? Surely both line-ups had something to say about that.

The play-by-play is given inning by inning, so replay it. Singles, doubles, triples, home runs and walks advance the runners in the ordinary way, and strikeouts, fly outs and ground outs are outs. Every half-inning comes to exactly three outs, which is the check that the replay is being done correctly, and the totals come to 5544 as the problem promises.

1 2 3 4 5 6 7 8 9 R
Aces 0 0 1 0 1 1 1 0 1 5
Ciphers 0 1 0 1 0 0 1 1 0 4

The detail worth noticing is what the scoreboard does not contain. No inning ever scores two. Nine innings apiece and every entry a 00 or a 11, so the line score is itself a pair of binary numbers, nine bits each. That is the third appearance of the same idea, after the team names and the box score, and it is why the line-ups have something to say.

The margin is 54=15 - 4 = \mathbf{1}.

The trophy

Three events, three margins, and the dimensions follow: 1×47×1.1 \times 47 \times 1 . A long thin bar, which is a strange trophy but exactly the right shape for the question being asked, because it is the case where the shortest surface route is not the obvious one.

To find that route, unfold the box flat. A path between opposite corners crosses two faces, and each choice of two adjacent faces unfolds into a rectangle in which the path is a straight line, so its length is a hypotenuse. For a box a×b×ca \times b \times c the three candidates are (a+b)2+c2,(a+c)2+b2,(b+c)2+a2,(a+b)^2 + c^2, \qquad (a+c)^2 + b^2, \qquad (b+c)^2 + a^2 , and the shortest path squared is the smallest of them. With {a,b,c}={1,1,47}\{a,b,c\} = \{1,1,47\} two of the three coincide: (1+1)2+472=2213,(1+47)2+12=2305.(1+1)^2 + 47^2 = 2213, \qquad (1+47)^2 + 1^2 = 2305 . Going the long way round one of the unit ends costs less than crossing the narrow face, because the 4747 enters unsquared-with-a-partner in one case and squared-alongside-a-11 in the other. The winner keeps the two unit steps together:  shortest path2  =  22+472  =  2213. \boxed{\ \text{shortest path}^2 \;=\; 2^2 + 47^2 \;=\; 2213. \ }

Decoding 2213

The puzzle has now said binary three times, so write the number in binary: 2213=1000101001012.2213 = 100010100101_2 . That is twelve bits, which is not a multiple of five, so pad it to fifteen and cut it into three groups. Five bits is exactly the width one letter needs, since Z=26\mathrm{Z} = 26 fits in five bits and A=1\mathrm{A} = 1: 000100010100101255BEE\begin{array}{ccc} 00010 & 00101 & 00101 \\[2pt] \downarrow & \downarrow & \downarrow \\[2pt] 2 & 5 & 5 \\[2pt] \mathrm{B} & \mathrm{E} & \mathrm{E} \end{array} The padding is forced rather than chosen: pad to twenty bits instead and the leading group is 0000000000, which is not a letter.  The mascot is a BEE. \boxed{\ \text{The mascot is a } \textbf{BEE}. \ }

The computation

A puzzle of this kind can be argued into almost any answer, so it is worth pinning this one down independently of the argument that produced it. Search every cuboid with integer sides up to 400400, compute the shortest surface path squared, decode it five bits to a letter, and ask which dimensions can possibly spell bee.

def path2(a, b, c):
    return min((a+b)**2 + c**2, (a+c)**2 + b**2, (b+c)**2 + a**2)

def decode(n):                       # five bits to a letter, A = 1
    s = bin(n)[2:]
    s = s.rjust(((len(s) + 4) // 5) * 5, "0")
    v = [int(s[i:i+5], 2) for i in range(0, len(s), 5)]
    return "".join(chr(64 + x) for x in v) if all(1 <= x <= 26 for x in v) else None

hits = [(a, b, c) for a in range(1, 401) for b in range(a, 401)
        for c in range(b, 401) if decode(path2(a, b, c)) == "BEE"]
print(hits, path2(1, 1, 47))
# [(1, 1, 47)] 2213

Exactly one triple in that whole range spells it, and it is 1×1×471 \times 1 \times 47. The three margins were read off three unrelated events, none of which knows anything about the other two, and they land on the only dimensions that work. The chess line was checked the same way, by generating every legal move in the position and every White reply to it: Bb4+\mathrm{Bb4+} is mate in two, Qc3+\mathrm{Qc3+} is a slower forced mate in three, and nothing else wins at all.