OFFSET
1,1
COMMENTS
On plot picture of A152676 is easy to see that all points occurred between some upper and lower limit curve. Numbers in this sequence are the nearest upper limit curve.
MATHEMATICA
aa = {}; max = 0; Do[If[Mod[Prime[n], 4] == 1, k = 1;
While[! Mod[k^2 + 1, Prime[n]] == 0, k++]; If[Prime[n] - k > max, max = Prime[n] - k; AppendTo[aa, Prime[n] - k]]], {n, 1, 1000}]; aa (* Artur Jasinski, Oct 09 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Oct 09 2011
STATUS
approved