OFFSET
1,6
LINKS
Eric Weisstein's World of Mathematics, Goldbach Partition
Wikipedia, Goldbach's conjecture
FORMULA
a(1) = a(2) = 1, a(n) = ceiling(n/2) - A045917(n), n >= 3.
EXAMPLE
a(17) = 5; There are 5 partitions of 2*17 = 34 into two odd parts that are not both prime: 34 = 1+33 = 7+27 = 9+25 = 13+21 = 15+19.
MATHEMATICA
a[1] = a[2] = 1; a[n_] := Ceiling[n/2] - Count[2*n - Prime[Range[PrimePi[n]]], _?PrimeQ]; Array[a, 100] (* Amiram Eldar, May 12 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 05 2022
STATUS
approved