Algebra

Two dice numbered differently roll the same totals

Number one die 1, 2, 2, 3, 3, 4 and another 1, 3, 4, 5, 6, 8, and every total from 2 to 12 comes up exactly as often as with two ordinary dice. They are the only such pair. The proof is a factorisation: a die is a polynomial, the ordinary die splits into four irreducible pieces, and there are exactly two ways to share the pieces out. Count the shares for other dice and a prime number of faces allows no alternative at all.

Worth reading first: Every third coefficient · A polynomial that counts.

Take two dice and renumber them. On the first, write 1, 2, 2, 3, 3, 4; on the second, 1, 3, 4, 5, 6, 8. Throw them and add. A total of 2 needs the 1 on each die and comes up once in thirty-six throws. A total of 7 comes up in six ways, as it does with ordinary dice. So do all the others: the two pairs agree on every total from 2 to 12, and no game that looks only at the total — craps, Monopoly, Settlers of Catan — could tell which pair was being used.

George Sicherman found the pair and Martin Gardner published it in 1978. It is the only pair of six-faced dice with faces at least 1, other than the ordinary one, that does this. The reason it exists, and the reason it is unique, are the same, and both are about factoring a polynomial. A die is a polynomial; throwing two dice and adding is multiplying their polynomials; and a polynomial with integer coefficients factors into irreducible pieces in exactly one way, as a whole number does into primes. The ordinary pair is two copies of four pieces. Every pair with the same totals is a way of sharing those eight pieces between two dice, and there are only twenty-seven ways to try.

This essay draws the tables, the factors and their roots, counts the alternatives for dice of every size up to forty faces, and then uses the roots to answer a related question: whether two dice can be loaded so that every total is equally likely. They cannot, and the obstruction is a root on the real line.

Two tables, one set of totals

Ordinary dice and Sicherman's dice. totals 2:1 3:2 4:3 5:4 6:5 7:6 8:5 9:4 10:3 11:2 12:1; Sicherman identical
Fig. 1 The 36 throws of two ordinary dice and of Sicherman’s pair, each written as its total. The tables look nothing alike, but every total occurs in the same number of cells; 7, tinted, occurs six times in each.

The figure writes out all thirty-six throws of each pair as an addition table. The ordinary table has its famous diagonals: every total is constant along a line from lower left to upper right, which is why 7 is the commonest total, with six cells, and 2 and 12 the rarest, with one each. The Sicherman table has no such pattern. Its rows repeat — the 2 and the 3 each appear twice on the first die — and its columns jump, from 1 to 3 and from 6 to 8. Yet the tally beside the tables, counting the cells with each total, is the same for both: 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1.

A tally like that is the kind of fact that is easy to check and hard to see. Checking it takes thirty-six additions. Seeing why it holds, and why no other renumbering does it, needs a way of writing a die that makes adding totals into an operation with structure. The trick is the oldest one in counting: let the exponent of xx record a number and the coefficient record how often it occurs. A die with faces f1,…,f6f_1, \ldots, f_6 becomes xf1+⋯+xf6x^{f_1} + \cdots + x^{f_6}, and when two such sums are multiplied, every face of one meets every face of the other and their exponents add. The coefficient of x7x^7 in the product counts the throws totalling 7.

The ordinary die is x+x2+⋯+x6x + x^2 + \cdots + x^6, and the totals of two ordinary dice are its square. Sicherman’s dice are x+2x2+2x3+x4x + 2x^2 + 2x^3 + x^4 and x+x3+x4+x5+x6+x8x + x^3 + x^4 + x^5 + x^6 + x^8, and the claim of the figure is that their product is the same square. Multiplying out confirms it; factoring explains it.

The pieces an ordinary die is made of

The ordinary die factors as

x+x2+⋯+x6=x (1+x)(1+x+x2)(1−x+x2).x + x^2 + \cdots + x^6 = x\,(1 + x)(1 + x + x^2)(1 - x + x^2).

The three factors after the xx are cyclotomic polynomials: 1+x1 + x vanishes at −1-1, the square root of unity other than 1; 1+x+x21 + x + x^2 vanishes at the two primitive cube roots of unity; and 1−x+x21 - x + x^2 at the two primitive sixth roots. Together with x−1x - 1, they are the factors of x6−1x^6 - 1, one for each divisor of 6, and the ordinary die is x(x6−1)/(x−1)x(x^6 - 1)/(x - 1). The same holds for a die of any size: an ordinary nn-faced die is xx times the product of the cyclotomic polynomials Φd\Phi_d for every divisor d>1d > 1 of nn.

