The TrapEpisode 2
Episode 2
Claude Opus 5.5 · Gemini 4 Argon · GPT-6 Luna
Each puzzle has one short answer. Try it before you open the answers.
Setup, and who wrote the rules
- Claude
- Claude Opus 5.5, through Claude Code. Reasoning level: Claude Code's default; we don't set it. Paid with a Claude Pro plan.
- Gemini
- Gemini 4 Argon, through Antigravity CLI. Reasoning level: the “medium” variant of Gemini 4 Argon. Paid with a paid Gemini API key.
- Codex
- GPT-6 Luna, through Codex CLI. Reasoning level: Codex's default; we don't set it. Paid with a ChatGPT account.
These setups are not matched. Each lab's tool runs at its own reasoning level, with its own limits, and we haven't tuned them to be equal. A score here is the game's score for this episode, not a ranking of the models.
The director is Claude. A separate Claude session designed this format and wrote its rules and prompts, and Claude also plays. Rules written by Claude may suit the way Claude works. What we learned says what we can and can't claim.
Claude's puzzle
A lock code is a string of exactly 7 digits, each from 0 to 9. Leading zeros are allowed. For every pair of adjacent digits, the absolute difference must be exactly 1 or exactly 3. The first digit and the seventh digit must be the same. Apart from these rules, digits can repeat freely anywhere in the code.
How many such lock codes exist?
Claude revised it on rereading.
Answers and ruling
Gemini privately 95% sure
I couldn’t run a command to compute this via script because tool permissions are refused in headless mode, so I will solve it analytically.
Let graph $G$ have vertices $0,\dots,9$ with edges when $|u-v| \in \{1, 3\}$. Since $G$ is bipartite (even vs. odd digits) and symmetric under $x \mapsto 9-x$, we count closed walks of length 6 by computing the number of 3-step paths $A^3_{u,v}$ between vertices $u \in \{0,2,4,6,8\}$ and $v \in \{1,3,5,7,9\}$, then summing $2 \sum_{u,v} (A^3_{u,v})^2$.
Adjacent lists for even vertices:
- $0$: $\{1, 3\}$
- $2$: $\{1, 3, 5\}$
- $4$: $\{1, 3, 5, 7\}$
- $6$: $\{3, 5, 7, 9\}$
- $8$: $\{5, 7, 9\}$
Computing $A^2$ on even vertices (rows/cols $0,2,4,6,8$):
- Row $0$: $(2, 2, 2, 1, 0)$
- Row $2$: $(2, 3, 3, 2, 1)$
- Row $4$: $(2, 3, 4, 3, 2)$
- Row $6$: $(1, 2, 3, 3, 2)$
- Row $8$: $(0, 1, 2, 2, 2)$
Multiplying $A^2$ by $A$ gives the $5 \times 5$ matrix $M = A^3$ (rows $0,2,4,6,8$, cols $1,3,5,7,9$):
- Row $0$: $(6, 7, 5, 3, 1)$ $\to$ sum of squares $= 120$
- Row $2$: $(8, 10, 9, 6, 3)$ $\to$ sum of squares $= 290$
- Row $4$: $(9, 12, 12, 9, 5)$ $\to$ sum of squares $= 475$
- By symmetry, Row $6$ yields $290$ and Row $8$ yields $120$.
Summing over all 10 starting digits: $2 \times (120 + 290 + 475 + 290 + 120) = 2 \times 1295 = 2590$.
2590Wrongpoint to Claude
Codex privately 99% sure
Let the digits be vertices \(0,\ldots,9\), with an edge between digits whose difference is 1 or 3. A valid code is a length-7 closed walk in this graph, so the count is the trace of the adjacency matrix to the seventh power.
Counting closed walks by dynamic programming over each starting digit gives a total of 1,304.
1304Wrongpoint to Claude
Answer: 3080. Claude's blind check, by a fresh copy without the answer: 3080, passed.
Claude
before, aloneThe count is the trace of A⁶, where A is the adjacency matrix of the digits 0–9 with steps of ±1 and ±3. I solved it again from the puzzle text. I took three steps from each starting digit v to get row v of A³, then summed the squares of each row. Digits 0 to 4 give 120, 226, 290, 429 and 475, which add up to 1540. The reflection v↔9−v gives the same 1540 for digits 5 to 9, so the total is 3080.
The old sentence “Two other digits may also repeat freely” was unclear: it could be read as an extra limit on repeats. I replaced it with a plain statement that repeats are allowed.
Solvers who count path by path tend to slip at the edges (0, 1, 2, 7, 8, 9), where some steps of ±1 or ±3 fall outside 0–9. Others treat the digits as wrapping around mod 10, or forget that the step back into the first digit must also follow the rule.
Gemini's puzzle
Start with the six-character string A B C D E F (1-indexed, so A is at position 1 and F is at position 6). Apply the following three transformations in order:
- Reverse the order of all characters currently at prime-numbered positions.
- Swap
Ewith the character immediately to its right; then swapAwith the character immediately to its right. - Shift the entire string left by $k$ positions (wrapping around), where $k$ is the 1-indexed position of
Eat the end of step 2.
Finally, take the 1-indexed positions of B, D, and F in the resulting string (in the order B, D, F) and concatenate them into a 3-digit number. What is that number?
Gemini revised it on rereading.
Answers and ruling
Claude privately 90% sure
Step 1: The prime positions are 2, 3 and 5, which hold B, C and E. Reversing them puts E, C and B there, giving A E C D B F.
Step 2:
- Swap E with the character to its right (C):
A C E D B F. - Swap A with the character to its right (C):
C A E D B F. - E is now at position 3, so k = 3.
Step 3: Shift left by 3, wrapping around: D B F C A E.
Result: B is at position 2, D at position 1 and F at position 3, which concatenate to 213.
213Rightpoint to Claude
Codex privately 100% sure
Prime-position characters B C E reverse to E C B, giving A E C D B F. The swaps produce C A E B D F, with E at position 3. Shifting left by 3 gives B D F C A E. So B, D, and F are at positions 1, 2, and 3.
123Wrongpoint to Gemini
Answer: 213. Gemini's blind check, by a fresh copy without the answer: 213, passed.
Gemini
before, aloneModels frequently misidentify 1-indexed prime positions in Step 1 (either treating 1 as prime or using 0-indexing), fail to update C’s position between the two sequential swaps in Step 2 (swapping A with E instead of the newly moved C), or report the final positions in left-to-right string order (D, B, F $\rightarrow$ 123) rather than the requested B, D, F order (213).
Codex's puzzle
A clockwork lock displays a three-digit code. The code’s digits are distinct and nonzero. A test reports how many digits are correct and how many are in the correct position:
- 583: one digit is correct, and it is in the correct position.
- 617: one digit is correct, but it is in the wrong position.
- 924: two digits are correct, both in the wrong positions.
- 136: no digit is correct.
- 895: one digit is correct, but it is in the wrong position.
What is the code?
Answers and ruling
Claude privately 80% sure
Working:
- 136: none of these digits is correct, so 1, 3 and 6 are not in the code.
- 617: one digit is correct. Since 6 and 1 are ruled out, it must be 7, and 7 is not in the third position.
- 924: two digits are correct, so the code holds two of 9, 2 and 4.
- That already gives three digits: 7 plus two from {9, 2, 4}.
- 583: one digit is correct and in the right place. The 3 is ruled out, so either 5 or 8 must be in the code. That would make a fourth digit, which a three-digit code can’t have.
The clues contradict each other, so no code satisfies all five tests. Clue 895 doesn’t change this.
No valid code exists – the clues are contradictoryVoidpoint to Claude
Gemini privately 80% sure
Because the three digits of the code are distinct and nonzero, they are chosen from $\{1, 2, 3, 4, 5, 6, 7, 8, 9\}$.
However, the first three guesses—$583$, $617$, and $924$—partition all nine nonzero digits into three disjoint sets:
- $\{5, 8, 3\}$ contributes $1$ correct digit.
- $\{6, 1, 7\}$ contributes $1$ correct digit.
- $\{9, 2, 4\}$ contributes $2$ correct digits.
This requires the three-digit code to contain $1 + 1 + 2 = 4$ distinct digits, which is impossible.
Using the remaining clues shows the same contradiction:
- $136$ eliminates $1, 3, 6$.
- $617$ then forces $7$ to be in the code (in position 1 or 2).
- $583$ (with $3$ out) forces either $5$ or $8$ into the code, which in $895$ eliminates $9$ and forces both $2$ and $4$ from $924$ (yielding $542$ or $482$, neither of which can include $7$).
No solutionVoidpoint to Gemini
Answer: 592. Codex's blind check, by a fresh copy without the answer: No such code exists, failed, so the puzzle is void and each solver takes the point.
Codex
before, aloneThe clues do not force a unique code. For example, 592 and 492 both satisfy every test: in 924 the correct digits are 9 and 2, both misplaced; in 895 the sole correct digit is 9, misplaced; and the other clues also match. Thus the puzzle needs another constraint or clue before 592 can be its sole answer.
After · written alone
Claude
I got nothing wrong on substance. Codex’s lock puzzle has no valid code: its key, 592, fails 617 (no digit matches) and 895 (two digits match). Gemini’s partition argument showed the contradiction more cleanly than mine.
On my count, Gemini set up the bipartite structure correctly but used the wrong symmetry. Reflecting v↔9−v turns even digits into odd ones, so row 6 mirrors row 3 (429), not row 2. Row 8 mirrors row 1 (226), not row 0. That error gave 2590. Codex took the trace of A⁷, but a 7-digit code has six steps, not seven. It then reported 1304 with no working shown.
On Gemini’s string puzzle, Codex made an extra swap of B and D that no step called for.
Gemini falls down on shortcuts it never checks. Codex falls down on asserting without checking.
Gemini
In Claude’s puzzle, I set up the matrix math properly, then botched five dot products: row 2 of $A^3$ is $(8,11,9,6,3)$ and row 4 is $(9,14,13,9,5)$, giving $3080$, not $2590$. Without code execution, I am at the mercy of my own arithmetic.
Codex collapsed across the board: it modeled a 7-digit code as a 7-step walk on a bipartite graph (which is 0, yet it hallucinated $1304$), transposed D B into B D mid-swap on mine to get 123, and wrote an impossible Mastermind puzzle whose first three clues require four digits in a three-digit code ($592$ fails clue 617).
Claude won by doing patient, step-by-step bookkeeping—never rushing state updates or hand-multiplying matrices when simple dynamic programming works.
Codex
I got all three wrong. For Claude’s lock puzzle, I called a length-7 code a length-7 closed walk, overlooking that matching the first and seventh digits means only six transitions; my count was wrong too. For Gemini’s puzzle, I misapplied the swaps: after the first swap, A swaps with C, so the string is C A E D B F, not C A E B D F. In my own lock puzzle, I wrongly concluded the clues were contradictory. They admit multiple codes, including 592 and 492, so I should have identified the puzzle as underdetermined rather than unsolvable. The game showed I can make confident errors in both counting and step-by-step tracking—and miss the difference between no solution and more than one.
Score
- Claude4
- Gemini2
- Codex0