login
A332997
a(n) = A000120(A332995(n)).
3
0, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 3, 1, 1, 2, 2, 1, 2, 1, 2, 2, 2, 3, 4, 1, 2, 1, 1, 2, 3, 2, 3, 1, 1, 2, 3, 1, 1, 2, 2, 2, 3, 2, 3, 3, 3, 4, 5, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 3, 4, 2, 2, 3, 3, 1, 2, 1, 2, 2, 2, 3, 4, 1, 2, 1, 1, 2, 3, 2, 3, 2, 2, 3, 4, 2, 2, 3, 3, 3, 4, 3, 4, 4, 4, 5, 6, 1, 2, 1, 1, 2, 3, 2, 3, 1, 1
OFFSET
0,6
COMMENTS
It seems that a(A055010(n)) = n for all n >= 0, and apart from n=1, A055010 seems to give the first occurrence of each n in this sequence.
FORMULA
a(n) = A000120(A332995(n)) = A332897(A332817(n)).
a(n) = A000120(n) - A332998(n).
PROG
(PARI) A332997(n) = hammingweight(A332995(n));
(PARI) A332997(n) = A332897(A332817(n));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 05 2020
STATUS
approved