login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = prime(prime(n*n) - n*n) - n*n where prime(n) is the n-th prime.
0

%I #9 Mar 11 2019 03:06:51

%S 1,1,34,141,334,595,1012,1503,2192,2983,3786,4963,6304,7687,9518,

%T 11017,13122,15277,17760,20373,23312,26695,29742,33365,37338,41175,

%U 45580,50217,54762,59549,65332,71067,76712,82765,88692,95657,102814,110385

%N a(n) = prime(prime(n*n) - n*n) - n*n where prime(n) is the n-th prime.

%e a(1) = prime(prime(1*1) - 1*1) - 1*1 = prime(prime(1) - 1) - 1 = prime(2 - 1) - 1 = prime(1) - 1 = 2 - 1 = 1.

%e a(5) = prime(prime(5*5) - 5*5) - 5*5 = prime(prime(25) - 25) - 25 = prime(97 - 25) - 25 = prime(72) - 25 = 359 - 25 = 334.

%p p:=ithprime: seq(p(p(n^2)-n^2)-n^2,n=1..40); # _Emeric Deutsch_, Aug 16 2008

%Y Cf. A014689, A141129.

%K nonn

%O 1,3

%A _Juri-Stepan Gerasimov_, Jul 31 2008

%E Corrected and extended by _Emeric Deutsch_, Aug 16 2008