login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
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
Sequence in context: A186436 A054670 A277929 * A225346 A225312 A370335
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 20 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)