Two facts make this factorisation the whole story. First, each cyclotomic polynomial is irreducible over the integers — Gauss proved it for prime indices and Kronecker in general in 1854 — so these pieces cannot be broken further. Second, polynomials with integer coefficients factor uniquely into irreducibles, exactly as whole numbers do into primes. So if two dice AA and BB have the totals of two ordinary dice, then A⋅B=x2(1+x)2(1+x+x2)2(1−x+x2)2A \cdot B = x^2(1+x)^2(1+x+x^2)^2(1-x+x^2)^2, and each of AA and BB must be a product of some of these pieces. There is nowhere else for a die to come from.

That is what makes the problem finite. A die is a share of eight pieces. Each die must take exactly one xx, because a die with no factor xx has a face numbered 0 and a die with two has no face below 2, which would leave the other die with a 0. That leaves two copies each of three cyclotomic factors to divide between two dice — three choices for each factor, twenty-seven shares in all.

Twenty-seven shares and three survivors

Sharing the factors of two dice. 27 shares; six faces each: (110) 122334/134568 (111) 123456/123456 (112) 134568/122334
Fig. 2 The 27 ways to share two copies each of 1+x1 + x, 1+x+x21 + x + x^2 and 1−x+x21 - x + x^2 between two dice, with the number of faces each die gets. Only shares giving each die one 1+x1 + x and one 1+x+x21 + x + x^2 have six faces apiece, and 3 shares survive.

A share is a pair of dice only if each part has six faces. The number of faces of a die is its polynomial’s value at x=1x = 1, since each face contributes 1f=11^{f} = 1, and the value at 1 of a product is the product of the values: 1+x1 + x is worth 2, 1+x+x21 + x + x^2 is worth 3, and 1−x+x21 - x + x^2 is worth 1. So the factor 1−x+x21 - x + x^2 changes nothing about the number of faces, and a die has six faces exactly when it takes one factor worth 2 and one worth 3.

The figure lays the twenty-seven shares out as three grids, one for each way of dividing the two copies of 1−x+x21 - x + x^2, with the faces of each die written in every cell. The value-at-one condition kills every cell except the centre of each grid, where each die has one 1+x1 + x and one 1+x+x21 + x + x^2. Three shares are left. In the middle grid each die also takes one 1−x+x21 - x + x^2, and both dice are ordinary. In the left grid the first die takes neither copy, giving x(1+x)(1+x+x2)=x+2x2+2x3+x4x(1+x)(1+x+x^2) = x + 2x^2 + 2x^3 + x^4, the die numbered 1, 2, 2, 3, 3, 4; the second takes both, giving the die 1, 3, 4, 5, 6, 8. The right grid is the same pair the other way round.

There is one more condition a share must pass, and here it happens to cost nothing: a die cannot have a face that occurs a negative number of times, so the product must have non-negative coefficients. The factor 1−x+x21 - x + x^2 has a negative coefficient, and on its own it is not a die. But x(1+x)(1+x+x2)(1−x+x2)2x(1+x)(1+x+x^2)(1-x+x^2)^2 multiplies out to x+x3+x4+x5+x6+x8x + x^3 + x^4 + x^5 + x^6 + x^8, with every coefficient 0 or 1. That is the whole proof of uniqueness: the factorisation leaves three candidates, and the only one that is not the ordinary pair is Sicherman’s. The search in the figure is exhaustive because unique factorisation makes it so.

Where the roots go

The roots of ordinary and Sicherman dice. ordinary {−1, ω, ω², ζ, ζ⁵}; A {−1, ω, ω²}; B {−1, ω, ω², ζ, ζ, ζ⁵, ζ⁵}
Fig. 3 The roots of each die’s polynomial, with its factor x removed, on the unit circle. An ordinary die’s five roots are the sixth roots of unity other than 1; the first Sicherman die loses the two primitive sixth roots and the second takes both of them twice.

The same argument can be drawn. A polynomial is determined, up to a constant, by its roots, and every root of a cyclotomic polynomial lies on the unit circle, at a corner of the regular polygon that xn=1x^n = 1 forces. The figure places each die’s roots there. An ordinary die has five: −1-1, the two primitive cube roots of unity, and the two primitive sixth roots — the sixth roots of unity with 1 left out, which is why the sum of an ordinary die’s powers of a cube root vanishes and the total of any number of dice is divisible by 3 exactly a third of the time.

Sicherman’s first die keeps −1-1 and the cube roots and has no sixth roots; it has degree four and three roots on the circle besides 0, and its face sum is smaller. The second die has −1-1, the cube roots, and both primitive sixth roots twice, so it has degree eight and its largest face is 8. Put the two dice together — multiplying polynomials pools their roots, just as multiplying complex numbers adds their turns — and every root of the ordinary pair appears with its proper multiplicity — −1-1 twice, each cube root twice, each sixth root twice — so the products are the same polynomial.

