OFFSET
1,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
Vincenzo Librandi, X^2-AY^2=1, Math Forum, 2007. [Wayback Machine link]
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
From Elmo R. Oliveira, Jun 06 2026: (Start)
G.f.: x*(3395619 + 7621656*x + 285769*x^2)/(1 - x)^3.
E.g.f.: -285769 + (285769 + 3109850*x + 5651522*x^2)*exp(x). (End)
MAPLE
A157106:=n->5651522*n^2 - 2541672*n + 285769; seq(A157106(n), n=1..30); # Wesley Ivan Hurt, Jan 23 2014
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {3395619, 17808513, 43524451}, 30]
PROG
(Magma) I:=[3395619, 17808513, 43524451]; [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) = 5651522*n^2 - 2541672*n + 285769
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, Feb 23 2009
STATUS
approved
