Mirror, mirror, on the wall, who's the fairest of them all?

A positive integer nn is called fair if the sum of the factorial of its digits is divisible by itself. 145 is one such number : 1!+4!+5!=1450mod(145)1! + 4! + 5! = 145 \equiv 0 \mod (145) Find the sum of all the fair numbers less than 10710^7.

×

Problem Loading...

Note Loading...

Set Loading...