OFFSET
1,3
EXAMPLE
a(4) = 6 as using the digits of 1234 one gets six multiples of 4 e.g. 1324,3124,1432,4132,4312 and 3412.
PROG
(PARI) a(n)={my(X=vecsort(concat(vector(n, i, digits(i)))), s=0); forperm(X, p, if(fromdigits(Vec(p))%n==0, s+=1)); s} \\ Andrew Howroyd, Oct 07 2023
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Amarnath Murthy, Nov 01 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 04 2003
Offset corrected and a(11)-a(12) from Andrew Howroyd, Oct 07 2023
STATUS
approved