OFFSET
1,1
COMMENTS
For a guide to related sequences, see A204892.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..23005
MATHEMATICA
(See the program at A204994.)
PROG
(PARI) A204998(n) = { my(d); for(k=sqrtint(1+n), oo, for(j=1, k-1, if(!((d=(k^2)-(j^2))%n), return(d), if(d<n, break)))); }; \\ Antti Karttunen, Sep 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 21 2012
EXTENSIONS
More terms from Antti Karttunen, Sep 28 2018
STATUS
approved