mysterious binary sequence
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
For a given number n, first convert it to binary.
Then repeat the substitution '01' -> '100' until you reach a fixpoint. How many times did you make this substution?
For example, 11 is '1011'
Then we repeat '01' -> '100':
'1011' -> '11001' -> '110100' -> '1110000' -> fixpoint
So f(11) is 3
Print f(0) through f(99).
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
*NOTHING*
Sample output:
0
0
0
0
0
1
0
0
0
2
1
3
0
1
0
0
0
3
2
5
1
3
3
6
0
2
1
3
0
1
0
0
0
4
3
7
2
5
5
10
1
4
3
7
3
6
6
11
0
3
2
5
1
3
3
6
0
2
1
3
0
1
0
0
0
5
4
9
3
7
7
14
2
6
5
11
5
10
10
19
1
5
4
9
3
7
7
14
3
6
6
11
6
11
11
20
0
4
3
7
Ranking
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | rotary-o | 54 | 0.0246 | 2026/07/04 11:59:45 | 0B / 27B / 26B |
| 2 | Natte | 57 | 0.0228 | 2026/07/01 16:00:11 | 0B / 30B / 25B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | Sisyphus | 51 | 0.0636 | 2026/07/03 12:01:00 | 0B / 28B / 23B |
| 2 | rotary-o | 51 | 0.0618 | 2026/07/04 11:46:46 | 0B / 28B / 22B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 54 | 0.0153 | 2026/07/01 11:11:46 | 0B / 33B / 19B |
| 2 | teebee | 54 | 0.0164 | 2026/07/02 07:37:24 | 0B / 36B / 15B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | teebee | 81 | 0.0240 | 2026/07/03 15:36:27 | 0B / 47B / 34B |
| 2 | KrausRaus | 93 | 0.0230 | 2026/07/03 12:51:08 | 0B / 57B / 36B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | Natte | 21 | 0.0267 | 2026/07/01 16:30:26 | 0B / 15B / 6B |
| 2 | #c0ffee | 23 | 0.0165 | 2026/07/01 13:56:13 | 0B / 12B / 11B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 105 | 0.0137 | 2026/07/15 08:59:33 | 46B / 27B / 30B |
| 2 | rotary-o | 131 | 0.0149 | 2026/07/05 10:07:12 | 0B / 64B / 65B |
| 3 | chocobi | 204 | 0.0142 | 2026/07/04 21:14:39 | 0B / 109B / 94B |
| 4 | tails (biz.py3) | 91 | 0.0136 | 2026/07/15 13:59:26 | 0B / 43B / 48B |
| 5 | tails | 104 | 0.0139 | 2026/07/15 10:50:04 | 50B / 25B / 29B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 141 | 0.0217 | 2026/07/09 17:07:45 | 0B / 55B / 72B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 20 | 0.3573 | 2026/07/14 18:27:27 | 7B / 8B / 4B |
| Rank | User | Size | Time | Date | Statistics |
|---|
| 1 | tails | 14 | 0.0405 | 2026/07/14 18:00:06 | 8B / 3B / 2B |
| 2 | whio | 15 | 0.0233 | 2026/07/14 03:50:45 | 8B / 6B / 1B |
Language Ranking_
| Rank | Lang | User | Size | Score |
| 1 | Nibbles | tails | 14 | 10000 |
| 2 | gs2 | tails | 20 | 7000 |
| 3 | iogii | Natte | 21 | 6666 |
| 4 | Ruby2 | Sisyphus | 51 | 2745 |
| 5 | Perl | tails | 54 | 2592 |
| 6 | Ruby | rotary-o | 54 | 2592 |
| 7 | Python3 | Sisyphus (Steffan (biz)) | 79 | 1772 |
| 8 | Python | helloperson (gpt) | 81 | 1728 |
| 9 | JavaScript | teebee | 81 | 1728 |
| 10 | Scala | rotary-o | 91 | 1538 |
| 11 | C | tails (biz.py3) | 91 | 1538 |
| 12 | Java | rotary-o | 125 | 1120 |
| 13 | sed | tails | 141 | 992 |
| 14 | C# | rotary-o | 155 | 903 |
return to the top page