Chapter 24
Numbers Made of Their Own Factorials
The number has a curious property: add the factorials of its digits and you get the number back, Find every number, beyond the trivial and , equal to the sum of the factorials of its digits.
Solution
There are just two more, and the complete list is The last checks out as (recall ).
The reason the hunt ends is a race between two quantities. A number with digits is at least . The most its digit factorials can ever total is , since is the biggest single-digit factorial. For the number is already at least , while its digit factorials can reach at most , which is smaller. From eight digits on the number always outruns the sum, so no large example can exist, and a finite check settles the rest. Such numbers are called factorions, and in base ten these four are all there are.