OFFSET
1,2
LINKS
MAPLE
a:= proc(n) option remember; `if`(n=1, 1,
parse(cat(convert(n, binary), a(n-1))))
end:
seq(a(n), n=1..12); # Alois P. Heinz, Feb 19 2023
MATHEMATICA
Table[FromDigits[Flatten[IntegerDigits[#, 2]&/@Range[n, 1, -1]]], {n, 20}] (* Harvey P. Dale, Sep 07 2020 *)
PROG
(Python)
from itertools import count, islice
def agen(): # generator of terms
s = ""
for k in count(1):
s = bin(k)[2:] + s
yield int(s)
print(list(islice(agen(), 15))) # Michael S. Branicky, Feb 19 2023
(Python)
from functools import reduce
def A300570(n): return int(bin(reduce(lambda i, j:(i<<j.bit_length())+j, range(n, 0, -1)))[2:]) # Chai Wah Wu, Feb 26 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Mar 08 2018
STATUS
approved