B Cool fact about number of digits in n!

AI Thread Summary
There are only four natural numbers whose factorial has the same number of digits as the number itself: 1, 22, 23, and 24. Beyond 24, the number of digits in n! increases significantly, with 25 having 26 digits. The discussion also explores the concept of finding numbers where n equals the number of digits in n^n, resulting in 1, 8, and 9 as the only solutions. The poster expresses a desire to discover a simple expression that yields scattered answers with an average digit increment of +1. The conversation touches on the potential for exploring this concept in different number bases.
Kyuubi
Messages
18
Reaction score
8
This may have already been found by many people but I discovered the pattern on my own out of curiosity with some coding.

There are only 4 natural numbers whose factorial contains the same number of digits as the number itself. That is to say n = digits_in(n!).

The trivial case is obviously just 1. 1! has only one digit. The other three are surprising, because they are consecutive.

They are 22, 23, and 24.

Unfortunately for our pal 25, it has 26 digits, and after 25, the number of digits begins increasing with an average >1 and the digits can't keep up with their mere increment of +1.

Just thought that was cool and wanted to share it.
 
  • Like
Likes AndreasC, sophiecentaur, jedishrfu and 1 other person
Mathematics news on Phys.org
I wonder how it would work if you played with different number bases like 2, 3, 5, 7, 11, 13... or powers of 2 ie 2,4,8,16...
 
  • Like
Likes AndreasC, SammyS and Kyuubi
jedishrfu said:
I wonder how it would work if you played with different number bases like 2, 3, 5, 7, 11, 13... or powers of 2 ie 2,4,8,16
I tried with powers as well, but I did it in the form n^n. I just felt like taking powers of 2 would be a bit arbitrary. I want the entire expression to only depend on n. Anyways looking for numbers that satisfy n = digits_in(n^n), we get 1 (as expected), but we also simply get 8 and 9. 8^8 = 16777216 and 9^9 = 387420489. No other numbers satisfy this rule. Granted, I only tried up to 4,000, but I'm confident that won't happen :)

My ideal goal would be to find some expression (ideally a simple one too) that increases the number of digits with an average of +1 increment such that you have a bunch of scattered answers rather than cluttered up consecutive answers.
 
Kyuubi said:
My ideal goal would be to find some expression (ideally a simple one too) that increases the number of digits with an average of +1 increment
Do you know what a logarithm is?
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top