Skip to content
Vamshi Jandhyala

Books · The Riddler

Chapter 152

Letter-Lengths and the Caffeine Contest

The Riddler for June 23, 2017. The Express is a 3×33 \times 3 word-square puzzle whose hidden logic is the length of the spelled-out English number. The Classic, the “Caffeine King” puzzle, is a participatory office contest with no derivable optimum, and we defer it for the same reason we deferred the two Battle for Riddler Nation rounds.

Riddler Express

There is a very specific logic underlying the grid of numbers below, and XX is somewhere between 11 and 1414. What is XX? 6475X1231116\begin{array}{|c|c|c|} \hline 6 & 4 & 7 \\ \hline 5 & X & 12 \\ \hline 3 & 11 & 16 \\ \hline \end{array}

The Riddler, FiveThirtyEight, June 23, 2017(original post)

Solution

The trick is to read each cell not as a number but as a word: the spelled-out English name. Then the grid hides a length pattern.

Write out each cell with the corresponding length of its English name: six (3)four (4)seven (5)five (4)Xtwelve (6)three (5)eleven (6)sixteen (7)\begin{array}{|c|c|c|} \hline \text{six}~(3) & \text{four}~(4) & \text{seven}~(5) \\ \hline \text{five}~(4) & X & \text{twelve}~(6) \\ \hline \text{three}~(5) & \text{eleven}~(6) & \text{sixteen}~(7) \\ \hline \end{array} Each row reads left to right as lengths (3,4,5)(3, 4, 5), (4,?,6)(4, ?, 6), (5,6,7)(5, 6, 7), and each column reads top to bottom with the same pattern: lengths increase by one along every row and column. So XX must have length 55.

Now XX is an integer between 11 and 1414 whose name has exactly 55 letters. The candidates are “three”, “seven”, and “eight”. But 33 already occupies the bottom-left corner and 77 already occupies the top-right corner, so XX is the only remaining 55-letter number: X  =  8.\boxed{\,X \;=\; 8.\,}

The computation

Encode the rule directly: for each XX in 1,,141, \ldots, 14, fill the centre cell and check that every row and column has letter-lengths in strict arithmetic progression with common difference 11. Reject any XX already appearing elsewhere in the grid.

NAMES = {1:"one", 2:"two", 3:"three", 4:"four", 5:"five", 6:"six",
         7:"seven", 8:"eight", 9:"nine", 10:"ten", 11:"eleven",
         12:"twelve", 13:"thirteen", 14:"fourteen", 16:"sixteen"}

def L(n): return len(NAMES[n])

def consistent(grid):
    """Each row/column has letter-lengths strictly increasing by 1."""
    for row in grid:
        if [L(c) for c in row] != [L(row[0]) + i for i in range(3)]:
            return False
    for j in range(3):
        col = [grid[i][j] for i in range(3)]
        if [L(c) for c in col] != [L(col[0]) + i for i in range(3)]:
            return False
    return True

base = [[6, 4, 7], [5, None, 12], [3, 11, 16]]
used = {6, 4, 7, 5, 12, 3, 11, 16}

for x in range(1, 15):
    if x in used: continue
    g = [row[:] for row in base]; g[1][1] = x
    if consistent(g):
        print(f"X = {x}")
# X = 8

The unique value that makes every row and column letter-length increment by exactly one prints, as required.

Riddler Classic

The Caffeine King. The Riddler office has one coffee pot holding one gallon. Workers take turns drawing coffee; each worker writes down in advance how many gallons (between 00 and 11) they will try to pour. If at least that amount is in the pot, they drink it; if less remains, they get nothing and must refill the pot. Workers try to maximise the coffee they actually drink while minimising the chance they have to refill. Submissions are pooled, the office order is randomised, the simulation is run, and whoever drinks the most wins.

The Riddler, FiveThirtyEight, June 23, 2017(original post)

Deferred (participatory contest)

This Classic has no derivable optimum from the puzzle statement: the “answer” is whichever number, among the actual submissions of real readers, scored highest in the run tournament. The winner’s value (Brian Hare’s 0.996220.99622, drinking an average of 0.41820.4182 gallons per trip) depends on the empirical distribution of 1,5381{,}538 other submissions, not on any structural property of the game. There is no Nash equilibrium for a player to box: the game is a simultaneous-move large-population contest whose best response depends on the whole histogram of competitors’ choices, which the puzzle hides until after submissions close. Iterating best responses against any assumed prior produces a different “answer” for every prior.

We defer this puzzle for the same reason as the February 33, 20172017 Battle for Riddler Nation Round 11, the May 1919, 20172017 Round 22, and (separately) the October 2828, 20162016 gerrymander and the November 1111, 20162016 map-colouring game. All sit in the same category: the question’s resolution is empirical or participatory rather than mathematical. The official write-up reports that the winner 0.996220.99622 edged out the runner-up 0.8490.849 by a margin of 0.00020.0002 gallons per trip (effectively a tie under sampling), and that requests clustered near 0.9990.999, near 0.50.5, and at a suspicious spike at 0.0550.055 from a small group of trolls. None of this can be derived; it can only be re-simulated against the same reader pool, which we do not have.

This is the fifth deferral in the build, after the four already noted (two gerrymander/colouring games, two Riddler Nation rounds).