OFFSET
0,3
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
J. P. Chabert, Right Triangle Applet (Hypotenuse & angles computation, given legs<350). [Dead Link]
Luke Underwood, Right Triangle Maker, GeoGebra.
Index entries for linear recurrences with constant coefficients, signature (3,3,-1).
FORMULA
2*a(n)-(-1)^n = A120893(n).
O.g.f.: -(-1+3*x)/((x+1)*(x^2-4*x+1)). - R. J. Mathar, Nov 23 2007
From Amiram Eldar, Jan 26 2026: (Start)
Sum_{n>=2} 1/a(n) = 1/2.
Sum_{n>=2} (-1)^n/a(n) = sqrt(3) - 3/2. (End)
MATHEMATICA
LinearRecurrence[{3, 3, -1}, {1, 0, 3}, 30] (* Harvey P. Dale, Mar 05 2014 *)
PROG
(PARI) a(n)=([0, 1, 0; 0, 0, 1; -1, 3, 3]^n*[1; 0; 3])[1, 1] \\ Charles R Greathouse IV, Oct 19 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lekraj Beedassy, Jul 13 2006
EXTENSIONS
Corrected and extended by T. D. Noe, Nov 07 2006
STATUS
approved
