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.

A138401 a(n) = prime(n)^4 - prime(n).

This page as a plain text file.
%I A138401 #22 Jan 27 2023 13:41:50
%S A138401 14,78,620,2394,14630,28548,83504,130302,279818,707252,923490,1874124,
%T A138401 2825720,3418758,4879634,7890428,12117302,13845780,20151054,25411610,
%U A138401 28398168,38950002,47458238,62742152,88529184,104060300,112550778
%N A138401 a(n) = prime(n)^4 - prime(n).
%H A138401 Vincenzo Librandi, <a href="/A138401/b138401.txt">Table of n, a(n) for n = 1..200</a>
%H A138401 <a href="/index/Pri#prime_powers">Index to sequences related to prime powers</a>
%F A138401 a(n) = A030514(n) - A000040(n). - _Elmo R. Oliveira_, Jan 27 2023
%t A138401 Table[p = Prime[n]; p^4 - p, {n, 50}]
%t A138401 #^4-#&/@Prime[Range[30]] (* _Harvey P. Dale_, Aug 14 2011 *)
%o A138401 (PARI) forprime(p=2,1e3,print1(p^4-p", ")) \\ _Charles R Greathouse IV_, Jun 16 2011
%o A138401 (Magma) [NthPrime((n))^4 - NthPrime(n): n in [1..50] ]; // _Vincenzo Librandi_, Jun 17 2011
%Y A138401 Cf. A000040, A001248, A030078, A030514.
%K A138401 nonn,easy
%O A138401 1,1
%A A138401 _Artur Jasinski_, Mar 19 2008