login
A138435
a(n) = ((n-th prime)^5-(n-th prime)^3)/6.
3
4, 36, 500, 2744, 26620, 61516, 235824, 411540, 1070696, 3414460, 4766560, 11548884, 19297880, 24488156, 38206864, 69674436, 119119820, 140728220, 224970724, 300645240, 345447096, 512760560, 656411476, 930559080, 1431071264
OFFSET
1,1
LINKS
FORMULA
a(n) = A138406(n)/6. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^5 - p^3)/6], {n, 1, 50}]; a
(#^5-#^3)/6&/@Prime[Range[30]] (* Harvey P. Dale, Apr 01 2019 *)
PROG
(PARI) forprime(p=2, 1e3, print1((p^5-p^3)/6", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A094417 A349504 A354264 * A366337 A008546 A277404
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008
STATUS
approved