OFFSET
1,12
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Goldbach Partition
Wikipedia, Goldbach's conjecture
FORMULA
EXAMPLE
a(12) = 2; 2*12 = 24 has 2 Goldbach partitions where the smaller prime has an odd index and the larger prime has an even index: (19,5) and (13,11). For example, 19 is the 8th prime and 5 is the 3rd, while 13 is the 6th prime and 11 is the 5th.
MAPLE
P:= select(isprime, [2, seq(i, i=3..200, 2)]): nP:= nops(P):
V:= Vector(100):
for i from 3 to nP by 2 do
for j from i+1 to nP by 2 do
v:= (P[i]+P[j])/2;
if v > 100 then break fi;
V[v]:= V[v]+1
od od:
convert(V, list); # Robert Israel, Mar 02 2026
MATHEMATICA
Table[Sum[Mod[PrimePi[k], 2] Mod[PrimePi[2 n - k] + 1, 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 04 2021
STATUS
approved
