You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://en.wikipedia.org/wiki/Factorion states that
There are just four factorions (in base 10) and they are 1, 2, 145 and 40585
Simple enough! sum is 145 + 40585
Similar to problem 30
If n is a natural number of d digits that is a factorion, then 10*pow(d-1) <= n
< =9!d and this fails to hold for d >= 8. Thus n has 7 digits and the maximum sum of factorials of digits for a 7 digit number is 9!7 = 2,540,160, which is the upper bound.