login
A138450
a(n) = ((n-th prime)^6-(n-th prime^2))/30.
2
2, 24, 520, 3920, 59048, 160888, 804576, 1568184, 4934512, 19827416, 29583424, 85524168, 158336752, 210712040, 359307104, 738811944, 1406017672, 1717345688, 3015279256, 4270009296, 5044474032, 8102914976, 10898012216, 16566042768
OFFSET
1,1
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^6 - p^2)/30, {n, 1, 50}]; a
(#^6-#^2)/30&/@Prime[Range[30]] (* Harvey P. Dale, Jan 23 2019 *)
PROG
(PARI) forprime(p=2, 1e3, print1((p^6-p^2)/30", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A186414 A359848 A187658 * A262009 A367271 A054946
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008, Mar 22 2008
STATUS
approved