login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A138417
a(n) = (prime(n)^4 - prime(n))/2.
3
7, 39, 310, 1197, 7315, 14274, 41752, 65151, 139909, 353626, 461745, 937062, 1412860, 1709379, 2439817, 3945214, 6058651, 6922890, 10075527, 12705805, 14199084, 19475001, 23729119, 31371076, 44264592, 52030150, 56275389
OFFSET
1,1
LINKS
FORMULA
a(n) = A138401(n)/2. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p)/2], {n, 1, 50}]; a
(#^4-#)/2&/@Prime[Range[50]] (* Harvey P. Dale, Mar 21 2011 *)
PROG
(Magma) [(NthPrime((n))^4 - NthPrime((n)))/2: n in [1..30] ]; // Vincenzo Librandi, Jun 17 2011
(PARI) forprime(p=2, 1e3, print1((p^4-p)/2", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A219437 A219138 A365485 * A207154 A203111 A198048
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008
STATUS
approved