A155657 10^n+7^n-1.
1, 16, 148, 1342, 12400, 116806, 1117648, 10823542, 105764800, 1040353606, 10282475248, 101977326742, 1013841287200, 10096889010406, 100678223072848, 1004747561509942, 10033232930569600, 100232630513987206
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (18,-87,70).
Crossrefs
Programs
-
Mathematica
Table[10^n+7^n-1,{n,0,30}] (* or *) LinearRecurrence[{18,-87,70},{1,16,148},30] (* Harvey P. Dale, Aug 29 2024 *)
-
PARI
a(n)=10^n+7^n-1^n \\ Charles R Greathouse IV, Jun 11 2015
Formula
G.f.: 1/(1-10*x)+1/(1-7*x)-1/(1-x). E.g.f.: e^(10*x)+e^(7*x)-e^x.
a(n)=17*a(n-1)-70*a(n-2)-54 with a(0)=1, a(1)=16 - Vincenzo Librandi, Jul 21 2010