All Exams Test series for 1 year @ ₹349 only
Question

If n! has 17 zeros, then what is the value of n?

This question was previously asked in
NDA II 2019 GAT Previous Year Paper (17-Nov-2019)
The correct answer is

No such value of n exists

Understanding Trailing Zeros in Factorials

The number of trailing zeros in a factorial \(n!\) is determined by the number of times 10 is a factor in its prime factorization. Since \(10 = 2 \times 5\), we need to count the factors of 2 and 5 in \(n!\). In any factorial \(n!\), the number of factors of 2 is always greater than or equal to the number of factors of 5. Therefore, the number of trailing zeros is limited by the number of factors of 5.

The number of factors of a prime number \(p\) in \(n!\) is given by Legendre's formula:

Number of factors of \(p\) in \(n!\) = \(\sum_{k=1}^{\infty} \lfloor \frac{n}{p^k} \rfloor = \lfloor \frac{n}{p} \rfloor + \lfloor \frac{n}{p^2} \rfloor + \lfloor \frac{n}{p^3} \rfloor + \dots\)

To find the number of trailing zeros in \(n!\), we apply Legendre's formula for \(p=5\):

Number of trailing zeros in \(n!\) = \(\lfloor \frac{n}{5} \rfloor + \lfloor \frac{n}{25} \rfloor + \lfloor \frac{n}{125} \rfloor + \dots\)

We are given that \(n!\) has 17 zeros. We need to find an integer value of \(n\) such that the sum of the floor values in Legendre's formula for \(p=5\) equals 17. Let's examine the number of zeros for values of \(n\) around the expected range.

Calculating Zeros for Potential n Values

Let's calculate the number of zeros for values of \(n\) that might yield around 17 zeros, as well as checking the options provided.

  • For \(n = 70\): Number of zeros = \(\lfloor \frac{70}{5} \rfloor + \lfloor \frac{70}{25} \rfloor + \lfloor \frac{70}{125} \rfloor = 14 + 2 + 0 = 16\).
  • For \(n = 71\): Number of zeros = \(\lfloor \frac{71}{5} \rfloor + \lfloor \frac{71}{25} \rfloor + \lfloor \frac{71}{125} \rfloor = 14 + 2 + 0 = 16\).
  • For \(n = 72\): Number of zeros = \(\lfloor \frac{72}{5} \rfloor + \lfloor \frac{72}{25} \rfloor + \lfloor \frac{72}{125} \rfloor = 14 + 2 + 0 = 16\).
  • For \(n = 73\): Number of zeros = \(\lfloor \frac{73}{5} \rfloor + \lfloor \frac{73}{25} \rfloor + \lfloor \frac{73}{125} \rfloor = 14 + 2 + 0 = 16\).
  • For \(n = 74\): Number of zeros = \(\lfloor \frac{74}{5} \rfloor + \lfloor \frac{74}{25} \rfloor + \lfloor \frac{74}{125} \rfloor = 14 + 2 + 0 = 16\).

For all integers \(n\) from 70 to 74, the number of trailing zeros in \(n!\) is 16.

  • For \(n = 75\): Number of zeros = \(\lfloor \frac{75}{5} \rfloor + \lfloor \frac{75}{25} \rfloor + \lfloor \frac{75}{125} \rfloor = 15 + 3 + 0 = 18\).

When \(n\) becomes 75, the number of trailing zeros increases from 16 to 18. This jump occurs because 75 is a multiple of 5 (adding one factor of 5 from \(\lfloor 75/5 \rfloor\)) and a multiple of 25 (adding one factor of 5 from \(\lfloor 75/25 \rfloor\) compared to multiples of 5 less than 25). Specifically, 75 contributes \(\lfloor 75/5 \rfloor - \lfloor 74/5 \rfloor = 15-14 = 1\) from the \(\lfloor n/5 \rfloor\) term, and \(\lfloor 75/25 \rfloor - \lfloor 74/25 \rfloor = 3-2 = 1\) from the \(\lfloor n/25 \rfloor\) term. The total increase is \(1+1=2\).

Let's check the provided options:

  • Option 1: \(n = 95\). Number of zeros = \(\lfloor \frac{95}{5} \rfloor + \lfloor \frac{95}{25} \rfloor + \lfloor \frac{95}{125} \rfloor = 19 + 3 + 0 = 22\).
  • Option 2: \(n = 85\). Number of zeros = \(\lfloor \frac{85}{5} \rfloor + \lfloor \frac{85}{25} \rfloor + \lfloor \frac{85}{125} \rfloor = 17 + 3 + 0 = 20\).
  • Option 3: \(n = 80\). Number of zeros = \(\lfloor \frac{80}{5} \rfloor + \lfloor \frac{80}{25} \rfloor + \lfloor \frac{80}{125} \rfloor = 16 + 3 + 0 = 19\).

Analysis of Number of Zeros Progression

We observed that the number of zeros for \(n \in [70, 74]\) is 16 and for \(n \in [75, 79]\) is 18. The number of trailing zeros in \(n!\) is a non-decreasing function of \(n\) and only increases when \(n\) is a multiple of 5. The number of zeros jumps from 16 to 18 between \(n=74\) and \(n=75\). This means there is no integer \(n\) for which \(n!\) has exactly 17 trailing zeros.

