Fooling around with factorials - with Thanks to Chew-Seong Cheong

Let S ( n ) S(n) denote the number of digits of n n in decimal representation. What is the largest integer n n satisfying S ( n ! ) + 1 = n S(n!) +1= n ?


The answer is 21.

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.

1 solution

Chew-Seong Cheong
Aug 22, 2015

Thanks, Alisa. I guess I have to provide a solution. But I can only offer a numerical one.

We note that S ( n ) = log 10 n + 1 S(n) = \left \lfloor \log_{10} n \right \rfloor + 1 , where x \lfloor x \rfloor is the greatest integer function. Therefore, S ( n ! ) + 1 = log 10 n ! + 2 S(n!) + 1 = \left \lfloor \log_{10} n! \right \rfloor + 2 . The following spreadsheet shows the that there are four n n 's that satisfy the equation. And the largest one is 21 \boxed{21} . For n > 21 n>21 , S ( n ! ) + 1 > n S(n!) + 1 > n .

Moderator note:

It is unlikely to have a non-numerical approximation solution to this problem.

One could use stirling's formula as bound.

Xuming Liang - 5 years, 9 months ago

Log in to reply

I actually thought of that but it work probably involved similar computation work.

Chew-Seong Cheong - 5 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...