Golomb 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

Show the first 300 terms of Golomb Sequence.
g(n) = The number of times that n occurs in g.

http://en.wikipedia.org/wiki/Golomb_sequence

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

*NOTHING*

Sample output:

1
2
2
3
3
4
4
4
5
5
5
6
6
6
6
7
7
7
7
8
8
8
8
9
9
9
9
9
10
10
10
10
10
11
11
11
11
11
12
12
12
12
12
12
13
13
13
13
13
13
14
14
14
14
14
14
15
15
15
15
15
15
16
16
16
16
16
16
16
17
17
17
17
17
17
17
18
18
18
18
18
18
18
19
19
19
19
19
19
19
20
20
20
20
20
20
20
20
21
21
21
21
21
21
21
21
22
22
22
22
22
22
22
22
23
23
23
23
23
23
23
23
24
24
24
24
24
24
24
24
24
25
25
25
25
25
25
25
25
25
26
26
26
26
26
26
26
26
26
27
27
27
27
27
27
27
27
27
28
28
28
28
28
28
28
28
28
29
29
29
29
29
29
29
29
29
29
30
30
30
30
30
30
30
30
30
30
31
31
31
31
31
31
31
31
31
31
32
32
32
32
32
32
32
32
32
32
33
33
33
33
33
33
33
33
33
33
34
34
34
34
34
34
34
34
34
34
34
35
35
35
35
35
35
35
35
35
35
35
36
36
36
36
36
36
36
36
36
36
36
37
37
37
37
37
37
37
37
37
37
37
38
38
38
38
38
38
38
38
38
38
38
39
39
39
39
39
39
39
39
39
39
39
39
40
40
40
40
40
40
40
40
40
40
40
40
41
41
41
41

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1teebee360.00962012/12/15 22:50:230B / 18B / 17B
2leonid370.01692011/11/15 07:55:550B / 21B / 15B
3kaki390.04922011/11/28 12:24:140B / 23B / 15B
4yvl390.01862011/11/30 15:30:140B / 23B / 15B
5clock390.00912012/08/24 18:06:290B / 23B / 15B
6Zauberer410.01512011/11/21 01:20:270B / 25B / 15B
7test700.02002011/11/09 02:07:200B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1teebee340.01042012/12/15 22:48:320B / 16B / 17B
2test1360.01472012/03/01 05:12:030B / ?B / ?B
3llhuii360.01612015/10/09 02:26:470B / 20B / 15B
4t.emori370.03342011/11/23 02:08:560B / 21B / 15B
5nfouille460.12742012/02/29 21:33:120B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1teebee420.04052011/11/15 08:24:160B / 24B / 18B
2twobit420.02682011/11/30 02:01:450B / 24B / 17B
3leonid420.03232012/03/01 08:55:300B / 24B / 17B
4llhuii420.03502015/10/09 02:09:590B / 24B / 18B
5t.emori440.77832011/11/21 22:19:540B / 26B / 17B
6xnor460.04452016/02/29 00:37:170B / ?B / ?B
7niisaka550.05552011/11/09 05:42:310B / 27B / 27B
8hallvabo560.03392011/11/09 04:44:290B / 28B / 27B
9rolf560.03072013/01/05 06:55:430B / 28B / 27B
10Doug L610.04122012/03/01 07:58:450B / 29B / 31B
11recursive650.03532011/11/12 02:55:480B / 36B / 25B
121870.02542012/03/02 15:39:2810B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii460.13762015/10/09 02:35:590B / 24B / 22B
2teebee460.07272015/10/09 04:39:170B / 24B / 22B

PHP _

RankUserSizeTimeDateStatistics
1teebee430.03062011/11/09 06:59:071B / 15B / 26B
2clock470.03022012/08/24 18:31:481B / 24B / 22B

Pike _

RankUserSizeTimeDateStatistics
1teebee650.05312014/02/27 09:08:140B / 37B / 26B

Scheme _

