OFFSET
1,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Vincenzo Librandi, X^2-AY^2=1
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(1)=99, a(2)=3480, a(3)=11663, a(n)=3*a(n-1)-3*a(n-2)+a(n-3) [From Harvey P. Dale, Dec 03 2011]
G.f.: x*(1520*x^2 + 3183*x + 99)/(1-x)^3. - Harvey P. Dale, Dec 03 2011
E.g.f.: (1520 - 1421*x + 2401*x^2)*exp(x) - 1520. - G. C. Greubel, Feb 02 2018
MATHEMATICA
Table[2401n^2-3822n+1520, {n, 40}] (* or *) LinearRecurrence[{3, -3, 1}, {99, 3480, 11663}, 40] (* Harvey P. Dale, Dec 03 2011 *)
PROG
(Magma) I:=[99, 3480, 11663]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..40]];
(PARI) a(n)=2401*n^2-3822*n+1520 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 28 2009
STATUS
approved