PROJECT EULER · #0832
Mex Sequence
In this problem
Starting with blank paper repeatedly do the following:
- Write down the smallest positive integer
which is currently not on the paper; - Find the smallest positive integer
such that neither nor is currently on the paper. Then write down both and .
After the first round
After
For example,
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.