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

A340379
Number of 2-digits in the ternary representation of A048673(n).
3
0, 1, 0, 1, 0, 2, 1, 1, 0, 1, 1, 2, 0, 2, 1, 1, 0, 1, 0, 1, 0, 2, 1, 2, 2, 3, 1, 2, 1, 3, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 2, 0, 2, 2, 3, 1, 3, 0, 4, 1, 2, 1, 2, 0, 3, 1, 2, 1, 1, 2, 2, 0, 1, 2, 2, 0, 1, 0, 3, 1, 2, 2, 2, 1, 1, 2, 2, 1, 1, 1, 3, 3, 2, 1, 2, 0, 2, 0, 4, 0, 2, 2, 3, 1, 3, 2, 3, 1, 3, 1
OFFSET
1,6
COMMENTS
Binary weight of A291759(n).
FORMULA
a(n) = A081603(A048673(n)) = A000120(A291759(n)).
a(n) = (A286585(n) - A340378(n)) / 2.
For all n >= 1, a(n) >= A292252(n).
PROG
(PARI)
A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ From A003961
A048673(n) = (A003961(n)+1)/2;
A289814(n) = { my (d=digits(n, 3)); fromdigits(vector(#d, i, if (d[i]==2, 1, 0)), 2); } \\ From A289814
A340379(n) = hammingweight(A291759(n));
CROSSREFS
Cf. A340377 (positions of zeros).
Sequence in context: A358218 A100073 A257988 * A075685 A037906 A319394
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 15 2021
STATUS
approved