A138442 a(n) = ((n-th prime)^6-(n-th prime^2))/3.
20, 240, 5200, 39200, 590480, 1608880, 8045760, 15681840, 49345120, 198274160, 295834240, 855241680, 1583367520, 2107120400, 3593071040, 7388119440, 14060176720, 17173456880, 30152792560, 42700092960, 50444740320
Offset: 1
Programs
-
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 *)
-
PARI
forprime(p=2,1e3,print1((p^6-p^2)/3", ")) \\ Charles R Greathouse IV, Jul 15 2011
Formula
a(n) = A138409(n)/3. - R. J. Mathar, Oct 15 2017