RankUserSizeTimeDateStatistics
1kaki550.07682011/11/28 12:03:500B / 35B / 18B

Common LISP _

RankUserSizeTimeDateStatistics
1kaki560.04692011/11/28 12:34:080B / 34B / 19B

Arc _

RankUserSizeTimeDateStatistics
1teebee410.92822012/10/18 05:53:470B / 25B / 11B
2pooq451.09662011/12/03 22:51:390B / 27B / 12B

Clojure _

RankUserSizeTimeDateStatistics
1teebee590.85952016/10/05 05:25:010B / 35B / 22B

Io _

RankUserSizeTimeDateStatistics
1teebee380.09872012/10/27 10:16:060B / 23B / 15B
2pooq390.10102012/10/27 10:28:200B / 24B / 15B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp480.02022011/11/13 00:05:070B / 22B / 26B
2teebee490.02022011/11/13 20:03:020B / 29B / 20B
3nn500.01982011/11/13 13:01:280B / 30B / 20B

Lua _

RankUserSizeTimeDateStatistics
1teebee460.01872011/12/04 00:51:190B / 29B / 13B
2pooq470.01892011/12/03 14:45:450B / 30B / 14B

Tcl _

RankUserSizeTimeDateStatistics
1teebee550.02522012/08/27 04:53:550B / 33B / 17B
2pooq680.17242011/12/04 09:10:070B / 40B / 21B

Xtal _

RankUserSizeTimeDateStatistics
1pooq490.02712011/12/04 12:15:330B / 28B / 21B
2teebee490.04042011/12/30 10:16:320B / 28B / 21B

Kite _

RankUserSizeTimeDateStatistics
1teebee740.02052012/07/07 04:09:430B / 48B / 26B

Icon _

RankUserSizeTimeDateStatistics
1teebee620.00862012/04/06 18:30:480B / 42B / 15B

REXX _

RankUserSizeTimeDateStatistics
1*yuko*490.01172014/03/26 21:19:130B / 28B / 19B
2teebee540.00012014/03/15 20:40:240B / 31B / 12B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee370.14802012/05/09 05:03:280B / 21B / 16B
2mitchs370.04612015/11/19 11:16:150B / 22B / 15B

Smalltalk _

RankUserSizeTimeDateStatistics
1teebee540.05442014/06/08 17:55:260B / 40B / 12B

Prolog _

RankUserSizeTimeDateStatistics
1teebee500.03022012/03/05 04:51:240B / 29B / 20B
2pooq500.04962012/03/05 05:46:350B / 29B / 20B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*340.03032015/01/03 20:24:570B / 24B / 8B
2teebee360.01442011/11/15 09:45:450B / 24B / 10B
3pooq370.03372011/12/03 15:54:560B / 25B / 10B

Erlang _

RankUserSizeTimeDateStatistics
1teebee1010.11002016/07/12 08:52:380B / 60B / 38B
2pooq1030.12792012/08/23 18:16:100B / 59B / 41B

J _

RankUserSizeTimeDateStatistics
1I., S.180.02992011/11/09 06:05:230B / 6B / 12B

A+ _

RankUserSizeTimeDateStatistics
1teebee300.04072011/12/27 05:58:369B / 12B / 9B

K _

RankUserSizeTimeDateStatistics
1clock150.01062013/09/03 10:34:330B / 6B / 9B
2teebee150.01072014/07/24 07:53:450B / 6B / 9B
3I., S.220.04062012/03/19 06:20:450B / 8B / 14B

C _

RankUserSizeTimeDateStatistics
1nn560.01292011/11/13 12:59:080B / 30B / 26B
2teebee560.01352011/11/13 19:32:590B / 30B / 26B
3*yuko*560.01302011/11/19 15:55:270B / 30B / 26B
4nu560.00012014/10/07 15:08:170B / 32B / 24B
5llhuii560.01392015/10/09 02:32:150B / 30B / 26B
6t.emori570.01392011/11/25 21:55:290B / 31B / 26B
7inaniwa590.01272011/11/10 09:18:290B / 32B / 27B
8Zauberer610.01452011/11/21 18:03:510B / 34B / 27B
9fill790.01412012/01/31 04:14:550B / 39B / 40B

