For how many natural numbers does ?
Details and Assumptions
is the factorial function where and .
means that does not perfectly divide , i.e. is not a divisor of .For example, .
You may use the List of Primes as a reference.
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.
The numbers are categorised into three groups. (1) Composite numbers which are not squares of prime numbers (2) Squares of prime numbers (3) Prime numbers
For any composite number in (1), n = p q where 1 < p < q < n , and ( n − 1 ) ! = 1 × 2 × ⋯ × p × ⋯ × q × ⋯ × ( n − 1 ) Hence, n ∣ ( n − 1 ) !
For squares of prime numbers we have n = p 2 and ( n − 1 ) ! = 1 × 2 × ⋯ × p × ⋯ × 2 p × ⋯ × ( n − 1 ) . Hence, n ∣ ( n − 1 ) ! UNLESS n − 1 = p 2 − 1 < 2 p . The only prime number satisfying this is p = 2 . Thus, 4 ∣ 3 !
If n is prime then, then there would not be any common factor between n and ( n − 1 ) ! . There are 168 prime numbers less than 1000.
So, there are 1 6 8 + 1 = 1 6 9 solutons.