OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
Index entries for linear recurrences with constant coefficients, signature (24, -45, 22).
FORMULA
a(1)=1, a(2)=24, a(3)=531, a(n) = 24*a(n-1) - 45*a(n-2) + 22*a(n-3). - Vincenzo Librandi, Oct 19 2012
MATHEMATICA
LinearRecurrence[{24, -45, 22}, {1, 24, 531}, 20] (* Vincenzo Librandi, Oct 19 2012 *)
PROG
(Magma) I:=[1, 24, 531]; [n le 3 select I[n] else 24*Self(n-1) - 45*Self(n-2) + 22*Self(n-3): n in [1..20]]; // Vincenzo Librandi, Oct 19 2012
(Maxima)
a[1]:1$
a[2]:24$
a[3]:531$
a[n]:=24*a[n-1]-45*a[n-2]+22*a[n-3]$
A014907(n):=a[n]$
makelist(A014907(n), n, 1, 30); /* Martin Ettl, Nov 06 2012 */
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved