OFFSET
1,2
COMMENTS
The corresponding values of x of this Pell equation are in A114048.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (340,-1).
FORMULA
a(n) = 340*a(n-1)-a(n-2) with a(1)=0, a(2)=39.
G.f.: 39*x^2/(1-340*x+x^2).
MATHEMATICA
LinearRecurrence[{340, -1}, {0, 39}, 30]
PROG
(Magma) I:=[0, 39]; [n le 2 select I[n] else 340*Self(n-1)-Self(n-2): n in [1..20]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 14 2010
STATUS
approved