login
A162720
A014499 represented in binary.
1
1, 10, 10, 11, 11, 11, 10, 11, 100, 100, 101, 11, 11, 100, 101, 100, 101, 101, 11, 100, 11, 101, 100, 100, 11, 100, 101, 101, 101, 100, 111, 11, 11, 100, 100, 101, 101, 100, 101, 101, 101, 101, 111, 11, 100, 101, 101, 111, 101, 101, 101, 111, 101, 111, 10
OFFSET
1,2
LINKS
FORMULA
a(n) = A007088(A014499(n)). - Andrew Howroyd, Nov 08 2019
EXAMPLE
The 5th prime number is 11. The binary representation of 11 is 1011. There are 3 "1s" in 1011. 3 in binary is 11, so a(5)=3.
PROG
(PARI) a(n)={fromdigits(digits(hammingweight(prime(n)), 2))} \\ Andrew Howroyd, Nov 08 2019
CROSSREFS
Sequence in context: A341722 A229902 A004209 * A112867 A215511 A280105
KEYWORD
base,nonn
AUTHOR
Ben Branman, Jul 11 2009
EXTENSIONS
Terms a(32) and beyond from Andrew Howroyd, Nov 08 2019
STATUS
approved