Problem 832
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
最小排除值序列
在本题中,符号
请拿一张空白的纸,并不断重复如下操作:
- 写下最小的、未被写在纸上的正整数
; - 求最小的、使得
和 都未被写在纸上的正整数 ,并将 和 都写在纸上。
经过第一轮操作,
经过
例如,
求
译注:原标题中的“Mex”是“Minimum Excluded Value”的简写,因此翻译为“最小排除值”。
Gitalking ...