OFFSET
1,6
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
a(8)=2 because 65=64+1=49+16 and 73=64+9 are between squares 49 and 64. Note that 65 is counted only once.
MATHEMATICA
maxN=100; lst={}; For[n=1, n<=maxN, n++, sqrs={}; i=n; j=0; While[i>=j, j=1; While[i^2+j^2<(n+1)^2, If[i>=j&&i^2+j^2>n^2&&GCD[i, j]==1&&OddQ[i]==EvenQ[j], AppendTo[sqrs, i^2+j^2]]; j++ ]; i--; j-- ]; AppendTo[lst, Length[Union[sqrs]]]]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Nov 20 2002
STATUS
approved