OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-1,-1).
FORMULA
a(n) = 2*a(n-1)+a(n-2)+9; a(0)=1, a(1)=11.
a(n) = (((10+(11/2)*sqrt(2))*(1+sqrt(2))^n - (10-(11/2)*sqrt(2))*(1-sqrt(2))^n)/ 2*sqrt(2))-9/2.
From R. J. Mathar, Nov 08 2012: (Start)
G.f.: ( 1+8*x ) / ( (x-1)*(x^2+2*x-1) ).
a(n) = 3*a(n-1)-a(n-2)-a(n-3). - Wesley Ivan Hurt, May 21 2021
MATHEMATICA
Accumulate[LinearRecurrence[{2, 1}, {1, 10}, 35]] (* Harvey P. Dale, Jul 26 2011 *)
LinearRecurrence[{3, -1, -1}, {1, 11, 32}, 29] (* Ray Chandler, Aug 03 2015 *)
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
EXTENSIONS
More terms from Harvey P. Dale, Jul 26 2011
STATUS
approved