Odious Numbers With Bad BO

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

Odious Numbers are non-negative integers with an odd number of 1s in their binary expansion. Just how repulsive an Odious number is measured by the 1-count in its expansion. Starting from 1, list the first 400 Odious numbers with each one keeping a safe distance ( larger or equal to its degree of repulsion) from its neighbors.

Example:

28 = 11100 in base 2. Its repulsion (count of the '1') is 3. So the next in the sequence could be (28+3=) 31. But wait, 31 in base 2 = 11111 (a repulsion of 5), and so listing it next would put it too close to 28. The next candidate Odious number is the barely repulsive 32 (100000 in base 2). Its safe to list it because the distance between 28 and 32 is larger than (or equal to) 28's and 32's respective degree of repulsion.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

*NOTHING*

Sample output:

1
2
4
7
11
14
19
22
25
28
32
35
38
41
44
49
52
56
61
67
73
76
81
84
88
93
98
103
109
115
121
128
133
137
140
145
148
152
157
162
167
173
179
185
193
199
205
211
217
224
229
234
241
248
256
261
265
268
273
276
280
285
290
295
301
307
313
321
327
333
339
345
352
357
362
369
376
385
391
397
403
409
416
421
426
433
440
448
453
458
465
472
481
488
496
505
512
521
524
529
532
536
541
546
551
557
563
569
577
583
589
595
601
608
613
618
625
632
641
647
653
659
665
672
677
682
689
696
704
709
714
721
728
737
744
752
761
769
776
781
787
793
800
805
810
817
824
832
837
842
849
856
865
872
880
889
896
905
913
920
929
936
944
953
961
968
976
985
992
1001
1009
1016
1024
1033
1036
1041
1044
1048
1053
1058
1063
1069
1075
1081
1089
1095
1101
1107
1113
1120
1125
1130
1137
1144
1153
1159
1165
1171
1177
1184
1189
1194
1201
1208
1216
1221
1226
1233
1240
1249
1256
1264
1273
1281
1288
1293
1299
1305
1312
1317
1322
1329
1336
1344
1349
1354
1361
1368
1377
1384
1392
1401
1408
1417
1425
1432
1441
1448
1456
1465
1473
1480
1488
1497
1504
1513
1521
1528
1537
1544
1549
1555
1561
1568
1573
1578
1585
1592
1600
1605
1610
1617
1624
1633
1640
1648
1657
1664
1673
1681
1688
1697
1704
1712
1721
1729
1736
1744
1753
1760
1769
1777
1784
1792
1801
1809
1816
1825
1832
1840
1849
1857
1864
1872
1881
1888
1897
1905
1912
1921
1928
1936
1945
1952
1961
1969
1976
1984
1993
2001
2008
2017
2024
2032
2041
2051
2060
2065
2068
2072
2077
2082
2087
2093
2099
2105
2113
2119
2125
2131
2137
2144
2149
2154
2161
2168
2177
2183
2189
2195
2201
2208
2213
2218
2225
2232
2240
2245
2250
2257
2264
2273
2280
2288
2297
2305
2312
2317
2323
2329
2336
2341
2346
2353
2360
2368
2373
2378
2385
2392
2401
2408
2416
2425
2432
2441
2449
2456
2465
2472
2480
2489
2497
2504
2512
2521
2528
2537
2545
2552
2561
2568
2573
2579
2585
2592
2597
2602
2609
2616

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tails (next of 67 should be 70)990.03292015/02/08 22:39:090B / 47B / 50B

Language Ranking_

RankLangUserSizeScore
1Perltails (next of 67 should be 70)9910000

return top