You have a fair coin with a "1" on one side and a "0" on another side. You decide to flip it until you get a string of "1"s and "0"s that is the binary representation of a number you are thinking of.
e.g. If you pick the number 3, then its binary representation would be "11" and the expected number of flips to get this combination would be 6.
Now for the question:
What is the smallest integer, , such that the expected number of flips to get its binary representation is greater than 40
Note: Leading zeros aren't allowed. i.e. The number 5 would be represented by 101, not 0101 nor 00101.
Image credit: www.tes.com
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.
The binary representation of 2 1 is " 1 0 1 0 1 " and the expected number of flips for getting this combination is 4 2 , the smallest integer whose expected number of flips is greater than 4 0 .
This is calculated a follows:
Define E n as the expectation value for getting the pattern 10101, given that you are already on the nth digit. i.e. E 2 = The expectation value given that you already have " 1 0 " (but not " 1 0 1 0 ")
So,
Solving for E 0 , you find E 0 = 4 2 .