OFFSET
1,5
LINKS
Eric Weisstein's World of Mathematics, Goldbach Partition
Wikipedia, Goldbach's conjecture
FORMULA
a(n) = Sum_{k=1..n} [floor(log_10(k)) = floor(log_10(2*n-k))] * c(k) * c(2*n-k), where [ ] is the Iverson bracket and c is the prime characteristic (A010051).
EXAMPLE
a(7) = 1; 2*7 = 14 has two Goldbach partitions, (11,3) and (7,7). Since (7,7) is the only one whose parts have the same number of decimal digits, a(7) = 1.
MATHEMATICA
Table[Sum[(PrimePi[i] - PrimePi[i - 1]) (PrimePi[2 n - i] - PrimePi[2 n - i - 1]) KroneckerDelta[Floor[Log10[i]], Floor[Log10[2 n - i]]], {i, n}], {n, 100}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Wesley Ivan Hurt, Dec 21 2020
STATUS
approved