login
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