Home
Best
Texans
Volunteer
Logout
Archive
Ask a Question!
Client Login
Contact Us
FAQ
Guestbook
Home
Legal
Links
Networks
Sponsors
Team Members
Volunteer

Crazy Dice

Submitted by Chrix from Bloomington, MN, 7/2/2000. Original answer and this article by Allen Stenger.

Here's a pair of problems that were given to me by a friend...

When you roll a standard pair of 6-sided dice, there are 11 possible outcomes, with a certain probability of occurrence for each possible result (the chance of getting a total of 8 is 5/36, for example). This is called the probability distribution.

Now, it turns out that you can take 2 6-sided dice and put different positive integers (whole numbers) on them such that the probability distribution is the same. That is, you can write a completely different set of numbers on the 2 dice but still have the same likelihood of rolling any total as if the dice were regular. It turns out that the only way to do this is to put 1, 2, 2, 3, 3, 4 on one die and 1, 3, 4, 5, 6, 8 on the other (clearly I'm allowing repeats of numbers, and if you think about it, repeats must occur).

The two problems I have relate to pairs of dice with more than 6 sides. The first problem can be done by trial and error, but the second one most certainly cannot be done that way, and would require an advanced method of solving.

  1. Find the *2* possible relabelings for a pair of 8-sided dice.
  2. Find the only possible relabeling for a pair of 35-sided dice.

Hint 1

Use generating functions. (Sub-hint: practice on the 6-sided case, where you already know the answer.)

Hint 2

This hint solves the problem for the 6-sided case (sometimes called Crazy Dice or Sicherman Dice) by using generating functions. Once you understand this case, you should be able to work the 8-sided and 35-sided cases the same way. It's helpful if you have a computer algebra program like Mathematica to do the heavy lifting for you, especially in the 35-sided case, but even by hand they are not too hard.

To write this problem in terms of generating functions we use a variable x and make the following observation: The coefficient of xn in

plain dice generating function (*)

is the number of way of throwing n using 2 regular dice. This is true because we interpret the first factor as the outcome of the first die (the exponent is how many dots came up) and the second factor as the outcome of the second die. For example, you can throw 8 in 5 ways because the factors that lead to x8 are

making 8 with plain dice

How about the Crazy Dice? They have polynomials too, which are

crazy dice generating function

and the fact that they have the same frequency distribution as regular dice implies that this product of polynomials must be exactly the same as the product for the regular dice, and if fact if you multiply them out (or get Mathematica to do it for you) you'll see that they really are identical.

"So what?" you ask. So what is that we know a lot about polynomials, in particular about factoring them, so by converting our problem into a polynomial problem we can use this knowledge and solve it. Imagine that we didn't already know the other solution for 6; then we would want to find polynomials so that

solving crazy dice generating function

where the a and the b are the number of spots on each face, and we want to find them. A valid solution must have all a and b greater than or equal 1.

Now we use the polynomial properties. We can completely factor the left-hand side, because

factoring crazy dice polynomial

so the left-hand side of (*) is

factored LHS of (*)

We don't know what the terms on the right-hand side are, but we do know that if we factor them completely we must get exactly the same factorization, although the terms may be grouped differently. This means we can work backward to discover the terms on the right: we consider different ways of grouping the factors to make two polynomials

factored RHS of (*)

and see which ones represent valid 6-sided dice. Not every combination is valid; for example, we cannot give all factors to the first polynomial, and none to the second (leaving the second as a constant 1) because each polynomial must have 6 powers of x to represent the 6 faces. In fact we can eliminate most of the possibilities as follows:

  • The requirement that each polynomial represent a 6-sided die can be written numerically by saying that the value at x=1 of each polynomial in (**) must be 6. Looking at the complete factorization, we notice that the values of the factors at x=1 are 1, 2, 1, and 3. If one polynomial in (**) got both copies of (x + 1) and of (x2 + x + 1), then at x=1 that polynomial would be divisible by 4 or by 9, and so could not be equal to 6. Therefore each polynomial in (**) gets one copy of these factors.
  • Each face must have at least one spot, so each polynomial in (**) must have an x factor (otherwise the polynomial would have a constant term, that is x0, that would represent 0 spots). So each polynomial in (**) must get one copy of the factor x.

The only uncertainy remaining is the two (x2 - x + 1) factors. There's no obvious reason why we have to give one copy to each polynomial, or if we could give both copies to the same polynomial. In fact both choices work; giving one to each produces the regular dice, and (as we can verify by multiplying out the polynomials) giving both copies to one polynomial produces two valid sets of 6 spots, that are the Crazy Dice:

factored RHS 1 for crazy dice

which multiplies out to

factored RHS 2 for crazy dice

so the spots are

    1,2,2,3,3,4 and 1,3,4,5,6,8

That's the complete solution for 6-sided dice, now use the same ideas to solve the 8-sided and 35-sided cases. (The next hint gives the needed factorizations.)

Hint 3

For the 8-sided and 35-sided cases we have the complete factorizations

factorization for 8 and 35 sides

The Rest of the Solution

The 8-sided case has three alternate factorizations, and therefore three relabelings (not the two stated in the problem):

factorizations for 8 sides

and these expand to

expansions for 8 sides

(Thanks to Art DuPré for pointing out the third factorization, which is missing from the original solution.)

The 35-sided case has one alternate factorization, and expands to:

expansion for 35 sides

Generating Functions

A generating function is a clothesline on which we hang up a sequence of numbers for display. (Herbert S. Wilf)

A generating function is a polynomial or infinite series in which the coefficient of the nth term is the value at n of some function that we are interested in. In the Crazy Dice the coefficient is the number of faces with n spots.

Generating functions are used in almost all kinds of counting problems. They allow us to transform a counting problem into an algebraic or analytic problem. With the Crazy Dice we used algebraic properties of polynomials (factorization) to solve the problem. Often generating functions are infinite series instead of polynomials; in these cases we often attempt to get a closed-form expression for the function represented by the infinite series, and use facts about the behavior of this function to deduce facts about the coefficients. The References below give many examples of problems that can be solved with generating functions.

Cyclotomic Polynomials

To solve the Crazy Dice we had to factor polynomials of the form

x^{n-1} + ... + x + 1

which is the same problem as factoring

x^n-1

The roots of this polynomial are called the nth roots of unity (unity being another name for 1). A primitive nth root of unity is one that is not a mth root of unity for an m smaller than n.

Example: The 4th roots of unity, the roots of

x^4-1=0

These roots are 1, -1, i, and -i. Of these, 1 is a 1st root of unity, -1 is a 2nd root of unity, and the remaining two, i and -i are primitive 4th roots of unity.

The polynomial whose roots are all the primitive nth roots of unity is called the cyclotomic polynomial of order n. The roots are conventionally designated by a Greek letter zeta, and the polynomial is conventionally designated by a capital Greek letter phi:

phi_n

Example (continued): The cyclotomic polynomials for 1, 2, and 4 are

phi_1, phi_2, phi_4

"Cyclotomic" comes from a Greek phrase meaning "circle cutting." If you draw the unit circle in the complex plane, and plot the nth roots of unity, you will find that they all lie on the unit circle and that they cut it into n equal arcs. These points are also the vertices of a regular n-gon inscribed in the circle. The roots of unity and the cyclotomic polynomials occur in many areas of mathematics, and we know a lot about them.

It is a surprising fact that the cyclotomic polynomials have all integer coefficients, and an even more surprising fact that they are all irreducible (that is, they cannot be factored into polynomials of lower degree). A non-surprising but useful fact is that they give the complete factorization

factorization of x^n-1

Example: Crazy Dice for 8 sides. We have the factorization

factorization of x^8-1

References

The 6-sided case is sometimes called Crazy Dice or Sicherman Dice.

  • Herbert S. Wilf, generatingfunctionology, 2nd edition, Academic Press, 1994. All about generating functions.
  • Ronald L. Graham, Donald E. Knuth, and Oren Patashnik, Concrete Mathematics, 2nd edition, Addison-Wesley, 1994. Exercise 8.36, pp. 431 and 582, works out the 6-sided case and a generalization to n 6-sided dice.
  • Donald J. Newman, Analytic Number Theory, Springer-Verlag, 1998. Chapter 1, pp. 5-7 deals with Crazy Dice, and generating functions appear throughout the book. Warning: This book is loaded with typographical errors! The second, corrected printing (in 2000) fixes many, but not all, of the errors.
  • Allan Clark, Elements of Abstract Algebra, Dover reprint, 1984. See sections 134-138 for cyclotomic polynomials and the construction a regular 17-gon.
  • Click here to view the original problem submitted by Chrix.

© MathNerds TM. All Rights Reserved.
Email the Webmaster