A217111 Number of pandigital numbers <= 10^n.
0, 0, 0, 0, 0, 0, 0, 0, 0, 3265920, 182891520, 5751285120, 134183589120, 2592611400960, 43947813288960, 676736110229760, 9685234777397760, 130890592784891520, 1689704521363998720, 21016063609130056320, 253507542701850904320, 2981020379966298432000
Offset: 1
Examples
a(k) = 0, for k < 10 since there are no pandigital numbers <= 10^9, trivially. a(10) = 9*9!, since the first digit can be in the range 1..9 and for the following 9 digits there are 9, 8, 7, ..., 1 possible values.
Links
- Hieronymus Fischer, Table of n, a(n) for n = 1..200
Programs
-
Mathematica
3265920 Accumulate[StirlingS2[Range[25],10]] (* Harvey P. Dale, Oct 16 2022 *)
Formula
a(n) = 9*9!*Sum_{j=1..n} S2(j,10), where the S2(j,10) are the Stirling numbers of the second kind (cf. triangle A008277).
Asymptotic behavior:
Limit_{n->oo} a(n)/10^n = 1.
G.f.: g(x) = 9*9!*x^10/((1-x)*Product_{j=1..10} (1-jx)).
Comments