PROJECT EULER · #0323
Bitwise-OR Operations on Random Integers
Let
(i.e.
For the sequence
and , for . ( is the bitwise-OR operator).
It can be seen that eventually there will be an index
Find the expected value of
Give your answer rounded to
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.