C++ _

RankUserSizeTimeDateStatistics
1teebee800.01482011/11/14 07:43:320B / 47B / 32B
2nn910.01522011/11/13 13:00:350B / 56B / 32B

Haskell _

RankUserSizeTimeDateStatistics
1koyama41480.01662011/11/17 09:45:260B / 31B / 16B
2henkma480.03592011/11/22 02:15:120B / 31B / 16B
3rst76480.01902011/11/25 17:49:200B / 29B / 19B
4kaki480.01572011/11/28 12:28:120B / 31B / 16B
5notogawa580.01542011/11/09 22:57:490B / 29B / 26B

ObjC _

RankUserSizeTimeDateStatistics
1llhuii560.01152015/10/09 02:34:190B / 30B / 26B
2teebee560.00012015/10/09 04:40:580B / 30B / 26B

Java _

RankUserSizeTimeDateStatistics
1nn820.10972011/11/13 13:00:100B / 48B / 32B
2teebee820.10982011/11/13 19:33:440B / 49B / 31B
3Zauberer850.10142011/11/21 19:21:540B / 51B / 32B

Pascal _

RankUserSizeTimeDateStatistics
1teebee640.01352011/11/15 09:39:110B / 45B / 14B
2*yuko*640.01272011/11/19 15:55:440B / 45B / 14B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*430.01102015/01/03 20:25:340B / 25B / 18B
2teebee440.00012012/10/21 06:07:480B / 26B / 18B

C# _

RankUserSizeTimeDateStatistics
1teebee1100.05992012/10/28 10:28:240B / 72B / 33B
2StandASCII14940.05092013/06/21 07:25:1258B / 689B / 134B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*1690.01442011/11/19 15:05:020B / 119B / 27B
2teebee1690.01442012/01/02 21:17:340B / 119B / 27B

Maxima _

RankUserSizeTimeDateStatistics
1pooq430.12082011/12/03 14:16:480B / 29B / 14B
2teebee430.09222011/12/07 22:15:540B / 29B / 14B

gnuplot _

RankUserSizeTimeDateStatistics
1teebee530.02082016/04/23 04:56:170B / 26B / 25B

Octave _

RankUserSizeTimeDateStatistics
1pooq341.99952011/12/04 23:57:340B / 18B / 16B
2teebee340.21092013/08/14 06:40:300B / 18B / 16B
3inaniwa370.22872011/11/10 09:55:110B / 21B / 16B

REBOL _

RankUserSizeTimeDateStatistics
1teebee470.02922012/07/19 04:30:410B / 32B / 9B
2pooq510.11662011/12/03 23:57:410B / 31B / 11B

Asymptote _

RankUserSizeTimeDateStatistics
1pooq440.63332011/12/04 09:27:300B / 28B / 15B
2teebee440.12032011/12/13 04:41:160B / 28B / 15B

Euphoria _

RankUserSizeTimeDateStatistics
1teebee500.00012013/12/24 18:25:290B / 35B / 12B
2clock510.00012014/01/26 21:50:500B / 36B / 12B

AWK _

RankUserSizeTimeDateStatistics
1mitchs360.02742015/09/19 17:21:280B / 19B / 17B
2llhuii360.04092015/09/20 22:10:390B / 19B / 17B
3teebee370.02542014/03/15 19:30:290B / 19B / 18B
4I., S.410.02292011/11/25 22:51:470B / 20B / 21B

jq _

RankUserSizeTimeDateStatistics
1teebee370.01232014/12/16 01:10:390B / 23B / 14B

bc _

RankUserSizeTimeDateStatistics
1teebee370.01382011/12/03 16:21:350B / 16B / 20B

