OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-17,17,-6).
FORMULA
a(0)=2, a(1)=6, a(2)=15, a(3)=38, a(n) = 7*a(n-1)-17*a(n-2)+17*a(n-3)-6*a(n-4). [Harvey P. Dale, Oct 24 2011]
G.f.: (x^3+7*x^2-8*x+2)/((x-1)^2*(6*x^2-5*x+1)). [Harvey P. Dale, Oct 24 2011]
MAPLE
MATHEMATICA
Table[3^n + 2^n + n, {n, 0, 30}] (* or *) LinearRecurrence[{7, -17, 17, -6}, {2, 6, 15, 38}, 30] (* Harvey P. Dale, Oct 24 2011 *)
PROG
(Magma) [3^n+2^n+n: n in [0..30]]; // Vincenzo Librandi, Feb 27 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Aug 18 2006
EXTENSIONS
Edited by Ray Chandler, Sep 06 2006
STATUS
approved