The picture also shows what freedom there is and why it is limited. The roots of a die can only be moved between the two dice in whole cyclotomic blocks, since a die with a non-real root must contain its conjugate and the irreducible pieces cannot be split; and the blocks that change the number of faces, −1-1 and the cube roots, are pinned by the face count. The only movable block is the pair of sixth roots, and it can only move whole. One movable block gives one alternative. The coefficients of a polynomial already know its roots, and here the roots know the faces.

A prime number of faces leaves nothing to share

Pairs of dice with the ordinary totals, by number of faces. 2:0 3:0 4:1 5:0 6:1 7:0 8:3 9:1 10:1 11:0 12:7 13:0 14:1 15:1 16:9 17:0 18:7 19:0 20:7 21:1 22:1 23:0 24:32 25:1 26:1 27:3 28:7 29:0 30:12 31:0 32:25 33:1 34:1 35:1 36:56 37:0 38:1 39:1 40:32
Fig. 4 The number of pairs of n-faced dice with the ordinary totals, besides the ordinary pair, for n from 2 to 40. A prime number of faces allows none, a product of two primes exactly one, and 36 faces allow 56.

The argument runs for dice of any size, and the figure carries it out for every number of faces from 2 to 40: list the divisors, share two copies of each cyclotomic factor between two dice in every possible way, keep the shares with nn faces apiece and non-negative coefficients, and roll each survivor to check that it really has the ordinary totals. Every pair found passes.

The pattern in the bars has a clean explanation, and it is read off the shape of a number’s divisors. The value of Φd\Phi_d at 1 is pp when dd is a power of a prime pp, and 1 otherwise. So the factors worth something at 1 are the prime-power divisors of nn, and each die must collect, among its share of them, a product exactly equal to nn. When nn is prime, its only divisor above 1 is nn itself, Φn\Phi_n is worth nn, each die must take exactly one copy, and the ordinary pair is the only possibility. Four, the smallest composite, already has an alternative — 1, 2, 2, 3 with 1, 3, 3, 5 — and Joseph Gallian and David Rusin showed in 1979 that every composite number of faces has at least one.

A product of two distinct primes, such as 6, 10, 14 or 15, has exactly one movable block — Φpq\Phi_{pq}, worth 1 at x=1x = 1 — and exactly one alternative, as the bars confirm. Numbers with many divisors have many factors worth 1, which can be moved freely subject only to the coefficients staying non-negative: eight faces allow 3 alternatives, twelve allow 7, twenty-four allow 32 and thirty-six allow 56. The non-negativity condition is what keeps those numbers from being simple powers of 3; it is the one condition in the problem that is not about counting factors, and for large dice it is where all the work lies.

Why loaded dice cannot even out the totals

Why loaded dice cannot roll uniform totals. real roots of six dice: -1.000 -1.049 -0.616 -0.867 -1.085 -1.184
Fig. 5 A die loaded with any probabilities is xx times a polynomial of degree 5 with real coefficients, which crosses zero on the negative axis; six examples are drawn. The uniform target, (1+x+⋯+x10)/11(1 + x + \cdots + x^{10})/11, never vanishes on the real line.

Renumbering keeps the totals of ordinary dice. A different question asks whether any dice can make every total from 2 to 12 equally likely — not by renumbering but by loading, so that the faces 1 to 6 come up with unequal probabilities p1,…,p6p_1, \ldots, p_6 on one die and q1,…,q6q_1, \ldots, q_6 on the other. The answer is no, and the proof is a sentence about roots.

A loaded die is the polynomial p1x+p2x2+⋯+p6x6=x P(x)p_1 x + p_2 x^2 + \cdots + p_6 x^6 = x\,P(x), where PP has degree 5 if p6>0p_6 > 0, which it must be if a total of 12 is to be possible at all. Every polynomial has a root somewhere in the complex plane, and one of odd degree with real coefficients has one on the real line: it takes opposite signs far to the left and far to the right, so it crosses zero; and since its coefficients are non-negative, it is positive for x≥0x \ge 0 and the crossing is on the negative side. The figure draws PP for the ordinary die, crossing at −1-1, and for five seeded loadings, crossing at points from −1.18-1.18 to −0.62-0.62. Whatever the loading, the product of two dice is zero at a real point.

The uniform target is (x2+x3+⋯+x12)/11=x2(1+x+⋯+x10)/11(x^2 + x^3 + \cdots + x^{12})/11 = x^2(1 + x + \cdots + x^{10})/11, and 1+x+⋯+x10=(x11−1)/(x−1)1 + x + \cdots + x^{10} = (x^{11} - 1)/(x - 1) vanishes exactly at the eleventh roots of unity other than 1. Eleven is odd, so none of them is real: the red curve in the figure never touches the axis. A product that must vanish on the real line cannot equal a polynomial that never does. Renumbering could not have helped either, since 11 is prime and 1+x+⋯+x101 + x + \cdots + x^{10} is a single irreducible block that neither die can take a part of.

