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.

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

This page as a plain text file.
%I A138418 #17 Sep 08 2022 08:45:33
%S A138418 6,36,300,1176,7260,14196,41616,64980,139656,353220,461280,936396,
%T A138418 1412040,1708476,2438736,3943836,6056940,6921060,10073316,12703320,
%U A138418 14196456,19471920,23725716,31367160,44259936,52025100,56270136
%N A138418 a(n) = ((n-th prime)^4-(n-th prime)^2)/2.
%H A138418 Vincenzo Librandi, <a href="/A138418/b138418.txt">Table of n, a(n) for n = 1..200</a>
%F A138418 a(n) = A138402(n)/2. - _R. J. Mathar_, Oct 15 2017
%F A138418 a(n) = binomial(prime(n)^2, 2) = A000217(A001248(n)). - _Jon Maiga_, Nov 14 2018
%t A138418 a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/2], {n, 1, 50}]; a
%o A138418 (Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/2: n in [1..30] ]; // _Vincenzo Librandi_, Jun 17 2011
%o A138418 (PARI) forprime(p=2,1e3,print1((p^4-p^2)/2", ")) \\ _Charles R Greathouse IV_, Jul 15 2011
%K A138418 nonn,easy
%O A138418 1,1
%A A138418 _Artur Jasinski_, Mar 19 2008