Skip to content
Vamshi Jandhyala

Books · The Riddler

Chapter 90

How Many Turkey Trotters Can You Pass?

I have five kinds of fair Platonic dice: tetrahedra (whose faces are numbered 141-4), cubes (numbered 161-6), octahedra (numbered 181-8), dodecahedra (numbered 1121-12) and icosahedra (numbered 1201-20). When I roll two of the cubes, there is a single most likely sum: seven. But when I roll one cube and two tetrahedra, there is no single most likely sum — eight and nine are both equally likely.

Which whole numbers are never the single most likely sum, no matter which combinations of dice I pick?

Solution

The whole numbers that can never be the single most likely sum are 1, 2, 3, 4, 6, and 8;\boxed{1,\ 2,\ 3,\ 4,\ 6,\ \text{and}\ 8}; every other whole number is the unique most likely sum of some combination of these dice.

Why nothing below 5. A single die has a flat distribution, so it has no single most likely sum; in particular 1,2,3,41,2,3,4 cannot come from one die. With n2n \geq 2 dice the most likely sum sits at the centre of the distribution, which is at least the centre for nn tetrahedra, 2.5n52.5n \geq 5. So no combination at all has its peak below 55.

Why 6 and 8 fail. The same centring argument bounds how many dice could possibly peak at a small target: a sum peaking at 66 or 88 can use at most 33 dice. Checking every combination of at most three dice (code below): the unique peaks available are 55 (two tetrahedra), 77 (two cubes), 99 (two octahedra, or 4+4+64+4+6 and friends), 1313, 2121, and various larger values, but never 66 or 88. Two different dice (say 44 and 66 faces) always produce a plateau of tied sums rather than a single peak, and the three-dice combinations near these targets all tie two central values (three tetrahedra tie 77 and 88).

Why everything else works. A pair of identical dice is symmetric about a whole number: two tetrahedra peak at 55, two cubes at 77, two octahedra at 99, two dodecahedra at 1313, two icosahedra at 2121, each a unique peak. Dice distributions are log-concave, and sums of independent symmetric log-concave lattice variables stay symmetric and single-peaked about the sum of the centres. So stacking pairs adds the peaks: any sum 5a+7b+9c+13d+21e5a + 7b + 9c + 13d + 21e (with a,,e0a,\dots,e \geq 0, not all zero) is a unique most likely sum. Since 55 and 77 are coprime, every whole number from 2424 upward is 5a+7b5a+7b (the Frobenius number of {5,7}\{5,7\} is 2323), and a direct search over combinations of at most eight dice exhibits unique peaks for every value from 55 to 3939 except 66 and 88. Together: every whole number except 1,2,3,4,6,81,2,3,4,6,8 is achievable.

The computation

Convolve the face distributions for every combination of up to eight dice, record the sums that have a single mode, and report which small whole numbers never appear.

from itertools import combinations_with_replacement

DICE = [4, 6, 8, 12, 20]

def conv(d1, d2):
    out = {}
    for a, pa in d1.items():
        for b, pb in d2.items():
            out[a+b] = out.get(a+b, 0) + pa*pb
    return out

unique_peaks = set()
for n in range(1, 9):
    for combo in combinations_with_replacement(DICE, n):
        d = {0: 1}
        for faces in combo:
            d = conv(d, {i: 1 for i in range(1, faces+1)})
        top = max(d.values())
        modes = [s for s, c in d.items() if c == top]
        if len(modes) == 1:
            unique_peaks.add(modes[0])

print(sorted(k for k in range(1, 40) if k not in unique_peaks))
# [1, 2, 3, 4, 6, 8]