OFFSET
1,1
COMMENTS
There exists no case in which x and y are both squares.
LINKS
MathForFun, Pythagorean triples
Chenglong Zou, Peter Otzen, Cino Hilliard, Pythagorean triplets, digest of 6 messages in mathfun Yahoo group, Mar 19, 2005.
EXAMPLE
y=3, x=4, 4^2 + 3^2 = 5^2. 3 is the 1st entry in the list.
PROG
(PARI) pythtrisq(n) = { local(a, b, c=0, k, x, y, z, vy, j); w = vector(n*n+1); for(a=1, n, for(b=1, n, x=2*a*b; y=b^2-a^2; z=b^2+a^2; if(y > 0 & issquare(x), c++; w[c]=y; print(x", "y", "z) ) ) ); vy=vector(c); w=vecsort(w); for(j=1, n*n, if(w[j]>0, k++; vy[k]=w[j]; ) ); for(j=1, 200, print1(vy[j]", ") ) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Mar 19 2005
STATUS
approved