login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..200

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

Adjacent sequences: A138419 A138420 A138421 * A138423 A138424 A138425

KEYWORD

nonn,easy

AUTHOR

Artur Jasinski, Mar 19 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 26 22:32 EST 2023. Contains 360679 sequences. (Running on oeis4.)