A230260 Number of decompositions of 2n into unordered sums of two primes with an even sum of Hamming weights.
0, 1, 1, 1, 1, 0, 1, 0, 1, 2, 2, 1, 3, 1, 1, 2, 2, 0, 2, 1, 1, 2, 3, 3, 2, 2, 2, 2, 3, 3, 1, 0, 3, 2, 2, 4, 4, 2, 4, 3, 2, 2, 5, 3, 2, 4, 3, 2, 3, 3, 1, 4, 5, 3, 4, 2, 5, 5, 5, 5, 3, 2, 4, 3, 2, 2, 5, 2, 5, 5, 5, 7, 4, 2, 4, 2, 4, 5, 4, 1, 4, 5, 5, 8, 5, 4, 4, 4, 5, 4, 4, 4, 6, 5, 3, 8, 4, 2, 7, 5
Offset: 1
Programs
-
PARI
a(n)=my(s);forprime(p=2,n, if((hammingweight(2*n-p)+hammingweight(p))%2==0 && isprime(2*n-p), s++)); s \\ Charles R Greathouse IV, Oct 14 2013
Comments