A155607 9^n+3^n-1.
1, 11, 89, 755, 6641, 59291, 532169, 4785155, 43053281, 387440171, 3486843449, 31381236755, 282430067921, 2541867422651, 22876797237929, 205891146443555, 1853020231898561, 16677181828806731, 150094635684419609
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (13,-39,27).
Crossrefs
Programs
-
Mathematica
LinearRecurrence[{13,-39,27},{1,11,89},20] (* Harvey P. Dale, Dec 29 2018 *)
-
PARI
a(n)=9^n+3^n-1 \\ Charles R Greathouse IV, Jun 11 2015
Formula
G.f.: 1/(1-9*x)+1/(1-3*x)-1/(1-x). E.g.f.: e^(9*x)+e^(3*x)-e^x.
a(n)=12*a(n-1)-27*a(n-2)-16 with a(0)=1, a(1)=11 - Vincenzo Librandi, Jul 21 2010