OFFSET
1,5
COMMENTS
Consider the Goldbach partitions of n into two distinct parts (p,q) with p < q. Then a(n) is the sum of all the products, 2q*(2p+q), using the corresponding parts from each (p,q) pair.
Total area of all rectangles with dimensions (2q) X (2p+q), with p and q prime, n = p+q and p < q.
LINKS
Eric Weisstein's World of Mathematics, Goldbach Partition
Wikipedia, Goldbach's conjecture
FORMULA
a(n) = 2 * Sum_{i=1..floor((n-1)/2)} (n-i) * (n+i) * c(i) * c(n-i), where c is the prime characteristic (A010051).
EXAMPLE
a(6) = 0; no prisms are possible.
a(7) = 90; 1 prism with surface area = 2*(2*5 + 5*5 + 2*5) = 90.
a(8) = 110; 1 prism with surface area = 2*(3*5 + 5*5 + 3*5) = 110.
a(9) = 154; 1 prism with surface area = 2*(2*7 + 7*7 + 2*7) = 154.
MATHEMATICA
Table[2 Sum[(n - i)*(n + i)*(PrimePi[i] - PrimePi[i - 1])*(PrimePi[n - i] - PrimePi[n - i - 1]), {i, Floor[(n - 1)/2]}], {n, 80}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, May 25 2020
STATUS
approved