OFFSET
1,6
COMMENTS
Conjecture: the values between two zeros are always distinct from each other.
LINKS
Zhuorui He, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
The 6th number expressible as sum of two squares A001481(6) = 8 = 2^2 + 2^2, so a(6)=2.
PROG
(PARI) for(n=0, 300, my(s=sqrtint(n)); forstep(i=s, 0, -1, if(issquare(n-i*i), print1(sqrtint(n-i*i), ", "); break))); \\ shift corrected by Michel Marcus, Jul 08 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Ralf Stephan, Sep 15 2013
STATUS
approved
