Find the sum of all positive integers such that has exactly digits in decimal representation.
Notation : denotes the factorial notation. For example, .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
There are 4 such numbers 1 , 2 2 , 2 3 and 2 4 . Hence, the sum is 7 0 .
It is trivial that 1 is a valid solution. However, for 2 ≤ n ≤ 2 1 , it may be seen that lo g 1 0 ( n ! ) < n − 1 which means that it has less than n digits.
Further, lo g 1 0 2 5 ! ≈ 2 5 . 1 9 hence 2 5 ! has 2 6 digits and every subsequent factorial will add at least one digit. Hence for n > 2 4 , n ! has more than n digits.