OFFSET
1,2
COMMENTS
s = 1 and t = 2 are the initial seed numbers; they give the first Pythagorean pair x = 3, y = 4. Then take s = x, t = y for next seed numbers; these give the next Pythagorean pair x = |s^2-t^2|, y = 2st. Then take s = x, t = y and so on.
LINKS
Planet Math, Pythagorean Triplet
EXAMPLE
a(9) = 527^2-336^2 = 164833 because a(7) = 527 and a(8) = 336.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Pahikkala Jussi, Dec 08 2004
EXTENSIONS
Edited by N. J. A. Sloane, Sep 06 2008
Defined a(2n+1) by absolute values, added 4 values - R. J. Mathar, Oct 14 2010
STATUS
approved