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.

A121844 Excess of n^3 over previous prime.

This page as a plain text file.
%I A121844 #7 Jun 03 2013 06:31:51
%S A121844 1,4,3,12,5,6,3,2,3,4,5,18,3,2,3,4,5,2,7,4,9,4,17,6,3,2,9,10,7,2,19,4,
%T A121844 3,12,7,2,3,38,3,4,11,14,25,4,9,10,5,6,9,4,5,4,7,12,15,4,9,22,17,38,7,
%U A121844 4,5,16,5,2,9,28,11,28,17,14,3,28,9,4,5,12,3,58,5,4,11,12,13,16,21,22,7,2,7
%N A121844 Excess of n^3 over previous prime.
%e A121844 a(5)=12 because 5^3=125 and previous prime is 113 hence a(5)=125-113=12
%t A121844 Table[n^3-Prime[PrimePi[n^3]],{n,2,100}]
%t A121844 #-NextPrime[#,-1]&/@((Range[2,100])^3) (* _Harvey P. Dale_, Apr 06 2013 *)
%o A121844 (PARI) a(n) = n^3 - precprime(n^3 - 1) \\ _Michel Marcus_, Jun 03 2013
%Y A121844 Cf. A077037.
%K A121844 nonn
%O A121844 2,2
%A A121844 _Zak Seidov_, Aug 29 2006