login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A265325
Number of n-digit decimal numbers with leading zeros allowed where no digit appears exactly twice.
3
10, 90, 730, 5410, 37900, 264250, 1908910, 14322520, 110305720, 875799550, 7203731050, 60866700940, 527138423380, 4696469283970, 42797376850150, 397903278667600, 3783002076771760, 36604891556846470, 360117919584474850, 3603555076712108500
OFFSET
1,1
FORMULA
E.g.f.: Sum_{q=1..N} C(10,q)*(exp(z)-z^2/2-1)^q.
E.g.f.: (exp(z)-z^2/2)^10.
EXAMPLE
Computing the value for n=1 the ten one-digit numbers 0-9 all qualify.
Computing the value for n=2 of two-digit numbers 00-99 all qualify except those consisting of a double digit (00, 11, ..., 99).
MAPLE
STNE2 := (n, k)->n!*coeftayl((exp(z)-z^2/2-1)^k/k!, z=0, n);
a(N) := N -> add(combinat:-binomial(10, q)*STNE2(N, q)*q!, q = 1 .. N)
MATHEMATICA
With[{nn=20}, Rest[CoefficientList[Series[(Exp[x]-x^2/2)^10, {x, 0, nn}], x] Range[0, nn]!]] (* Harvey P. Dale, Oct 07 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Marko Riedel, Apr 30 2016
STATUS
approved