-Numbers
We define -numbers as follows:
- is the smallest -number.
- When written in base the only digits that can be present are “”, “” and “” and if present the number of times they each occur is also a -number.
So is a -number, since it consists of one digit “” and is a -number. Therefore, is a -number as well since it consists of two digits “” and is a -number.
On the other hand, is not a -number, since it contains digits “” and is not a -number.
In ascending order, the first -numbers are:
Let be the -th -number. For example , , , and .
Find . Give your answer modulo .
-数
-数的定义如下:
- 是最小的数。
- 在进制下,这个数只由数字””、””和””组成,且这些数字要么不出现,要么其出现次数也是-数。
所以,是个-数,因为它包含一个””而是个-数。进而也是个-数,因为它包含两个””而是个-数。
反之,不是个-数,因为它包含个””而不是个-数。
将所有-数从小到大排列,最初的一部分是:
记为第个-数。例如,,,,,。
求,并将你的答案对取余。
Gitalking ...