login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A364215
The number of 1's in the canonical representation of n as a sum of distinct Jacobsthal numbers (A280049).
3
1, 2, 1, 2, 3, 2, 3, 2, 3, 4, 1, 2, 3, 2, 3, 4, 3, 4, 3, 4, 5, 2, 3, 2, 3, 4, 3, 4, 3, 4, 5, 2, 3, 4, 3, 4, 5, 4, 5, 4, 5, 6, 1, 2, 3, 2, 3, 4, 3, 4, 3, 4, 5, 2, 3, 4, 3, 4, 5, 4, 5, 4, 5, 6, 3, 4, 3, 4, 5, 4, 5, 4, 5, 6, 3, 4, 5, 4, 5, 6, 5, 6, 5, 6, 7, 2, 3
OFFSET
1,2
LINKS
FORMULA
a(n) = A007953(A280049(n)).
a(n) = A000120(A003159(n)).
a(A007583(n)) = 1.
MATHEMATICA
DigitCount[Select[Range[200], EvenQ[IntegerExponent[#, 2]] &], 2, 1]
PROG
(PARI) s(n) = if(n < 2, n > 0, n = s(n-1); until(valuation(n, 2)%2 == 0, n++); n); \\ A003159
a(n) = hammingweight(s(n));
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amiram Eldar, Jul 14 2023
STATUS
approved