OFFSET
1,4
COMMENTS
a(n) is the number of n-digit numbers in A031969.
LINKS
FORMULA
EXAMPLE
a(1) = a(2) = a(3) = 0 since the positive integers must have at least four digits;
a(4) = #{wxyz in N | w,x,y,z are four different digits with w != 0} = A073531(4) = 4536;
a(5) = 45360 since #[99999] - #[9999] - #(11111*[9]) - A335843(5) - A337313(5) - #{vwxyz in N | v,w,x,y,z are five different digits with v != 0} = 99999 - 9999 - 9 - 1215 - 16200 - 9*9*8*7*6 = 45360;
...
MATHEMATICA
LinearRecurrence[{10, -35, 50, -24}, {0, 0, 0, 4536}, 23]
PROG
(PARI) concat([0, 0, 0], Vec(4536*x^4/(1-10*x+35*x^2-50*x^3+24*x^4)+O(x^24)))
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Stefano Spezia, Sep 26 2020
STATUS
approved