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!)
A138421 a(n) = (prime(n)^4 - prime(n)^2)/6. 4
2, 12, 100, 392, 2420, 4732, 13872, 21660, 46552, 117740, 153760, 312132, 470680, 569492, 812912, 1314612, 2018980, 2307020, 3357772, 4234440, 4732152, 6490640, 7908572, 10455720, 14753312, 17341700, 18756712, 21844692, 23524380, 27172432 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = A138402(n)/6. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/6], {n, 1, 50}]; a
PROG
(Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/6: n in [1..35] ]; // Vincenzo Librandi, Jun 17 2011
(PARI) forprime(p=2, 1e3, print1((p^4-p^2)/6", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
Sequence in context: A009816 A227084 A064370 * A224403 A219534 A151392
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 April 19 18:58 EDT 2024. Contains 371798 sequences. (Running on oeis4.)