Suppose we have the following two dice:
Rolling these two dice and adding their outcomes together results in a sum between 1 and 12. Remarkably, the probability distribution of this sum is the same as that for two regular, six-sided dice. That is, ( D 4 + D 9 ) ∼ ( D 6 + D 6 ) .
Now, can you construct another pair of four-sided and nine-sided dice with positive integers different from the above but with the exact same property of ( D 4 + D 9 ) ∼ ( D 6 + D 6 ) ?
If A is the highest number on the four-sided die and B is the highest number on the nine-sided die, post the product A ⋅ B .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I guess my concern in this discussion is how you know that your method finds all the solutions. It finds solutions, yes, and in easy cases finds all the solutions. However, you have already had to extend your method to include the D* forms, and this method is likely to be insufficient as well, as Calvin has pointed out.
Factorising the probability generating functions in term of (irreducible) cyclotomic polynomials is a technique which is assured of finding all solutions.
FYI Thinking of it in terms of the generating functions is a much better way to approach such problems.
Using only these D n greatly restricts the type of dice that you can have.
Log in to reply
Can you give me an example of this restriction? So far I have found all solutions this way, both for six- and twelve-sided dice. Moreover, the decomposition in terms of D s is easier and more intuitive than factorizing the generating function, and leads to fewer possible permutations.
Log in to reply
Find a different pair of dice with 5 and 6 sides, that is equivalent to throwing the pair of dice [1, 2, 3, 4, 5, 6] and [1, 2, 3, 4, 5]
Answer: [1, 2, 2, 3, 3, 4], [1, 3, 4, 5, 7]. It is obvious that this 5 sided dice doesn't arise from any combinations of random choice.
If you consider the generating function, we obtain the answer by:
( x + x 2 + x 3 + x 4 + x 5 + x 6 ) ( x + x 2 + x 3 + x 4 + x 5 ) = [ x ( 1 + x ) ( 1 + x + x 2 ) ( 1 − x + x 2 ) ] [ ( x + x 2 + x 3 + x 4 + x 5 ) ] = [ x ( 1 + x ) ( 1 + x + x 2 ) ] [ ( 1 − x + x 2 ) ( x + x 2 + x 3 + x 4 + x 5 ) ] = [ x + 2 x 2 + 2 x 3 + x 4 ] [ x + x 3 + x 4 + x 5 + x 7 ]
The main restriction is ensuring that the coefficients are non-negative. That led me to think of ( 1 − x + x 2 ) ( x + x 2 + x 3 + x 4 + x 5 ) (which thankfully works).
Log in to reply
@Calvin Lin – Edit: This is not a valid counterexample.
In fact, there is a simpler counterexample (using the same ideas) - Find a different pair of 6-sided dice, that is equivalent to throwing the standard 6-sided dice.
Answer: [ 1 , 2 , 2 , 3 , 3 , 4 ] and [ 1 , 3 , 4 , 5 , 6 , 8 ]
The first dice could be written as " 1 + random choice { 0 , 1 , 2 } + random choice { 0 , 1 } " (corresponding to x ( 1 + x ) ( 1 + x + x 2 ) , but the second dice cannot, because it corresponds to ( 1 − x + x 2 ) x ( 1 + x + x 2 + x 3 + x 4 + x 5 ) . Other than manually verifying, we know that the each factor of ( 1 − x + x 2 ) would require a corresponding factor of ( 1 + x + x 2 ) in order to pair up the "random choice".
Log in to reply
@Calvin Lin – I dealt with this simpler problem here ... The second die can be written as 1 + { 0 , 3 , 6 } + { 0 , 2 } . I found this solution with my D symbols because ( 1 − x + x 2 ) ( 1 + x + x 2 + x 3 + x 4 + x 5 ) = ( 1 − x + x 2 ) ( 1 + x + x 2 ) ( 1 + x 3 ) = ( 1 + x 2 + x 4 ) ( 1 + x 3 ) , which in my notation was 2 D 3 + 3 D 2 .
That is, where the original sum of two dice can be written as 2 + D 6 + D 6 = ( 1 + 3 D 2 + D 3 ) + ( 1 + 2 D 3 + D 2 ) , the new Sicherman dice may be written as 2 + D A + D B = ( 1 + D 2 + D 3 ) + ( 1 + 3 D 2 + 2 D 3 ) . As you can see, I simply made a swap of D terms.
@Calvin Lin – That is indeed a good example where there is no straightforward decomposition of D 5 .
In my response to a solution of Mark Hennings to a similar problem, I suggested the introduction of a "pseudo-die" D 3 ⋆ = { 0 , 1 ⋆ , 2 } . It combines with other dice by "deleting" and has the property D 3 + D 3 ⋆ = { 0 , 1 , 2 , 1 ⋆ , 2 ⋆ , 3 ⋆ , 2 , 3 , 4 } = { 0 , 2 , 4 } = 2 D 3 ; D 2 + D 3 ⋆ = { 0 , 1 , 1 ⋆ , 2 ⋆ , 2 , 3 } = { 0 , 3 } = 3 D 2 ; with this concept, we find D 6 = 2 D 3 + D 2 = D 3 + D 3 ⋆ + D 2 . Then in D 5 + D 6 = D 3 + D 3 ⋆ + D 2 + D 5 we can choose to combine the D 3 ⋆ term with D 5 instead, and obtain D A = D 3 + D 2 = { 0 , 1 , 2 } + { 0 , 1 } = { 0 , 1 , 1 , 2 , 2 , 3 } , D B = D 5 + D 3 ⋆ = { 0 , 1 , 2 , 3 , 4 } + { 0 , 1 ⋆ , 2 } = { 0 , 1 , 2 , 3 , 4 , 1 ⋆ , 2 ⋆ , 3 ⋆ , 4 ⋆ , 5 ⋆ , 2 , 3 , 4 , 5 , 6 } = { 0 , 2 , 3 , 4 , 6 } . This is the pair you also found.
Log in to reply
@Arjen Vreugdenhil – Reflecting on all this, my D notation is an intuitive approach to the factorization of generating functions. However, it does not go all the way "down" to the prime factors in the ring k [ X ] , and may therefore miss out on certain solutions. The introduction of the D ⋆ symbol goes a long ways toward fixing this, but eventually is likely to fail as well.
So, in the end, the method with generating functions is more comprehensive, especially when we start with two dice of different size. It is also less intuitive. By now you have noticed, I think, that I like out-of-the-box intuitive approaches. It was fun developing this one; I will now bow to the power of hard algebra. :)
Log in to reply
@Arjen Vreugdenhil – Right. Introducing the pseudo-die is precisely the generating function 1 − x + x 2 .
The follow-up question then would be: Is there a factor of
1
+
x
+
x
2
+
…
+
x
n
which do not have coefficients restricted to
0
,
+
1
,
−
1
?
As it turns out, the answer is yes (which should initially seem surprising). The first counter example at
1
+
x
+
x
2
+
…
+
x
1
0
4
. It is related to
1
0
5
=
3
×
5
×
7
being the product of 3 distinct odd primes (but requires deeper theory to understand why it is relevant).
This is closely linked to cyclotomic polynomials , because 1 − x 1 − x n = ∏ d ∣ n Φ d ( x ) .
Log in to reply
@Calvin Lin – So up to dice with 100 sides we should be good to go with a few starred D s. :D
Log in to reply
@Arjen Vreugdenhil – Unfortunately no. The other condition that your n D s ∗ needs, is that the exponents with non-linear coefficients from an arithmetic progression. However, since we can multiply these terms which results in cancellation, there isn't a simple classification of such allowed dice. This is where the understanding of the theory comes to our rescue :)
Checking the list of cyclotomic polynomials, the first instance where that exponent condition doesn't hold is Φ 1 5 ( x ) = x 8 − x 7 + x 5 − x 4 + x 3 − x + 1 . This polynomial is irreducible, so you cannot hope to break it down into various D s ∗ .
It would take a bit of work to find the counterexample because our real dice require non-negative coefficients. One possible candidate is to see that
( x 8 − x 7 + x 5 − x 4 + x 3 − x + 1 ) ( 1 + x ) ( 1 + x 2 ) ( 1 + x 4 ) = x 1 5 + x 1 2 + x 1 0 + x 9 + x 6 + x 5 + x 3 + 1
and so we can ask about "rolling a 15-sided, and 8-sided dice" is equivalent to which other "15-sided and 8-sided dice"? I've given the 8-sided dice above, and the 15-sided dice would can be written as D 3 ∗ + D 5 , corresponding to Φ 3 × Φ 5 . By looking at the factorization, we see that this 8-sided dice cannot be written as some combination of D s ∗ (assuming I haven't made any logical errors)
Log in to reply
@Calvin Lin – Yes, your example works out. With D A = { 0 , 3 , 5 , 6 , 9 , 1 0 , 1 2 , 1 5 } , D B = D 3 + D 5 we get the same outcomes as D 8 + D 1 5 .
The die D A (or the polynomial P ( x ) = x 1 5 + x 1 2 + x 1 0 + x 9 + x 6 + x 5 + x 3 + 1 ) still has the same remarkable symmetry as all the other ones: subtracting 1 5 − D A gives D A again; or x 1 5 P ( 1 / x ) = P ( x ) . Why is that? Is it possible to solve this problem with non-symmetric dice?
Also, D A = 3 D 6 ⊕ 5 D 4 ⊖ 1 5 D 2 , where ⊕ and ⊖ are addition and subtraction on bags; that is, P ( x ) = ( x 1 5 + x 1 2 + x 9 + x 6 + x 3 + 1 ) + ( x 1 5 + x 1 0 + x 5 + 1 ) − ( x 1 5 + 1 ) . Is that accidental? It would be interesting to try constructing the pair of dice out using this decomposition in terms rather than factors. ("Irreducible" is, after all, only multiplicative...)
Log in to reply
@Arjen Vreugdenhil – I notice, for instance, that ( 2 D 3 + 3 D 3 ) ⊕ ( 4 D 3 + D 3 ) ⊖ ( 2 D 5 + D 3 ) = 5 D 3 : { 0 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 1 0 } ⊕ { 0 , 1 , 2 , 4 , 5 , 6 , 8 , 9 , 1 0 } ⊖ { 0 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 6 , 6 , 7 , 8 , 8 , 9 , 1 0 } = { 0 , 5 , 1 0 } . Writing also 2 D 3 = D 3 ⋆ + D 3 , we get D 1 5 = 5 D 3 + D 5 = ( ( D 3 ⋆ + 3 D 3 ) ⊕ 4 D 3 ⊖ 2 D 5 ) + D 3 + D 5 , so that the combination of a 15-sided die and an 8-sided die factors as D 1 5 + D 8 = ( ( D 3 ⋆ + 3 D 3 ) ⊕ 4 D 3 ⊖ 2 D 5 ) + D 3 + D 5 + 4 D 2 + 2 D 2 + D 2 . Separating out D 3 + D 5 for a new die, we get D A = ( ( D 3 ⋆ + 3 D 3 ) ⊕ 4 D 3 ⊖ 2 D 5 ) + 4 D 2 + 2 D 2 + D 2 . This can be further reduced to D A = ( 2 D 4 + 3 D 2 + 3 D 3 ) ⊕ ( 4 D 2 + D 1 2 ) ⊖ ( 2 D 4 + D 1 0 ) , which indeed gives { 0 , 2 , 3 , 3 , 4 , 5 , 5 , 6 , 6 , 6 , 7 , 7 , 8 , 8 , 9 , 9 , 9 , 1 0 , 1 0 , 1 1 , 1 2 , 1 2 , 1 3 , 1 5 } ⊕ { 0 , 1 , 2 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 7 , 8 , 8 , 9 , 9 , 1 0 , 1 0 , 1 1 , 1 1 , 1 2 , 1 3 , 1 4 , 1 5 } ⊖ { 0 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 4 , 5 , 5 , 5 , 6 , 6 , 6 , 6 , 7 , 7 , 7 , 7 , 8 , 8 , 8 , 8 , 9 , 9 , 9 , 9 , 1 0 , 1 0 , 1 0 , 1 1 , 1 1 , 1 1 , 1 2 , 1 2 , 1 3 , 1 3 , 1 4 , 1 5 } = { 0 , 3 , 5 , 6 , 9 , 1 0 , 1 2 , 1 5 } = D A . Earlier I noted that also D A = 3 D 6 ⊕ 5 D 4 ⊖ 1 5 D 2 , which is, of course, much more elegant. I don't know if my D -calculus can easily be modified to make such elegant reductions.
@Arjen Vreugdenhil – Referring to the cyclotomic polynomial theory, we can conclude that all of these dice that are a breakdown of "standard dice [ 1 , 2 , … , n ] ", will have the symmetry property. The roots of 1 − x 1 − x n are the roots of unity, and since Φ n is a polynomial with real (in fact, integer) coefficients, so if ω ∣ Φ n , then ω ˉ = ω 1 ∣ Φ n . As such, x m ϕ n ( x 1 ) = ϕ n ( x ) as desired.
Thus, it is not possible to solve this problem with non-symmetric dice. Isn't that an interesting application of roots of unity and complex conjugates ?
It is not immediately obvious to me why / how. What your claim amounts to is:
A polynomial with (non-negative) integer coefficients of degree n , whose roots are roots of unity (not necessary the nth roots of unity), can be written as linear combinations of 1 − x d 1 − x d ( k + 1 ) where d k = n .
This feels really surprising, esp since the example has 16th roots of unity, which are "magically" accounted for. I will think further about this.
@Mark Hennings FYI In case you're interested in this discussion.
Problem Loading...
Note Loading...
Set Loading...
This is a follow-up on the solution I wrote for the "Inspiration" problem by Satyen Nabar:
Let D n stand for "a uniformly distributed number in { 0 , 1 , … , n − 1 } ". Then the situation of two dice can be written as 2 + D 6 + D 6 .
Because six is a composite number, we can decompose its outcomes as D 6 = D 2 + 2 D 3 or D 6 = D 3 + 3 D 2 In other words, random choice of { 0 , 1 , 2 , 3 , 4 , 5 } = random choice of { 0 , 1 } + random choice of { 0 , 2 , 4 } ; random choice of { 0 , 1 , 2 , 3 , 4 , 5 } = random choice of { 0 , 1 , 2 } + random choice of { 0 , 3 } .
The example from the problem description is generated by writing 2 + D 6 + D 6 = 2 + ( D 2 + 2 D 3 ) + ( D 2 + 2 D 3 ) = ( 1 + D 2 + D 2 ) + ( 1 + 2 D 3 + 2 D 3 ) . Thus we get the dice D 4 = 1 + { 0 , 1 } + { 0 , 1 } = { 1 , 2 ; 2 , 3 } ; D 9 = 1 + { 0 , 2 , 4 } + { 0 , 2 , 4 } = { 1 , 3 , 5 ; 3 , 5 , 7 ; 5 , 7 , 9 } .
Another solution we get by writing 2 + D 6 + D 6 = 2 + ( D 3 + 3 D 2 ) + ( D 3 + 3 D 2 ) = ( 1 + 3 D 2 + 3 D 2 ) + ( 1 + D 3 + D 3 ) . This results in D 4 ′ = 1 + { 0 , 3 } + { 0 , 3 } = { 1 , 4 ; 4 , 7 } ; D 9 ′ = 1 + { 0 , 1 , 2 } + { 0 , 1 , 2 } = { 1 , 2 , 3 ; 2 , 3 , 4 ; 3 , 4 , 5 } . The answer is therefore 7 ⋅ 5 = 3 5 .
Finally, the last possible solution is found as 2 + D 6 + D 6 = 2 + ( D 3 + 3 D 2 ) + ( D 2 + 2 D 3 ) = ( 1 + 3 D 2 + D 2 ) + ( 1 + D 3 + 2 D 3 ) . This results in D 4 ′ ′ = 1 + { 0 , 3 } + { 0 , 1 } = { 1 , 2 ; 4 , 5 } ; D 9 ′ ′ = 1 + { 0 , 1 , 2 } + { 0 , 2 , 4 } = { 1 , 2 , 3 ; 3 , 4 , 5 ; 5 , 6 , 7 } . The answer is therefore 5 ⋅ 7 = 3 5 .