OFFSET
1,1
COMMENTS
Note that the first eight terms of the sequence are powers of 10.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Milan Janjic, Enumerative Formulas for Some Functions on Finite Sets
Index entries for linear recurrences with constant coefficients, signature (45,-870,9450,-63273,269325,-723680,1172700,-1026576,362880).
FORMULA
a(n) = 9*9^n-36*8^n+84*7^n-126*6^n+126*5^n-84*4^n+36*3^n-9*2^n+1.
MAPLE
f:=n->9*9^n-36*8^n+84*7^n-126*6^n+126*5^n-84*4^n+36*3^n-9*2^n+1;
MATHEMATICA
f[n_] := (9*9^n - 36*8^n + 84*7^n - 126*6^n + 126*5^n - 84*4^n + 36*3^n - 9*2^n + 1); Array[f, 18] (* Robert G. Wilson v, May 31 2009 *)
(* or *) f[n_] := Sum[ -(-1)^k*Binomial[9, k] (10 - k)^n, {k, 9}]; Array[f, 18] (* Robert G. Wilson v, May 31 2009 *)
PROG
(PARI) vector(100, n, 9*9^n-36*8^n+84*7^n-126*6^n+126*5^n-84*4^n+36*3^n-9*2^n+1) \\ Colin Barker, Feb 23 2015
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Aleksandar M. Janjic and Milan Janjic, Feb 03 2007
EXTENSIONS
Incorrect g.f. removed by Georg Fischer, May 15 2019
STATUS
approved