OFFSET
1,3
COMMENTS
a(n) is the number of n-digit numbers in A031962.
LINKS
FORMULA
EXAMPLE
a(1) = a(2) = 0 since the positive integers must have at least three digits;
a(3) = #{xyz in N | x,y,z are three different digits with x != 0} = 9*9*8 = 648;
a(4) = 3888 since #[9999] - #[999] - #(1111*[9]) - A335843(4) - #{xywz in N | x,y,w,z are four different digits with x != 0} = 9999 - 999 - 9 - 567 - 9*9*8*7 = 3888;
...
MATHEMATICA
LinearRecurrence[{6, -11, 6}, {0, 0, 648}, 26]
PROG
(PARI) concat([0, 0], Vec(648*x^3/(1-6*x+11*x^2-6*x^3)+O(x^26)))
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Stefano Spezia, Aug 22 2020
STATUS
approved