login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A177796 Numbers n such that number of 1's in binary representation of n-th prime = number of 0's in binary representation of n-th prime. 2
1, 12, 13, 34, 35, 38, 45, 100, 102, 103, 104, 107, 110, 112, 113, 118, 119, 120, 121, 123, 127, 138, 140, 158, 323, 328, 331, 335, 339, 345, 348, 350, 353, 355, 356, 359, 365, 366, 380, 385, 393, 394, 396, 398, 412, 414, 415, 419, 425, 456, 472, 484 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Charles R Greathouse IV, Table of n, a(n) for n = 1..10000

FORMULA

A014499(a(n))=A035103(a(n)).

MATHEMATICA

n1Q[n_]:=Module[{idn2=IntegerDigits[Prime[n], 2]}, Count[idn2, 1] == Length[idn2]/2]; Select[Range[500], n1Q] (* Harvey P. Dale, Jun 26 2013 *)

PROG

(PARI) is(n)=n=prime(n); hammingweight(n)==hammingweight(bitneg(n, #binary(n))) \\ Charles R Greathouse IV, Mar 29 2013

CROSSREFS

Cf. A031443, A014499, A035103.

Sequence in context: A125998 A307279 A106323 * A342942 A322462 A037304

Adjacent sequences:  A177793 A177794 A177795 * A177797 A177798 A177799

KEYWORD

nonn

AUTHOR

Juri-Stepan Gerasimov, May 14 2010

EXTENSIONS

Entries checked by D. S. McNeil, Nov 26 2010

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 22 12:30 EDT 2021. Contains 345379 sequences. (Running on oeis4.)