
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