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”).

The record values of d for the n in A239390.
2

%I #13 Feb 08 2020 20:42:53

%S 1,3,5,7,11,13,17,29,37,41,43,67,95,97,109,113,115,119,167,179,181,

%T 205,211,215,229,235,265,281,319,359,373,401,413,421,439,443,461,505,

%U 545,559,719,745,775,941

%N The record values of d for the n in A239390.

%t greatestK[n_] := Module[{k = 1}, While[! PrimeQ[n^2 + (n - k)^2], k++]; k]; nn = 10000; t = {}; kMax = 0; Do[k = greatestK[n]; If[k > kMax, kMax = k; AppendTo[t, {n, k}]], {n, 2, nn}]; Transpose[t][[2]]

%Y Cf. A069002 (least number d such that n^2 + (n-d)^2 is prime).

%K nonn,more

%O 1,2

%A _T. D. Noe_, Mar 19 2014

%E a(38)-a(41) from _Chai Wah Wu_, Feb 06 2020

%E a(42)-a(44) from _Chai Wah Wu_, Feb 08 2020