Three dice, and only one more way

Three dice with the ordinary totals. three d6 sets 2: 122334/123456/134568; 123456/123456/123456; d4 2; d8 10
Fig. 6 The number of the 216 throws of three dice giving each total, for three ordinary dice and for Sicherman’s pair with an ordinary die: identical. Sharing three copies of each factor among three dice finds 2 sets in all.

With three dice there are three copies of each cyclotomic factor to share among three dice, and many more shares to try. The search is just as finite, and it finds just as little. Each die needs a factor worth 2 and a factor worth 3, so the three copies of 1+x1 + x go one to each die, and so do the three copies of 1+x+x21 + x + x^2. Only the three copies of 1−x+x21 - x + x^2 can move, and the share must keep every coefficient non-negative. The only alternatives are to give one die none and another two — which is a Sicherman pair alongside an ordinary die — and the ordinary set itself. The figure draws the tally of totals from 3 to 18 for both sets, and the bars coincide. Three four-faced dice similarly have a single alternative, and three eight-faced dice nine.

The answer for three dice is not a new pair; it is the old pair with a bystander. That is a general feature of the problem. Since 1−x+x21 - x + x^2 is the only factor of an ordinary six-faced die worth 1 at x=1x = 1, any set of six-faced dice with the ordinary totals differs from the ordinary set only in how the copies of that one factor are distributed, and a die can hold at most two of them before a coefficient goes negative. Any number of dice, then, can only trade sixth roots in pairs.

What the factorisation does not decide

The figures show that the search is complete for the sizes drawn, and the argument from unique factorisation shows that nothing outside the search could exist. What neither shows is any formula for the number of alternatives as the number of faces grows. The census is an exhaustive count for each nn, and the non-negativity condition, which is a question about the coefficients of a product, has no known simple description in terms of the divisors of nn. Gallian and Rusin’s theorem says only that the count is at least one for every composite nn.

The pictures also say nothing about dice whose faces may be 0 or negative. Allow a 0 and many more pairs appear, since a factor xx can then move from one die to the other: 0, 1, 1, 2, 2, 3 and 2, 3, 4, 5, 6, 7 have the ordinary totals, and they are only Sicherman’s pair with one shifted down and the other up. Allow different numbers of faces on the two dice — a four-faced die with a nine-faced one, for instance — and the count changes again. These variations are all decided by the same factorisation, but each needs its own search.

Finally, the loaded-dice argument is a proof of impossibility, not a measure of how close one can come. The best loadings, judged by how far the totals stay from uniform, are an optimisation problem that the root argument does not touch.

Still open: a formula for the count

The obvious next question is how many alternatives an nn-faced die has, as a function of nn. For nn a product of two primes the answer is one, and for n=p2n = p^2 it is one as well, as the census shows at 4, 9 and 25. Beyond that the counts jump about — 3 at 8, 7 at 12 and 18 and 20, 32 at 24 and 40 — and no closed form is known. The difficulty is that the cyclotomic polynomials worth 1 at x=1x = 1 have negative coefficients, and whether a product of several of them with some positive factors has only non-negative coefficients is a delicate question about cancellation, the same kind of question that makes the coefficients of the cyclotomic polynomials themselves hard to predict — they are all 0, 1 or −1 up to Φ104\Phi_{104}, and the first coefficient of size 2 appears only in Φ105\Phi_{105}. For the hundreds of faces of the computer-generated dice in role-playing games, the census would have to be run rather than read off.

There is also the matter of which games could tell the dice apart. Any game that uses only the total cannot; any game that uses the faces individually — doubles in backgammon, for example, or dice compared one against another — can. Sicherman’s dice roll doubles only four times in thirty-six, against six for ordinary dice.

Sicherman’s dice, 1, 2, 2, 3, 3, 4 and 1, 3, 4, 5, 6, 8, are the only six-faced dice besides the ordinary pair whose totals match two ordinary dice exactly. Writing a die as a polynomial turns adding totals into multiplying, the ordinary die factors as x(1+x)(1+x+x2)(1−x+x2)x(1+x)(1+x+x^2)(1-x+x^2) into irreducible cyclotomic pieces, and unique factorisation means every pair with the same totals is a share of those pieces — twenty-seven shares, of which the face count leaves three and the ordinary pair is one. A prime number of faces leaves nothing to share, so no alternative exists; composite numbers always have one, and the count runs to 56 for thirty-six faces. The roots on the unit circle tell the same story, and one root off the circle settles a second question: no loading of two dice makes the eleven totals equally likely, because a die’s polynomial must vanish somewhere on the real line and the uniform target never does.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Cyclotomic polynomialExhaustive searchGenerating functionPolynomialRoots of unityUnique factorisation