Ponder This Challenge - February 2026 - Blot-avoiding backgammon strategy
- Ponder This
Ponder This Challenge:
The challenge this month is based on a suggestion we received from Vladimir Sedach (thanks!).
A computer program, named 6to2, gets a sequence of purely random independent and fair dice tosses and outputs a sequence of uniformly and independent bits. It generates as many output bits as it can from the dice inputs -- as long as it can ensure that the output is indeed completely random.
The problem is that our program actually gets its input from a similar program named 2to6, which generates random dice tosses from random bits.
Our question is: What is the efficiency of the above process? Starting from 27 bits, converting them to dice tosses, and then back to bits, how many bits will we get on average?
Please specify the result with at least 4 digits accuracy after the decimal point.
We will post the names of those who submit a correct, original solution! If you don't want your name posted then please include such a statement in your submission!
We invite visitors to our website to submit an elegant solution. Send your submission to the ponder@il.ibm.com.
If you have any problems you think we might enjoy, please send them in. All replies should be sent to: ponder@il.ibm.com
2to6 can be viewed as a process that receives an integer and generates several dice throws.
Since 227 is not divisible by 6, we cannot guarantee that 2to6 will generate even a single die toss.
Given a number n and an upper bound N on its value, the best we can do is the following:
From 27 bits (N=227), we get a distribution of zero to ten dice tosses.
Repeating a similar algorithm for the 6to2 case on the result produces between zero and 25 bits.
Computing the expected value of the combined process results in ~23.99978 bits.
Can you explain the extraordinary closeness of the above result to an integer?
Sec Zehl (09/16/2011 12:48 PM EDT)