Let be an infinite sequence of random digits, selected from with equal probability.
It can be seen that corresponds to the real number
It can also be seen that choosing a random real number from the interval is equivalent to choosing an infinite sequence of random digits selected from with equal probability.
For any positive integer with decimal digits, let be the smallest index such that are the decimal digits of , in the same order.
Also, let be the expected value of ; it can be proven that is always finite and, interestingly, always an integer number.
For example, if , then
for , we get
for , we get
etc and we find that .
Given that , find .
Note: represents the floor function.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.