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

A239391
The record values of d for the n in A239390.
2
1, 3, 5, 7, 11, 13, 17, 29, 37, 41, 43, 67, 95, 97, 109, 113, 115, 119, 167, 179, 181, 205, 211, 215, 229, 235, 265, 281, 319, 359, 373, 401, 413, 421, 439, 443, 461, 505, 545, 559, 719, 745, 775, 941
OFFSET
1,2
MATHEMATICA
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]]
CROSSREFS
Cf. A069002 (least number d such that n^2 + (n-d)^2 is prime).
Sequence in context: A108816 A088503 A118939 * A087382 A355845 A025127
KEYWORD
nonn,more
AUTHOR
T. D. Noe, Mar 19 2014
EXTENSIONS
a(38)-a(41) from Chai Wah Wu, Feb 06 2020
a(42)-a(44) from Chai Wah Wu, Feb 08 2020
STATUS
approved