a(n) is the number of primes with odd binary weight among the first n primes minus the number with an even binary weight.
A130911
a(n) is the number of primes with odd binary weight among the first n primes minus the number with an even binary weight.
Terms
- a(0) =1a(1) =0a(2) =-1a(3) =0a(4) =1a(5) =2a(6) =1a(7) =2a(8) =1a(9) =0a(10) =1a(11) =2a(12) =3a(13) =2a(14) =3a(15) =2a(16) =3a(17) =4a(18) =5a(19) =4a(20) =5a(21) =6a(22) =5a(23) =4a(24) =5a(25) =4a(26) =5a(27) =6a(28) =7a(29) =6
External references
- oeis: A130911