login
A155643
10^n-5^n+1.
17
1, 6, 76, 876, 9376, 96876, 984376, 9921876, 99609376, 998046876, 9990234376, 99951171876, 999755859376, 9998779296876, 99993896484376, 999969482421876, 9999847412109376, 99999237060546876, 999996185302734376
OFFSET
0,2
FORMULA
G.f.: 1/(1-10*x)-1/(1-5*x)+1/(1-x). E.g.f.: e^(10*x)-e^(5*x)+e^x.
a(n)=15*a(n-1)-50*a(n-2)+36 with a(0)=1, a(1)=6 - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[10^n-5^n+1, {n, 0, 20}] (* Harvey P. Dale, Oct 02 2011 *)
PROG
(PARI) a(n)=10^n-5^n+1^n \\ Charles R Greathouse IV, Jun 11 2015
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 30 2009
STATUS
approved