OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (99,-99,1).
FORMULA
General formula: cosh((2*n-1)*arcsinh(sqrt(2)))^2 + cos((2*n-1)*arcsin(sqrt(3))^2 = 1.
a(n) = A146313(n) - 1.
a(n) = 99*a(n-1) - 99*a(n-2) + a(n-3). - Colin Barker, Oct 26 2014
G.f.: -2*x*(x^2+22*x+1) / ((x-1)*(x^2-98*x+1)). - Colin Barker, Oct 26 2014
a(n) = 2*A054320(n-1)^2. - Jon E. Schoenfield, Jun 08 2018
MATHEMATICA
Table[Round[ -N[Cos[(2 n - 1) ArcSin[Sqrt[3]]], 300]^2], {n, 1, 50}]
LinearRecurrence[{99, -99, 1}, {2, 242, 23762}, 50] (* G. C. Greubel, Jul 03 2017 *)
PROG
(PARI) Vec(-2*x*(x^2+22*x+1) / ((x-1)*(x^2-98*x+1)) + O(x^100)) \\ Colin Barker, Oct 26 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Oct 29 2008
EXTENSIONS
More terms from Colin Barker, Oct 26 2014
STATUS
approved