OFFSET
0,1
COMMENTS
This sequence is finite with a total of 2^32 terms. - Andrew Howroyd, Jan 04 2020
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..4095
FORMULA
a(n) = 32 - (number of 1s in binary representation of n).
a(n) = 32 - A000120(n). - Andrew Howroyd, Jan 04 2020
EXAMPLE
a(7) = 32 - (number of 1s in 00000000000000000000000000000111) = 32 - 3 = 29.
PROG
(PARI) a(n)={32-hammingweight(n)} \\ Andrew Howroyd, Jan 04 2020
CROSSREFS
KEYWORD
nonn,easy,fini
AUTHOR
Rachit Agrawal (rachit_agrawal(AT)daiict.ac.in), Oct 23 2007
EXTENSIONS
a(0) prepended and terms a(14) and beyond from Andrew Howroyd, Jan 04 2020
STATUS
approved