OFFSET
1,11
LINKS
Eric Weisstein's World of Mathematics, Goldbach Partition
Wikipedia, Goldbach's conjecture
FORMULA
a(n) = Sum_{k=1..n} (pi(k) mod 2) * (pi(2*n-k) mod 2) * c(k) * c(2*n-k), where c(n) is the prime characteristic.
EXAMPLE
a(11) = 2; There are 2 Goldbach partitions of 2*11 = 22 into two odd-indexed primes: (17,5) and (11,11) where 5, 11, and 17 are primes with odd indices (i.e., 5 is the 3rd prime, 11 is the 5th prime and 17 is the 7th prime).
MATHEMATICA
Table[Sum[Mod[PrimePi[k], 2] Mod[PrimePi[2 n - k], 2] (PrimePi[k] - PrimePi[k - 1]) (PrimePi[2 n - k] - PrimePi[2 n - k - 1]), {k, n}], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jun 03 2021
STATUS
approved