OFFSET
0,3
COMMENTS
a(n) is the number of positive integers less than or equal to 10^n that have at least two distinct digits.
REFERENCES
Miklos Bona, Introduction to Enumerative Combinatorics, McGraw-Hill,2007,p.5
FORMULA
O.g.f.: (x+70x^2+10x^3)/((1-x)^2*(1-10x)) E.g.f.: exp(10x)-9x*exp(x)-1
MATHEMATICA
CoefficientList[Series[Exp[10 x] - 9 x*Exp[x] - 1, {x, 0, 20}], x]* Table[n!, {n, 0, 20}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Geoffrey Critzer, May 03 2009
STATUS
approved