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!)
A035526 Reverse and add (in binary). 2
1, 10, 11, 110, 1001, 10010, 11011, 110110, 1010001, 10010110, 11111111, 111111110, 1011111101, 10111111010, 100011110111, 1011111101000, 1101011100101, 10111111010000, 11001011001101, 101111110100000 (list; graph; refs; listen; history; text; internal format)
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
FORMULA
a(n) = A007088(A035522(n)). - Reinhard Zumkeller, Jan 02 2015
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
Cf. A035522 for same sequence but written in base 10.
Cf. A007088.
Sequence in context: A222365 A041216 A094026 * A164370 A287948 A287626
KEYWORD
nonn,base,easy,nice
AUTHOR
N. J. A. Sloane, E. M. Rains
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 April 24 14:09 EDT 2024. Contains 371960 sequences. (Running on oeis4.)