Too high, too low

You play a game with a 4 sided die.

You roll it several times, and after each roll you try to predict whether the next roll will be higher or lower. If you predict wrong, you are out.

So, for example, if you roll a 2 and then say "Higher" and then roll another 2, you are out. (Unfortunately, there is no way to guard against getting the same number as the previous roll... You will always be out)

Assume that you play optimally, (to maximize the number of rolls) and let the expected number of times you will roll the die (including the final roll where you are out) be a b \frac{a}{b} where a a and b b are coprime positive integers.

What is a + b a+b ?


Image credit: www.midlamminiatures.co.uk


The answer is 32.

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

Geoff Pilling
Nov 29, 2016

Consider the following states:

  • 0 0 : About to roll for the first time
  • 1 1 : Last roll was a 1 1 or a 4 4
  • 2 2 : Last roll was a 2 2 or a 3 3

E n = E_n = Expected number of rolls from state n n

This gives us a set of linear equations to solve:

  • E 0 = 1 + 1 2 E 1 + 1 2 E 2 E_0 = 1+ \frac{1}{2}E_1 + \frac{1}{2}E_2
  • E 1 = 1 + 1 4 E 1 + 1 2 E 2 E_1 = 1 + \frac{1}{4}E_1 + \frac{1}{2}E_2
  • E 2 = 1 + 1 4 E 1 + 1 4 E 2 E_2 = 1 + \frac{1}{4}E_1 + \frac{1}{4}E_2

Solving, E 0 = 27 5 E_0 = \frac{27}{5}

27 + 5 = 32 27+5 = \boxed{32}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...