![]() |
|
|
#1 |
|
"Sastry Karra"
Jul 2009
Bridgewater, NJ (USA)
33 Posts |
Hi,
While running a program for a diffferent reason, I found that prime number 23 has a peculiar character. Statement: if p is a PRIME number and n is the Number of digits for Factorial(p), then n = p will be true for 23 Only. Result: P = 23 Fact(23) = 25,852,016,738,884,976,640,000 (23 digits) I tried upto Fact(31667), and haven't found anything. If this is something known or proven earleir, pls accept my apologies. Thanks a lot! |
|
|
|
|
|
#2 |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10000101010112 Posts |
It is indeed the only such prime, (see http://www.research.att.com/~njas/sequences/table?a=34886&fmt=4, a(n) means the number of decimal digits in n!; n=a(n) only for n=22, 23, and 24, and 23 is the only prime of the 3) but it's not really an interesting fact. There's no reason to only consider a prime for such a property, and noting that the only times where n=a(n) are 22, 23, and 24 is not terribly interesting.
|
|
|
|
|
|
#3 |
|
Feb 2006
Denmark
2×5×23 Posts |
You are not the first to observe this. http://primes.utm.edu/curios/page.php/23.html says: "23 is the only prime number p such that p! is p digits long. [Gupta]"
n! = n*(n-1)! so if n>=10 then n! has at least one more digit than (n-1)! 25! has 26 digits so n! must always have more digits than n for n>=25. Last fiddled with by Jens K Andersen on 2009-11-20 at 02:21 Reason: fix typo |
|
|
|
|
|
#4 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2·7·677 Posts |
A more interesting (albeit trivial) generalization is to find solution(s) using aribitrary base, with a prime or with any n. Find the smallest base in which there's no solution. Find a smallest base with exactly two solutions (or prove that there isn't such). etc etc etc
|
|
|
|
|
|
#5 |
|
Bemusing Prompter
"Danny"
Dec 2002
California
23×13×23 Posts |
The number 23 has a lot of properties.
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Share N+/-1 Primality Proofs | wblipp | FactorDB | 427 | 2020-11-29 16:52 |
| Number of distinct prime factors of a Double Mersenne number | aketilander | Operazione Doppi Mersennes | 1 | 2012-11-09 21:16 |
| Estimating the number of prime factors a number has | henryzz | Math | 7 | 2012-05-23 01:13 |
| Can two Mersenne numbers share a factor? | James Heinrich | Math | 57 | 2011-09-12 14:16 |
| Curious Prime Grid dump in secondpass | VJS | Prime Sierpinski Project | 4 | 2008-08-09 09:15 |