Conclusion on Finding n for 17 Zeros

Based on the calculations using Legendre's formula, we see that the number of trailing zeros does not take on every integer value. There is a jump from 16 zeros (for \(n\) from 70 to 74) to 18 zeros (for \(n\) from 75 to 79). Since 17 is between 16 and 18, there is no integer value of \(n\) such that \(n!\) has exactly 17 trailing zeros.

Therefore, the correct answer is that no such value of \(n\) exists.

Range of \(n\) Number of Zeros in \(n!\)
\(n \in [65, 69]\) \(\lfloor 65/5 \rfloor + \lfloor 65/25 \rfloor = 13 + 2 = 15\)
\(n \in [70, 74]\) \(\lfloor 70/5 \rfloor + \lfloor 70/25 \rfloor = 14 + 2 = 16\)
\(n \in [75, 79]\) \(\lfloor 75/5 \rfloor + \lfloor 75/25 \rfloor = 15 + 3 = 18\)
\(n \in [80, 84]\) \(\lfloor 80/5 \rfloor + \lfloor 80/25 \rfloor = 16 + 3 = 19\)

The table confirms that the number of zeros jumps from 16 to 18, skipping 17.

Revision Table: Key Concepts

Concept Description
Trailing Zeros in \(n!\) Determined by the number of factors of 10, which is limited by the number of factors of 5 in \(n!\).
Legendre's Formula Used to calculate the number of factors of a prime \(p\) in \(n!\): \(\sum_{k=1}^{\infty} \lfloor \frac{n}{p^k} \rfloor\).
Factors of 5 The number of zeros is \(\lfloor \frac{n}{5} \rfloor + \lfloor \frac{n}{25} \rfloor + \lfloor \frac{n}{125} \rfloor + \dots\).

Additional Information: Properties of Factorials and Zeros

Factorials grow very rapidly. The number of trailing zeros in a factorial \(n!\) represents the power of 10 that divides \(n!\). Understanding how the number of prime factors, especially 5, accumulates in the product \(1 \times 2 \times \dots \times n\) is key to this problem. Multiples of 5 contribute one factor of 5 (\(5, 10, 15, \dots\)), multiples of 25 contribute an additional factor of 5 (\(25, 50, 75, \dots\)), multiples of 125 contribute yet another factor of 5 (\(125, \dots\)), and so on. Legendre's formula systematically counts these factors.

The number of zeros increases only when \(n\) reaches a new multiple of 5. When \(n\) reaches a multiple of 25, 125, etc., the number of zeros increases by more than one at that specific step, causing some integer values for the number of zeros to be skipped. This is exactly what happens when the number of zeros transitions from 16 to 18 between \(n=74\) and \(n=75\), skipping the value 17.

Was this answer helpful?

Similar Questions

  1. In how many ways can a team of 5 players be selected from 8 players so as not to include a particular player?

  2. How many four-digit natural numbers are there such that all of the digits are odd ?

  3. If different permutations of the letters of the word 'MATHEMATICS' are listed as in a dictionary, how many words (with or without meaning) are there in the list before the first word that starts with C ?

  4. If P (n, r) = 2520 and C (n, r) = 21, then what is the value of C (n + 1, r + 1)?

  5. What is C(47, 4) + C(51, 3) + C(50, 3) + C(49, 3) + C(48, 3) + C(47, 3) equal to?

  6. Let x be the number of integers lying between 2999 and 8001 which have at least two digits equal. Then x is equal to

  7. There are 17 cricket players, out of which 5 players can bowl. In how many ways can a team of 11 players be selected so to include 3 bowlers?

  8. The total number of 5 - digit numbers that can be composed of distinct digits from 0 to 9 is

  9. What is the sum of all three-digit numbers that can be formed using all the digits 3,4 and 5 where repetition of digits is not allowed?

  10. What is the number of triangles that can be formed by choosing the vertices from a set of 12 points in a plane, seven of which lie on the same straight line?


Important Questions from Permutations and Combinations

  1. Three boxes are coloured red, blue and green and so are three balls. In how many ways can one put the balls one in each box such that no ball goes into the box of its own colour?

  2. Six indistinguishable balls are to be distributed amongst A, B and C, such that each gets at least one. Then the number of ways to make this distribution is

  3. A palindrome is a word that reads the same backwards and forwards. For example, the word LEVEL is a palindrome. If we are allowed to construct words that need not have a meaning, then in how many different ways can we construct a five-letter palindrome using English alphabets?

  4. If nPr = 720 and nCr = 120, then the value of r is:

  5. What will be the number of permutations of n different things, taken r at a time, where repeatition is allowed?

Need Expert Advice?
Upcoming Exams
NDA
September 13, 2026
CDS
September 13, 2026
Test Series
NDA img
Defence
NDA 2026 Mock Test Series (Latest Pattern)
501 Tests 1 Tests Free
767 Attempts
4.7(129)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App