Problem #PRU-100225

Problems Number Theory Divisibility Divisibility of a number. General properties Divisibility rules

Problem

We call a 10-digit number interesting if it is divisible by 11111, and all its digits are different. How many interesting numbers does there exist?
Note that a number k=a0+10a1++109a9 is divisible by 11111 if and only if a number m=(a0+a5)+10(a1+a6)++104(a4+a9) is also divisible by 11111. This is because 100000=1+9×11111 and we subtract 99999(a5+10a6+100a7+1000a8+10000a9) from the original number.