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

A035103
Number of 0's in binary representation of n-th prime.
32
1, 0, 1, 0, 1, 1, 3, 2, 1, 1, 0, 3, 3, 2, 1, 2, 1, 1, 4, 3, 4, 2, 3, 3, 4, 3, 2, 2, 2, 3, 0, 5, 5, 4, 4, 3, 3, 4, 3, 3, 3, 3, 1, 5, 4, 3, 3, 1, 3, 3, 3, 1, 3, 1, 7, 5, 5, 4, 5, 5, 4, 5, 4, 3, 4, 3, 4, 5, 3, 3, 5, 3, 2, 3, 2, 1, 5, 4, 5, 4, 4, 4, 2, 4, 2, 2, 5, 4, 3, 2, 3, 1, 2, 2, 2, 1, 1, 7, 6, 5, 6, 5, 5, 5, 4
OFFSET
1,7
LINKS
FORMULA
a(n) = A035100(n) - A014499(n). - M. F. Hasler, Nov 21 2009
a(n) = 0 for n in { A059305 }. - Alois P. Heinz, Jun 26 2021
MATHEMATICA
Table[ Count[ IntegerDigits[ Prime[ n ], 2 ], 0 ], {n, 120} ]
Table[DigitCount[p, 2, 0], {p, Prime[Range[120]]}] (* Harvey P. Dale, Mar 03 2023 *)
PROG
(PARI) A035103(n) = #(n=binary(prime(n)))-norml2(n) \\ M. F. Hasler, Nov 21 2009
(Haskell)
a035103 = a023416 . a000040 -- Reinhard Zumkeller, Feb 19 2013
CROSSREFS
Cf. A059305.
Sequence in context: A129267 A199324 A287576 * A155033 A283417 A107889
KEYWORD
nonn,base,easy
EXTENSIONS
More terms from Erich Friedman
STATUS
approved