Product of dice rolls (expected value of the number of rolls)

Level 2

We roll a fair 6-sided die until the product of the rolls has at least three positive integer divisors (so we continue rolling the die iff the product is 1 or a prime number). What is the expected value of the number of rolls we have to do?

Remark: Just to clarify, in case of 1,1,6 the number of rolls is 3; in case of 3,1,1,5 the number of rolls if 4, etc.


The answer is 1.92.

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.

1 solution

György Gehér
Apr 15, 2018

We can solve this problem with the idea of using recursion with states. We introduce three states:

S 1 = S_1 = when the product is 1 (i.e. only one divisor - this is where we start at the beginning),

S p S_p = when the product is a prime number (i.e. exactly two divisors),

and

S f = S_f = the end of rollig, so when the product has at least three divisors.

Furthermore, let:

E 1 = E ( X S 1 ) = E_1 = E(X|S_1) = the expected value of rolls if we start from state S 1 S_1

and

E p = E ( X S p ) = E_p = E(X|S_p) = the expected value of rolls if we start from state S p S_p .

We can write the following equations:

E 1 = 1 6 ( 1 + E 1 ) + 1 2 ( 1 + E p ) + 1 3 1 = 1 + 1 6 E 1 + 1 2 E p E_1 = \tfrac{1}{6}\cdot (1+E_1) + \tfrac{1}{2}\cdot (1+E_p) + \tfrac{1}{3}\cdot 1 = 1 + \tfrac{1}{6}\cdot E_1 + \tfrac{1}{2}\cdot E_p

and

E p = 1 6 ( 1 + E p ) + 5 6 1 = 1 + 1 6 E p E_p = \tfrac{1}{6}\cdot (1+E_p) + \tfrac{5}{6}\cdot 1 = 1 + \tfrac{1}{6} E_p ,

which we can solve easily. The solution is E 1 = 48 25 = 1.92 E_1 = \frac{48}{25} = 1.92 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...