login
A155608
10^n + 3^n - 1.
12
1, 12, 108, 1026, 10080, 100242, 1000728, 10002186, 100006560, 1000019682, 10000059048, 100000177146, 1000000531440, 10000001594322, 100000004782968, 1000000014348906, 10000000043046720, 100000000129140162
OFFSET
0,2
FORMULA
G.f.: 1/(1-10*x)+1/(1-3*x)-1/(1-x).
E.g.f.: e^(10*x)+e^(3*x)-e^x.
a(n) = 13*a(n-1)-30*a(n-2)-18 with a(0)=1, a(1)=12. - Vincenzo Librandi, Jul 21 2010
MAPLE
A155608:=n->10^n + 3^n - 1; seq(A155608(n), n=0..30); # Wesley Ivan Hurt, Apr 02 2014
MATHEMATICA
Table[10^n + 3^n - 1, {n, 0, 30}] (* Wesley Ivan Hurt, Apr 02 2014 *)
PROG
(PARI) a(n)=10^n+3^n-1 \\ Charles R Greathouse IV, Sep 28 2015
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 25 2009
STATUS
approved