OFFSET
0,2
COMMENTS
First 4 members are the divisors of 6 (the first perfect number), written in base 2 (see A135652, A135653, A135654, A135655). - Omar E. Pol, May 04 2008
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
FORMULA
EXAMPLE
110 + 011 = 1001.
PROG
(Haskell)
a035526 = a007088 . a035522 -- Reinhard Zumkeller, Jan 02 2015
(Python)
from itertools import accumulate, repeat
def iterate(n, _): b = str(n); return int(bin(int(b, 2)+int(b[::-1], 2))[2:])
def aupto(nn): return list(accumulate(repeat(1, nn), iterate))
print(aupto(20)) # Michael S. Branicky, Jan 10 2021
CROSSREFS
KEYWORD
nonn,base,easy,nice
AUTHOR
N. J. A. Sloane, E. M. Rains
STATUS
approved