OFFSET
1,1
COMMENTS
Also called the excess of a Pythagorean triangle, and is equal to the diameter of its incircle. All members of this sequence are even, and the corresponding sequence for primitive triangles only is A020887.
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
Darryl McCullough, Height and Excess of Pythagorean Triples
Darryl McCullough, Height and Excess of Pythagorean Triples, Mathematics Magazine, Vol. 78, No. 1, February 2005.
EXAMPLE
The smallest excess in any Pythagorean triangle is 2, which occurs in (3,4,5) because 3+4-5=2. Hence a(1)=2.
MATHEMATICA
data1=Reduce[ a^2+b^2==c^2 && a+b-c==# && 0<a<b<c, {a, b, c}, Integers]&/@Range[30]; DeleteCases[Table[If[Head[data1[[k]]]===Symbol, 0, If[Head[data1[[k]]]===And, k, Table[k, {i, 1, Length[data1[[k]]]}]]], {k, 1, Length[data1]}], 0]//Flatten
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Ant King, Feb 18 2009
STATUS
approved