cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A138421 a(n) = (prime(n)^4 - prime(n)^2)/6.

This page as a plain text file.
%I A138421 #13 Sep 08 2022 08:45:33
%S A138421 2,12,100,392,2420,4732,13872,21660,46552,117740,153760,312132,470680,
%T A138421 569492,812912,1314612,2018980,2307020,3357772,4234440,4732152,
%U A138421 6490640,7908572,10455720,14753312,17341700,18756712,21844692,23524380,27172432
%N A138421 a(n) = (prime(n)^4 - prime(n)^2)/6.
%H A138421 Vincenzo Librandi, <a href="/A138421/b138421.txt">Table of n, a(n) for n = 1..200</a>
%F A138421 a(n) = A138402(n)/6. - _R. J. Mathar_, Oct 15 2017
%t A138421 a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/6], {n, 1, 50}]; a
%o A138421 (Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/6: n in [1..35] ]; // _Vincenzo Librandi_, Jun 17 2011
%o A138421 (PARI) forprime(p=2,1e3,print1((p^4-p^2)/6", ")) \\ _Charles R Greathouse IV_, Jul 15 2011
%K A138421 nonn,easy
%O A138421 1,1
%A A138421 _Artur Jasinski_, Mar 19 2008