🔢
JEE Main · Mathematics · Permutations & Combinations
MCQ · Integer Powers in Factorials
Q. The largest $n \in \mathbb{N}$, for which $7^n$ divides $101!$, is :
A18
B15
C19
D16 ✓
✅ Correct Answer: (D) 16
Step-by-Step Solution
1
Identify the Prime and Factorial
We need to find the exponent of the prime number $p = 7$ in the factorial $101!$.
The largest $n$ such that $p^n$ divides $x!$ is denoted by $E_p(x!)$.
2
Apply Legendre’s Formula
Legendre’s Formula states:
$$E_p(m!) = \left[ \frac{m}{p} \right] + \left[ \frac{m}{p^2} \right] + \left[ \frac{m}{p^3} \right] + \dots$$
where $[x]$ denotes the greatest integer less than or equal to $x$.
3
Calculate the Terms
For $m = 101$ and $p = 7$:
Term 1: $\left[ \frac{101}{7} \right] = [14.42] = 14$
Term 2: $\left[ \frac{101}{7^2} \right] = \left[ \frac{101}{49} \right] = [2.06] = 2$
Term 3: $\left[ \frac{101}{7^3} \right] = \left[ \frac{101}{343} \right] = [0.29] = 0$
Term 2: $\left[ \frac{101}{7^2} \right] = \left[ \frac{101}{49} \right] = [2.06] = 2$
Term 3: $\left[ \frac{101}{7^3} \right] = \left[ \frac{101}{343} \right] = [0.29] = 0$
4
Sum the Quotients
The total exponent $n$ is:
$$n = 14 + 2 + 0$$
$$n = 16$$
Therefore, the largest value of $n$ is 16.
✅ Correct Option: (D)
Related Theory: Exponents of Primes in Factorials
📌 Introduction to Legendre’s Formula
In number theory, Legendre’s formula gives an expression for the exponent of the largest power of a prime number $p$ that divides the factorial $n!$. This is a fundamental concept used in combinatorics, algebra, and competitive exams like JEE Main. The logic stems from counting how many numbers from $1$ to $n$ are multiples of $p$, how many are multiples of $p^2$, and so on. Every multiple of $p$ contributes at least one factor of $p$. Multiples of $p^2$ contribute an additional factor, and this pattern continues.
📌 Formal Definition
For any prime number $p$ and any positive integer $n$, the exponent of the highest power of $p$ dividing $n!$ is:
$$E_p(n!) = \sum_{k=1}^{\infty} \lfloor \frac{n}{p^k} \rfloor$$
The summation is finite because for sufficiently large $k$, $p^k > n$, making the floor function zero.
📌 Why do we use the Floor Function?
The floor function $\lfloor x \rfloor$ (also called the Greatest Integer Function) is essential because it counts how many integers within the range $[1, n]$ are divisible by a specific power of $p$. For example, if we want to find how many multiples of 7 are in 101, we divide 101 by 7. The result is 14.42, but since we only care about full multiples (7, 14, 21…98), we take the floor value, which is 14.
📌 Case of Composite Numbers
Important: Legendre’s formula applies directly only to prime numbers. If you need to find the power of a composite number, say $10^n$ in $n!$, you must:
1. Prime factorize the composite number: $10 = 2 \times 5$.
2. Find the exponent of each prime factor in $n!$.
3. The answer will be the minimum of the exponents (constrained by the limiting factor). In the case of $10!$, 5 is less frequent than 2, so the power of 5 determines the power of 10 (the number of trailing zeros).
1. Prime factorize the composite number: $10 = 2 \times 5$.
2. Find the exponent of each prime factor in $n!$.
3. The answer will be the minimum of the exponents (constrained by the limiting factor). In the case of $10!$, 5 is less frequent than 2, so the power of 5 determines the power of 10 (the number of trailing zeros).
📌 De Polignac’s Formula
The general version of this concept is often called De Polignac’s formula. It describes the prime factorization of $n!$ as:
$$n! = \prod_{p \le n, p \in \text{prime}} p^{E_p(n!)}$$
This allows mathematicians to break down massive factorials into their constituent prime parts, which is useful for checking divisibility or finding the number of divisors of $n!$.
📌 Application: Number of Trailing Zeros
A common JEE question is “Find the number of trailing zeros in $n!$”. This is equivalent to finding the largest $k$ such that $10^k$ divides $n!$. Since $10 = 2 \times 5$, and the power of 2 in a factorial is always greater than or equal to the power of 5, the number of trailing zeros is simply $E_5(n!)$.
Example: Trailing zeros in $100!$:
$\lfloor 100/5 \rfloor + \lfloor 100/25 \rfloor = 20 + 4 = 24$.
Example: Trailing zeros in $100!$:
$\lfloor 100/5 \rfloor + \lfloor 100/25 \rfloor = 20 + 4 = 24$.
📌 Tips for Calculation Speed
Instead of calculating $p^k$ every time, you can use a recursive division method:
1. Divide $n$ by $p$ to get $q_1$.
2. Divide $q_1$ by $p$ to get $q_2$.
3. Divide $q_2$ by $p$ to get $q_3$… and so on.
4. Sum all $q_i$.
For $101!$ and $p=7$: $101/7 \to 14$; $14/7 \to 2$; $2/7 \to 0$. Sum = $14+2 = 16$.
1. Divide $n$ by $p$ to get $q_1$.
2. Divide $q_1$ by $p$ to get $q_2$.
3. Divide $q_2$ by $p$ to get $q_3$… and so on.
4. Sum all $q_i$.
For $101!$ and $p=7$: $101/7 \to 14$; $14/7 \to 2$; $2/7 \to 0$. Sum = $14+2 = 16$.
📌 Summary of Concepts
Legendre’s Formula
Prime Power Divisibility
Floor Function
Trailing Zeros
Factorial Factorization
Frequently Asked Questions
1. Can I use this formula for $6^n$ dividing $101!$?
Not directly. 6 is not prime. You must find $E_2(101!)$ and $E_3(101!)$. Since 3 is the larger prime, $E_3(101!)$ will be the limiting factor and give you the value of $n$.
2. What if $p^k$ is exactly equal to $n$?
The floor function $\lfloor n/p^k \rfloor$ will simply be 1. For example, $E_5(25!)$ includes $\lfloor 25/25 \rfloor = 1$.
3. Why did we stop at $7^2$?
Because the next power is $7^3 = 343$, which is greater than 101. Dividing 101 by 343 gives a value less than 1, so its floor is 0.
4. Is there a shortcut for very large $n$?
Yes, the sum can also be written as $(n – S_p(n))/(p – 1)$, where $S_p(n)$ is the sum of the digits of $n$ when written in base $p$.
5. Does this apply to addition of factorials?
No, this formula is specifically for a single factorial term. For $n! + m!$, you usually factor out the smaller factorial first.
Related JEE Main Questions
Q. A random variable X takes values 0, 1, 2, 3 with probabilities (2a+1)/30, (8a-1)/30, (4a+1)/30, b. Then a/b is equal to
✅ Correct Answer: 60
Q. For matrices $A = [[3, -4], [1, -1]]$ and $B = [[-29, 49], [-13, 18]]$, if $(A^{15} + B)[x, y]^T = [0, 0]^T$, then find $x, y$.
✅ Correct Answer: $x=11, y=2$
Q. Let $A = \{2, 3, 5, 7, 9\}$. Relation $R$ on $A$ defined by $xRy \iff 2x \le 3y$. Find $l+m$.
✅ Correct Answer: 25
Q. Roots $\alpha, \beta$ of $x^2 + 2ax + (3a+10) = 0$ satisfy $\alpha < 1 < \beta$. Find $a$.
✅ Correct Answer: $(-\infty, -11/5)$
Q. Locus of centroid of $\triangle OPA$ where $P$ is on $y^2=12x$ and $\angle OPA=90°$.
✅ Correct Answer: $y^2-2x+8=0$