login
A304089
Binary weight of A304083.
4
0, 1, 2, 1, 3, 2, 1, 2, 4, 3, 2, 1, 3, 2, 3, 2, 5, 4, 3, 2, 1, 4, 3, 2, 4, 3, 2, 4, 3, 2, 3, 6, 3, 5, 4, 3, 2, 1, 5, 4, 3, 2, 5, 4, 3, 2, 5, 4, 3, 2, 4, 3, 5, 4, 3, 2, 4, 3, 4, 3, 7, 4, 3, 4, 3, 6, 5, 4, 3, 2, 1, 6, 5, 4, 3, 2, 6, 5, 4, 3, 2, 6, 5, 4, 3, 2, 5, 4, 3, 6, 5, 4, 3, 2, 5, 4, 3, 5, 4, 3, 6, 5, 4, 3, 2, 5
OFFSET
0,3
FORMULA
a(n) = A000120(A304083(n)).
For all n >= 0, abs(a(n+1)-a(n)) = A000120(A304083(n+1) XOR A304083(n)), where XOR is a bitwise exclusive or, A003987.
PROG
(PARI) A304089(n) = hammingweight(A304083(n)); \\ Needs also code from A304083.
CROSSREFS
Cf. also A303780.
Sequence in context: A126597 A261867 A076081 * A209281 A240554 A107338
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, May 06 2018
STATUS
approved