login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A055143 The first n digits of the juxtaposition of the base-2 numbers converted to decimal. 17
1, 3, 6, 13, 27, 55, 110, 220, 441, 882, 1765, 3531, 7063, 14126, 28253, 56507, 113015, 226031, 452062, 904124, 1808248, 3616497, 7232994, 14465988, 28931977, 57863955, 115727910, 231455821, 462911642, 925823285, 1851646570, 3703293141, 7406586283, 14813172567 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
1 (1); 11 (3); 110 (6); 1101 (13); 11011 (27); 110111 (55); ...
MATHEMATICA
With[{c=Flatten[Table[IntegerDigits[n, 2], {n, 20}]]}, Table[FromDigits[ Take[ c, k], 2], {k, Length[c]}]] (* Harvey P. Dale, May 15 2021 *)
PROG
(Python)
from itertools import count, islice
def agen():
k, chap = 1, "1"
for n in count(1):
while len(chap) < n: k += 1; chap += bin(k)[2:]
yield int(chap[:n], 2)
print(list(islice(agen(), 34))) # Michael S. Branicky, Oct 06 2022
CROSSREFS
Sequence in context: A033129 A079403 A065830 * A092539 A094386 A371902
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Apr 15 2000
EXTENSIONS
a(32) and beyond from Michael S. Branicky, Oct 06 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 21 00:13 EDT 2024. Contains 375342 sequences. (Running on oeis4.)