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!)
A138418 a(n) = ((n-th prime)^4-(n-th prime)^2)/2. 3

%I #17 Sep 08 2022 08:45:33

%S 6,36,300,1176,7260,14196,41616,64980,139656,353220,461280,936396,

%T 1412040,1708476,2438736,3943836,6056940,6921060,10073316,12703320,

%U 14196456,19471920,23725716,31367160,44259936,52025100,56270136

%N a(n) = ((n-th prime)^4-(n-th prime)^2)/2.

%H Vincenzo Librandi, <a href="/A138418/b138418.txt">Table of n, a(n) for n = 1..200</a>

%F a(n) = A138402(n)/2. - _R. J. Mathar_, Oct 15 2017

%F a(n) = binomial(prime(n)^2, 2) = A000217(A001248(n)). - _Jon Maiga_, Nov 14 2018

%t a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/2], {n, 1, 50}]; a

%o (Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/2: n in [1..30] ]; // _Vincenzo Librandi_, Jun 17 2011

%o (PARI) forprime(p=2,1e3,print1((p^4-p^2)/2", ")) \\ _Charles R Greathouse IV_, Jul 15 2011

%K nonn,easy

%O 1,1

%A _Artur Jasinski_, Mar 19 2008

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 23 09:22 EDT 2024. Contains 371905 sequences. (Running on oeis4.)