OFFSET
0,2
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-8,4).
FORMULA
From Harvey P. Dale, Jun 14 2011: (Start)
a(n) = 5*a(n-1) - 8*a(n-2) + 4*a(n-3), a(0)=1, a(1)=2, a(2)=9.
G.f.: (-1+3*x-7*x^2)/((-1+x)*(-1+2*x)^2). (End)
E.g.f.: exp(x)*(5 + exp(x)*(5*x - 4)). - Elmo R. Oliveira, Oct 28 2025
MAPLE
seq(2^(n-1)*(5*n-8)+5, n=0..27); # Nathaniel Johnston, Jun 14 2011
MATHEMATICA
Table[2^(n-1) (5n-8)+5, {n, 0, 35}] (* or *) LinearRecurrence[{5, -8, 4}, {1, 2, 9}, 35] (* Harvey P. Dale, Jun 14 2011 *)
PROG
(PARI) a(n)= (5*n-8)<<(n-1)+5 \\ Charles R Greathouse IV, Jun 14 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Formula from Ralf Stephan, Jan 15 2004
STATUS
approved
