|
|
A077193
|
|
Number of multiples of n that can be obtained by permuting the digits of number formed by the concatenation of first n numbers.
|
|
1
|
|
|
1, 1, 6, 6, 24, 360, 720, 5040, 362880, 1814400, 23587200, 1089728640
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
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
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|