login
A138442
a(n) = ((n-th prime)^6-(n-th prime^2))/3.
2
20, 240, 5200, 39200, 590480, 1608880, 8045760, 15681840, 49345120, 198274160, 295834240, 855241680, 1583367520, 2107120400, 3593071040, 7388119440, 14060176720, 17173456880, 30152792560, 42700092960, 50444740320
OFFSET
1,1
FORMULA
a(n) = A138409(n)/3. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^6 - p^2)/3], {n, 1, 50}]; a
(#^6-#^2)/3&/@Prime[Range[30]] (* Harvey P. Dale, Oct 20 2024 *)
PROG
(PARI) forprime(p=2, 1e3, print1((p^6-p^2)/3", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A061121 A073398 A040075 * A341196 A140124 A123954
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008
STATUS
approved