OFFSET
2,1
COMMENTS
When u = 1 except for the leading zeros, we get A007531. Since sides a,b of Pythagorean triple triangles are of opposite parity, the area will always be an integer.
LINKS
Index entries for linear recurrences with constant coefficients, signature (4, -6, 4, -1).
FORMULA
The area of a Pythagorean triangle of sides a < b < c is A = (1/2)*ab. Substituting a = u^2 - v^2, b = 2uv into A and simplifying, we get A = uv(v^2 - u^2).
a(n) = (n-3)*(n*3)*(n+3), n >= 3. - Zerinvary Lajos, Mar 05 2007
a(n)=4*a(n-1)-6*a(n-2)+4*a(n-3)- a(n-4); a(3)=84, a(4)=240, a(5)=486, a(6)=840. - Harvey P. Dale, Aug 28 2011
G.f.: (6*x*(5*x-16)+84)/(x-1)^4. - Harvey P. Dale, Aug 28 2011
MAPLE
seq((n-3)*(n*3)*(n+3), n=3..38); # Zerinvary Lajos, Mar 05 2007
MATHEMATICA
Table[(n-3)(3n)(n+3), {n, 4, 40}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {84, 240, 486, 840}, 40] (* Harvey P. Dale, Aug 28 2011 *)
PROG
(PARI) areagen(n, u) = for(v=u+1, n, print1(u*v*(v^2-u^2)", "))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Cino Hilliard, Aug 05 2004
STATUS
approved