OFFSET
1,2
COMMENTS
The corresponding values of x of this Pell equation are in A097308.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (26,-1).
FORMULA
a(n) = 26*a(n-1)-a(n-2) with a(1)=0, a(2)=2.
G.f.: 2*x^2/(1-26*x+x^2).
MATHEMATICA
LinearRecurrence[{26, -1}, {0, 2}, 30]
With[{c=2*Sqrt[42]}, Table[-((13-c)^n-(13+c)^n)/c, {n, 0, 20}]]//Simplify (* Harvey P. Dale, Nov 05 2022 *)
PROG
(Magma) I:=[0, 2]; [n le 2 select I[n] else 26*Self(n-1)-Self(n-2): n in [1..20]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 15 2010
STATUS
approved