login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A014907
a(1)=1, a(n) = 22*a(n-1) + n.
2
1, 24, 531, 11686, 257097, 5656140, 124435087, 2737571922, 60226582293, 1324984810456, 29149665830043, 641292648260958, 14108438261741089, 310385641758303972, 6828484118682687399, 150226650611019122794
OFFSET
1,2
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
Sequence in context: A242524 A264956 A055007 * A233636 A121905 A192835
KEYWORD
nonn
STATUS
approved