OFFSET
0,2
COMMENTS
LINKS
Rémy Sigrist, PARI program for A328287
FORMULA
a(n) = 0 whenever n == 0 (mod 10) or n > 987654321.
EXAMPLE
For n = 1, this is simply the number of numbers with only distinct and nonzero digits. All other terms are less than a(1), namely, the size of the subset of these numbers which are multiples of n.
PROG
(PARI) A328287(n, B=10, S)={for(L=1, B-1, my(T=vectorv(L, k, B^(k-1))); forperm(L, p, u=vecextract(T, p); forvec(d=vector(L, i, [1, B-1]), d*u%n||S++, 2))); S} \\ 2nd optional argument allows to specify a base different from 10
(PARI) See Links section
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Oct 10 2019
STATUS
approved