login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 20:26 EDT 2024. Contains 371781 sequences. (Running on oeis4.)