login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A334153
Number of Goldbach partitions (p,q) of 2n, such that exactly one of p-2 or q-2 is prime.
1
0, 0, 0, 1, 1, 0, 0, 2, 1, 0, 2, 2, 0, 1, 3, 0, 2, 3, 0, 0, 4, 1, 2, 3, 1, 1, 4, 1, 1, 5, 0, 2, 4, 1, 0, 6, 1, 2, 4, 2, 0, 6, 2, 1, 6, 1, 1, 4, 3, 0, 7, 1, 2, 3, 4, 2, 7, 1, 1, 8, 1, 0, 6, 2, 0, 8, 1, 1, 3, 5, 2, 7, 2, 0, 7, 1, 2, 7, 2, 0, 9, 1, 0, 7, 5, 1, 6, 4
OFFSET
1,8
FORMULA
a(n) = Sum_{i=1..n} (1 - [c(i-2) = c(2*n-i-2)]) * c(i) * c(2*n-i), where [] is the Iverson bracket and c is the prime characteristic (A010051).
EXAMPLE
a(5) = 1; 2*5 = 10 has one Goldbach partition, (7,3), with 7-2 = 5 (prime) and 3-2 = 1 (not prime).
a(8) = 2; 2*8 = 16 has two Goldbach partitions, (13,3) and (11,5), with 13-2 = 11 (prime) and 3-2 (not prime) as well as 11-2 = 9 (not prime) and 5-2 = 3 (prime).
MATHEMATICA
Table[Sum[(1 - KroneckerDelta[PrimePi[i - 2] - PrimePi[i - 3], PrimePi[2 n - i - 2] - PrimePi[2 n - i - 3]])*(PrimePi[i] - PrimePi[i - 1]) (PrimePi[2 n - i] - PrimePi[2 n - i - 1]), {i, n}], {n, 100}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 16 2020
STATUS
approved