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”).

A138422
a(n) = (prime(n)^4 - prime(n)^2)/12.
3
1, 6, 50, 196, 1210, 2366, 6936, 10830, 23276, 58870, 76880, 156066, 235340, 284746, 406456, 657306, 1009490, 1153510, 1678886, 2117220, 2366076, 3245320, 3954286, 5227860, 7376656, 8670850, 9378356, 10922346, 11762190, 13586216, 21677376
OFFSET
1,2
LINKS
FORMULA
a(n) = A138402(n)/12. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/12], {n, 1, 50}]; a
PROG
(Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/12: n in [1..40] ]; // Vincenzo Librandi, Jun 17 2011
(PARI) forprime(p=2, 1e3, print1((p^4-p^2)/12", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A231270 A062801 A035290 * A356251 A001303 A220887
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008
STATUS
approved