login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A303231
Total volume of all rectangular prisms with dimensions q, p+q and |q-p| such that p and q are prime, n = p+q and p < q.
1
0, 0, 0, 0, 15, 0, 105, 80, 315, 280, 0, 168, 1287, 1232, 2145, 3136, 0, 2664, 4845, 6320, 6783, 11176, 0, 11088, 12075, 17888, 0, 14448, 0, 17640, 24273, 27776, 29667, 62560, 0, 61632, 0, 28272, 50505, 76720, 0, 99120, 68757, 141944, 79335, 163024, 0
OFFSET
1,5
FORMULA
a(n) = n * Sum_{i=1..floor((n-1)/2)} (n-i) * (n-2*i) * c(i) * c(n-i), where c is the prime characteristic (A010051).
MATHEMATICA
Table[n*Sum[(n - i) (n - 2 i) (PrimePi[i] - PrimePi[i - 1]) (PrimePi[n - i] - PrimePi[n - i - 1]), {i, Floor[(n - 1)/2]}], {n, 80}]
PROG
(PARI) a(n) = n*sum(i=1, (n-1)\2, (n-i)*(n-2*i)*isprime(i)*isprime(n-i)); \\ Michel Marcus, Apr 21 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 20 2018
STATUS
approved