Factorial factors

How many integers n n are there such that 2 n 100 2\leq n\leq 100 , and ( n 1 ) ! (n-1)! is not divisible by n n ?

Details and Assumptions:

  • The number n ! n! , read as n factorial , is equal to the product of all positive integers less than or equal to n n . For example, 7 ! = 7 × 6 × 5 × 4 × 3 × 2 × 1 7! = 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1 .


The answer is 26.

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.

7 solutions

Abel Chen
Sep 2, 2013

Any composite number n n (except for squares) will be a factor of ( n 1 ) ! (n-1)! because it can be expressed as the product of 2 smaller distinct integers which are present in ( n 1 ) ! (n-1)! .

Every square n n will be the n \sqrt{n} th multiple of n \sqrt{n} , so there will be at least n 1 \sqrt{n}-1 factors of n \sqrt{n} in ( n 1 ) ! (n-1)! , one for each of the previous multiples of n \sqrt{n} . This makes n n a factor of ( n 1 ) ! (n-1)! , because a square is made up of 2 factors of n \sqrt{n} . The only exception to this is when n = 4 n=4 , because there will be only 4 1 = 1 \sqrt{4}-1=1 factor of 4 = 2 \sqrt{4}=2 in ( 4 1 ) ! (4-1)! , which makes 2 2 = 4 2^2=4 one such integer that satisfies the condition in the question.

Any prime number will satisfy the condition in the question because it will be the smallest positive integer that contains all its factors, namely, itself. There are 25 prime numbers less than 100. So, adding 4 to our list, we have 26 26 such integers.

Moderator note:

Clear reasoning and explanation. Explains why 4 is such a special case.

See I don't think 4 satisfies the given condition

anirudh chauhan - 7 years, 9 months ago

What about nos 9, 25, 49

Aayush Agarwal - 4 years, 3 months ago
Mateus Dantas
Sep 1, 2013

The Wilson's Theorem says that n is a prime number only if:

  • (n - 1)! ≡ -1 (mod n)

Also, it's possible to proof that whenever n is a composite number and n is different from 4:

  • (n-1)! ≡ 0 (mod n)

So we just need to compute how many prime numbers exists between 2 and 100, which is 25 and add 1 cause 4 is an exception.

So the answer is 26.

Moderator note:

The point of the problem is to prove your second statement, which you merely stated. What's so special about the composite number 4?

Abderrahim Amjad
Sep 2, 2013

on one hand : if p is a composite number >4 then (p-1)! is divisible by p. Let's prove that. let p a composite number >4. then p= ab with 1 < a < p and 1 < b < p then a<=p-1 and b<=p-1 - if a is different from b then ab divides (p-1)!=(p-1) x (p-2)x...x b x...x a x...2 x 1 ( if b>a for ex) - if a=b then p=a² ,so a>2, then p-a>a and both a and (p-a) are lower than p, ax(p-a) divides (p-1)! as a divides p-a then a² divides (p-1)!. on an other hand, if p is a prime number by Theorem wilson p doesn't divide (p-1)! the integers n that are 2≤n≤100 and (n−1)! is not divisible by n are the prime numbers between 2 and 100, and 4 so exactly 26 one.

Moderator note:

For sake of convention, avoid using p p to represent a composite number.

Vlad Vasilescu
Jan 29, 2017

The easiest and quickest way :

William Isoroku
Jan 3, 2015

The answer is all the prime numbers below 100 100 and including 4 4

Anirudh Chauhan
Sep 7, 2013

See all prime numbers less than 101 and greater than 1 satisfy this condition and there are 26 prime numbers less than 101 and greater than 1. So the answer is 26

That could be wrong interpretation. Given 2≤n≤100, there are only 25 primes satisfying this condition.

Aditya K Surikuchi - 7 years, 9 months ago
Snehdeep Arora
Sep 5, 2013

It can easily be seen that number of primes between 2 and 100 would surely in be the answer which is 25.Now let's check composites first is 4. 4 is not divisible by 3 ! = 6 3!=6 .Next composite number after 4 is 6 but 5 ! 5! is divisible by 6 and all the composites after that also satisfy the condition.

So the answer is 25+1=26

i see!thanks!!

Pearly Jane Mercado - 7 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...