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”).

A340378
Number of 1-digits in the ternary representation of A048673(n).
5
1, 0, 1, 1, 2, 0, 0, 2, 3, 1, 1, 1, 1, 1, 0, 3, 2, 2, 2, 2, 2, 0, 1, 2, 1, 0, 1, 2, 2, 1, 1, 4, 1, 1, 3, 3, 1, 1, 3, 3, 2, 1, 0, 1, 2, 2, 1, 3, 1, 0, 2, 1, 2, 0, 2, 3, 2, 1, 3, 2, 2, 0, 2, 5, 0, 2, 2, 2, 1, 2, 3, 4, 4, 0, 3, 2, 0, 2, 2, 4, 3, 1, 1, 2, 3, 1, 0, 2, 3, 1, 4, 3, 3, 0, 1, 4, 1, 0, 1, 1, 2, 1, 0, 2, 3
OFFSET
1,5
COMMENTS
Binary weight of A304759(n).
FORMULA
a(n) = A062756(A048673(n)) = A000120(A304759(n)).
a(n) = A286585(n) - 2*A340379(n).
PROG
(PARI) A340378(n) = hammingweight(A304759(n));
CROSSREFS
Cf. A340376 (positions of zeros).
Sequence in context: A352551 A174739 A280542 * A274575 A203994 A285725
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 15 2021
STATUS
approved