A335225 Partitions of a stronger form of Goldbach Conjecture: the number of decompositions of an even number 2n into the sum of two odd prime numbers p and q with 0 <= q-p < n.
0, 0, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 2, 3, 1, 2, 2, 2, 1, 2, 1, 2, 4, 2, 2, 3, 1, 2, 3, 2, 2, 2, 1, 3, 4, 1, 2, 5, 1, 2, 3, 2, 3, 4, 3, 2, 4, 3, 3, 5, 2, 2, 6, 2, 2, 5, 1, 3, 4, 3, 2, 4, 4, 4, 6, 4, 3, 7, 2, 4, 6, 2, 4, 5, 2, 3, 5, 4, 3, 5, 3, 3, 6, 2, 4, 6, 2, 4, 5, 2, 3, 6, 3
Offset: 1
Keywords
Examples
a(1)=0 because 2*1 cannot be written as the sum of two primes. a(2)=0. Although 2*2 can be written as 2+2, 2 is not an odd prime. a(3)=1 because 2*3 = 3+3. a(4)=1 because 2*4 = 3+5. a(5)=2 because 2*5 = 5+5 and 3+7. a(6)=1 because 2*6 = 5+7. a(7)=1 because 2*7 = 7+7. 3+11 is not a valid partition as 11-3 > 7.
Links
Programs
-
PARI
a(n) = {my(nb=0, m=2*n, q); forprime(p=3, m, if (isprime(q=m-p) && (q%2) && ((q-p)>=0) && ((q-p)
Michel Marcus, May 28 2020
Comments