A058935 Concatenation of first n binary numbers.
0, 1, 110, 11011, 11011100, 11011100101, 11011100101110, 11011100101110111, 110111001011101111000, 1101110010111011110001001, 11011100101110111100010011010, 110111001011101111000100110101011, 1101110010111011110001001101010111100
Offset: 0
Links
- Michael S. Branicky, Table of n, a(n) for n = 0..155
- Eric Weisstein's World of Mathematics, Binary Champernowne Constant
- Eric Weisstein's World of Mathematics, Smarandache Number
- Index entries for sequences related to Most Wanted Primes video
Crossrefs
Programs
-
Mathematica
FromDigits /@ Flatten /@ Rest[FoldList[Append, {}, IntegerDigits[Range[10], 2]]] (* Eric W. Weisstein, Nov 04 2015 *)
-
Python
from itertools import count, islice def agen(s=""): yield from (int(s:=s+bin(n)[2:]) for n in count(0)) print(list(islice(agen(), 13))) # Michael S. Branicky, Feb 17 2023
-
Python
from functools import reduce def A058935(n): return int(bin(reduce(lambda i,j:(i<
Chai Wah Wu, Feb 26 2023
Comments