A138438 a(n) = ((n-th prime)^5-(n-th prime)^3)/24.
1, 9, 125, 686, 6655, 15379, 58956, 102885, 267674, 853615, 1191640, 2887221, 4824470, 6122039, 9551716, 17418609, 29779955, 35182055, 56242681, 75161310, 86361774, 128190140, 164102869, 232639770, 357767816, 437877925, 482985334
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
a = {}; Do[p = Prime[n]; AppendTo[a, (p^5 - p^3)/24], {n, 1, 50}]; a (#^5-#^3)/24&/@Prime[Range[40]] (* Harvey P. Dale, May 21 2017 *)
-
PARI
forprime(p=2,1e3,print1((p^5-p^3)/24", ")) \\ Charles R Greathouse IV, Jul 15 2011