mysterious binary sequence

Submit

Your name:
File:
Open code-statistics:

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

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o540.02462026/07/04 11:59:450B / 27B / 26B
2Natte570.02282026/07/01 16:00:110B / 30B / 25B

Ruby2 _

RankUserSizeTimeDateStatistics
1Sisyphus510.06362026/07/03 12:01:000B / 28B / 23B
2rotary-o510.06182026/07/04 11:46:460B / 28B / 22B

Perl _

RankUserSizeTimeDateStatistics
1tails540.01532026/07/01 11:11:460B / 33B / 19B
2teebee540.01642026/07/02 07:37:240B / 36B / 15B

Python _

RankUserSizeTimeDateStatistics
1helloperson (gpt)810.10992026/07/02 13:49:000B / 49B / 28B
2Mukundan314840.11312026/07/01 16:00:470B / 51B / 29B
3helloperson840.11122026/07/01 18:10:060B / 49B / 33B
4hallvabo840.11122026/07/02 03:57:300B / 51B / 29B
5fuzzylojik840.11072026/07/02 04:29:040B / 51B / 29B
6biz870.03042026/07/01 10:48:220B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1biz860.04552026/07/02 06:34:240B / ?B / ?B
2Sisyphus870.04852026/07/01 15:03:360B / 54B / 26B
3helloperson870.04832026/07/01 15:04:400B / ?B / ?B
4Mukundan314870.13032026/07/01 16:00:260B / 51B / 33B
5hallvabo870.13172026/07/02 03:54:220B / 51B / 33B
6fuzzylojik870.12762026/07/02 04:28:050B / 51B / 33B
7AlephSquirrel870.04492026/07/04 03:26:530B / 54B / 26B
8Sisyphus (Steffan (biz))790.15502026/07/16 17:01:550B / 42B / 28B
9Steffan (biz)800.10442026/07/15 12:12:450B / 41B / 30B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee810.02402026/07/03 15:36:270B / 47B / 34B
2KrausRaus930.02302026/07/03 12:51:080B / 57B / 36B

iogii _

RankUserSizeTimeDateStatistics
1Natte210.02672026/07/01 16:30:260B / 15B / 6B
2#c0ffee230.01652026/07/01 13:56:130B / 12B / 11B

C _

RankUserSizeTimeDateStatistics
1tails1050.01372026/07/15 08:59:3346B / 27B / 30B
2rotary-o1310.01492026/07/05 10:07:120B / 64B / 65B
3chocobi2040.01422026/07/04 21:14:390B / 109B / 94B
4tails (biz.py3)910.01362026/07/15 13:59:260B / 43B / 48B
5tails1040.01392026/07/15 10:50:0450B / 25B / 29B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1250.10612026/07/04 17:01:090B / 77B / 45B

C# _

RankUserSizeTimeDateStatistics
1rotary-o1550.04742026/07/04 17:02:080B / 103B / 46B

sed _

RankUserSizeTimeDateStatistics
1tails1410.02172026/07/09 17:07:450B / 55B / 72B

gs2 _

RankUserSizeTimeDateStatistics
1tails200.35732026/07/14 18:27:277B / 8B / 4B

Nibbles _

RankUserSizeTimeDateStatistics
1tails140.04052026/07/14 18:00:068B / 3B / 2B
2whio150.02332026/07/14 03:50:458B / 6B / 1B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o912.12622026/07/04 12:05:160B / 58B / 27B

Language Ranking_

RankLangUserSizeScore
1Nibblestails1410000
2gs2tails207000
3iogiiNatte216666
4Ruby2Sisyphus512745
5Perltails542592
6Rubyrotary-o542592
7Python3Sisyphus (Steffan (biz))791772
8Pythonhelloperson (gpt)811728
9JavaScriptteebee811728
10Scalarotary-o911538
11Ctails (biz.py3)911538
12Javarotary-o1251120
13sedtails141992
14C#rotary-o155903

return to the top page