OFFSET
0,3
COMMENTS
REFERENCES
J. V. Uspensky and M. A. Heaslet, Elementary Number Theory, McGraw-Hill, 1939. See p. 427.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..49
FORMULA
Right triangle with sides |10*Y(n)*W(n) / (X(n)*Z(n))|, |X(n)*Z(n) / (Y(n)*W(n))|, |2*Y(2*n) / W(2*n)| has area 5.
W(2*n) = (-1)^n * 2 * W(n) * X(n) * Y(n) * Z(n) for all n in Z.
a(n+2) * a(n-2) = 144 * a(n+1) * a(n-1) + 2257 * a(n)^2, a(n) = -a(-n) for all n in Z.
PROG
(PARI) {a(n) = my(s=sign(n)); n=abs(n); if( n<1, 0, s * if( n<5, [1, -12, -2257, 1494696][n], (144 * a(n-1) * a(n-3) + 2257 * a(n-2)^2 ) / a(n-4) ))};
CROSSREFS
KEYWORD
sign
AUTHOR
Michael Somos, Apr 03 2007
STATUS
approved