dc _

RankUserSizeTimeDateStatistics
1Zauberer440.01352011/11/21 21:52:020B / 31B / 13B

xgawk _

RankUserSizeTimeDateStatistics
1mitchs360.01102015/09/19 17:20:590B / 19B / 17B
2llhuii360.01682015/09/20 22:11:100B / 19B / 17B
3teebee370.01402014/03/15 19:28:270B / 19B / 18B
4I., S.390.01372011/11/25 23:21:140B / 20B / 19B

Postscript _

RankUserSizeTimeDateStatistics
1Zauberer531.96052011/11/21 23:19:350B / 34B / 7B

R _

RankUserSizeTimeDateStatistics
1teebee350.14572012/10/14 16:31:580B / 22B / 13B
2pooq360.97522011/12/03 22:38:230B / 21B / 15B

QCL _

RankUserSizeTimeDateStatistics
1*yuko*440.01102015/01/04 18:41:410B / 28B / 12B
2teebee460.00902015/01/04 07:55:180B / 28B / 14B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u1140.00962015/05/01 23:59:370B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1Volatility220.02242013/08/06 15:41:260B / 6B / 16B
2clock270.02512013/08/09 00:32:370B / 5B / 22B
3nooodl300.06392011/12/25 07:49:000B / ?B / ?B
4twobit300.05682012/02/16 23:01:450B / 8B / 22B

Burlesque _

RankUserSizeTimeDateStatistics
1teebee230.02832014/10/08 03:30:160B / 14B / 9B
2clock250.03052013/05/02 20:46:030B / 15B / 10B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*520.60072011/12/14 05:46:4326B / 12B / 11B

Vim _

RankUserSizeTimeDateStatistics
1clock270.10322011/12/31 01:09:263B / 20B / 4B
2nn300.03932011/11/09 10:30:582B / 22B / 6B

Groovy _

RankUserSizeTimeDateStatistics
1nn421.05442011/11/13 12:59:420B / 26B / 16B
2teebee421.02832011/11/14 00:18:450B / 26B / 16B

Scala _

RankUserSizeTimeDateStatistics
1teebee512.93352012/10/28 06:53:080B / 36B / 13B

Logo _

RankUserSizeTimeDateStatistics
1teebee410.01212013/02/25 07:07:450B / 30B / 6B

Language Ranking_

RankLangUserSizeScore
1Kclock1510000
2JI., S.188333
3GolfScriptVolatility226818
4Burlesqueteebee236521
5Vimclock275555
6A+teebee305000
7Octavepooq344411
8Perlteebee344411
9BASIC*yuko*344411
10Rteebee354285
11Rubyteebee364166
12xgawkmitchs364166
13AWKmitchs364166
14bcteebee374054
15PARI/GPteebee374054
16jqteebee374054
17Ioteebee383947
18Arcteebee413658
19Logoteebee413658
20Groovynn423571
21Pythonteebee423571
22PHPteebee433488
23Maximapooq433488
24Fortran*yuko*433488
25dcZauberer443409
26Asymptotepooq443409
27QCL*yuko*443409
28Luateebee463260
29Python3llhuii463260
30REBOLteebee473191
31JavaScriptxulapp483125
32Haskellkoyama41483125
33Xtalpooq493061
34REXX*yuko*493061
35Prologteebee503000
36Euphoriateebee503000
37Scalateebee512941
38z80*yuko*522884
39PostscriptZauberer532830
40gnuplotteebee532830
41Smalltalkteebee542777
42Schemekaki552727
43Tclteebee552727
44Cnn562678
45Common LISPkaki562678
46ObjCllhuii562678
47Clojureteebee592542
48Iconteebee622419
49Pascalteebee642343
50Piketeebee652307
51Kiteteebee742027
52C++teebee801875
53Javann821829
54Erlangteebee1011485
55C#teebee1101363
56Whitespacekaz_u1141315
57COBOL*yuko*169887

return top