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

What is the maximum value of n such that 5 ndivides (30! + 35!), where n is a natural number?

This question was previously asked in
NDA I 2022 GAT Previous Year Paper (10-Apr-2022)
The correct answer is

7

Finding the Maximum Power of a Prime Dividing a Sum of Factorials

The question asks for the maximum value of a natural number 'n' such that \(5^n\) divides the sum of factorials, \(30! + 35!\). To solve this, we need to determine the highest power of 5 that divides the given expression.

Understanding Legendre's Formula for Prime Factorials

We use Legendre's Formula to find the exponent of a prime 'p' in the prime factorization of \(k!\). The formula is given by:

\( E_p(k!) = \sum_{i=1}^{\infty} \lfloor \frac{k}{p^i} \rfloor = \lfloor \frac{k}{p} \rfloor + \lfloor \frac{k}{p^2} \rfloor + \lfloor \frac{k}{p^3} \rfloor + \dots \)

This sum is finite because the terms become zero when \(p^i > k\).

Calculating the Power of 5 in 30!

Let's find the highest power of 5 that divides \(30!\). Using Legendre's formula with \(p=5\) and \(k=30\):

\( E_5(30!) = \lfloor \frac{30}{5} \rfloor + \lfloor \frac{30}{5^2} \rfloor + \lfloor \frac{30}{5^3} \rfloor + \dots \)

\( E_5(30!) = \lfloor 6 \rfloor + \lfloor \frac{30}{25} \rfloor + \lfloor \frac{30}{125} \rfloor + \dots \)

\( E_5(30!) = 6 + \lfloor 1.2 \rfloor + 0 + \dots \)

\( E_5(30!) = 6 + 1 = 7 \)

So, \(30!\) is divisible by \(5^7\), but not by \(5^8\). We can write \(30! = 5^7 \times m\), where \(m\) is an integer not divisible by 5.

Calculating the Power of 5 in 35!

Now, let's find the highest power of 5 that divides \(35!\). Using Legendre's formula with \(p=5\) and \(k=35\):

\( E_5(35!) = \lfloor \frac{35}{5} \rfloor + \lfloor \frac{35}{5^2} \rfloor + \lfloor \frac{35}{5^3} \rfloor + \dots \)

\( E_5(35!) = \lfloor 7 \rfloor + \lfloor \frac{35}{25} \rfloor + \lfloor \frac{35}{125} \rfloor + \dots \)

\( E_5(35!) = 7 + \lfloor 1.4 \rfloor + 0 + \dots \)

\( E_5(35!) = 7 + 1 = 8 \)

Thus, \(35!\) is divisible by \(5^8\), but not by \(5^9\).

Analyzing the Sum \(30! + 35!\)

We want to find the highest power of 5 that divides \(30! + 35!\). We can factor the expression:

\( 30! + 35! = 30! + 35 \times 34 \times 33 \times 32 \times 31 \times 30! \)

\( 30! + 35! = 30! (1 + 35 \times 34 \times 33 \times 32 \times 31) \)

Let \(V_p(N)\) denote the exponent of the highest power of prime \(p\) dividing \(N\). We are looking for \(V_5(30! + 35!)\).

\( V_5(30! + 35!) = V_5(30! (1 + 35 \times 34 \times 33 \times 32 \times 31)) \)

Using the property \(V_p(ab) = V_p(a) + V_p(b)\), we have:

\( V_5(30! + 35!) = V_5(30!) + V_5(1 + 35 \times 34 \times 33 \times 32 \times 31) \)

We already found \(V_5(30!) = 7\). Now, let's analyze the term \(1 + 35 \times 34 \times 33 \times 32 \times 31\).

The term \(35 \times 34 \times 33 \times 32 \times 31\) contains 35 as a factor. Since 35 is divisible by 5, the entire product \(35 \times 34 \times 33 \times 32 \times 31\) is divisible by 5.

Let \(X = 35 \times 34 \times 33 \times 32 \times 31\). Since \(X\) is divisible by 5, we can write \(X = 5k\) for some integer \(k\).

Now consider \(1 + X = 1 + 5k\).

To check if \(1 + 5k\) is divisible by 5, we look at its remainder when divided by 5:

\( (1 + 5k) \pmod 5 = (1 \pmod 5) + (5k \pmod 5) \)

\( (1 + 5k) \pmod 5 = 1 + 0 \)

\( (1 + 5k) \pmod 5 = 1 \)

Since the remainder is 1, \(1 + 35 \times 34 \times 33 \times 32 \times 31\) is not divisible by 5.

Therefore, \(V_5(1 + 35 \times 34 \times 33 \times 32 \times 31) = 0\).

Substituting this back into the expression for \(V_5(30! + 35!)\):

\( V_5(30! + 35!) = V_5(30!) + V_5(1 + 35 \times 34 \times 33 \times 32 \times 31) = 7 + 0 = 7 \)

Alternatively, we can write \(30! = 5^7 m\) (where \(5 \nmid m\)) and \(35! = 5^8 k'\) for some integer \(k'\).

\( 30! + 35! = 5^7 m + 5^8 k' = 5^7 (m + 5k') \)

Since \(5 \nmid m\), the term \(m + 5k'\) is not divisible by 5 (because \(5k'\) is divisible by 5, and the sum of an integer not divisible by 5 and an integer divisible by 5 is not divisible by 5).

Thus, the highest power of 5 that divides \(30! + 35!\) is \(5^7\).

The maximum value of \(n\) such that \(5^n\) divides \(30! + 35!\) is 7.

Summary of Calculation

Expression Highest Power of 5
\(30!\) \(5^7\)
\(35!\) \(5^8\)
\(30! + 35!\) \(5^7 \times (m + 5k')\) where \(5 \nmid m\). The power of 5 is determined by the lowest power in the sum.
Final Result for \(V_5(30! + 35!)\) 7

Therefore, the maximum value of n is 7.

Revision Table: Understanding Factorials and Prime Powers

Concept Description Relevance to the Problem
Factorial (\(k!\)) The product of all positive integers up to \(k\). The problem involves the sum of factorials \(30!\) and \(35!\).
Prime Factorization Expressing a number as a product of its prime factors. We need to find the power of the prime 5 in the given expression.
Legendre's Formula Formula to find the exponent of a prime \(p\) in the prime factorization of \(k!\). Used to calculate \(E_5(30!)\) and \(E_5(35!)\).
Valuation \(V_p(N)\) The exponent of the highest power of prime \(p\) dividing \(N\). Notation used to express the power of 5 dividing each part of the expression.
Divisibility of Sums If \(V_p(a) = \alpha\) and \(V_p(b) = \beta\) with \(\alpha < \beta\), then \(V_p(a+b) = V_p(a) = \alpha\). If \(\alpha = \beta\), \(V_p(a+b) \ge \alpha\). Since \(V_5(30!) = 7\) and \(V_5(35!) = 8\), and \(7 < 8\), the highest power of 5 dividing the sum is at least \(5^7\). We confirmed it is exactly \(5^7\) by factoring.

Additional Information: Properties of Prime Powers in Sums

When dealing with the highest power of a prime \(p\) that divides a sum or difference of two integers, say \(a\) and \(b\), where you know \(V_p(a) = \alpha\) and \(V_p(b) = \beta\):

  • If \(\alpha \neq \beta\), then \(V_p(a+b) = V_p(a-b) = \min(\alpha, \beta)\). The term with the lower power of \(p\) dictates the lowest power that can be factored out of the sum/difference.
  • If \(\alpha = \beta\), then \(V_p(a+b) \ge \alpha\) and \(V_p(a-b) \ge \alpha\). The exact value of \(V_p(a+b)\) or \(V_p(a-b)\) depends on whether the remaining factor (after pulling out \(p^\alpha\)) is divisible by \(p\). For example, if \(a = p^\alpha m\) and \(b = p^\beta k\) with \(p \nmid m\) and \(p \nmid k\). If \(\alpha = \beta\), then \(a+b = p^\alpha(m+k)\). \(V_p(a+b) = \alpha + V_p(m+k)\). \(V_p(m+k)\) is 0 if \(p \nmid (m+k)\), or greater than 0 if \(p \mid (m+k)\).

In this problem, we had \(V_5(30!) = 7\) and \(V_5(35!) = 8\). Since the powers (7 and 8) are different, the highest power of 5 dividing the sum \(30! + 35!\) is \(\min(7, 8) = 7\). This aligns with our detailed calculation.

Was this answer helpful?

Similar Questions

  1. What is the number of 6-digit numbers that can be formed only by using 0, 1, 2, 3, 4 and 5 (each once); and divisible by 6 ? 

  2. Consider the following statements for a fixed natural number n:

    1. C(n, r) is greatest if n = 2r

    2. C(n, r) is greatest if n = 2r - 1 and n = 2r + 1 

    Which of the statements given above is/are correct ?

  3. How many permutations are there of the letters of the word 'TIGER' in which the vowels should not occupy the even positions ?

  4. In how many ways can a team of 5 players be selected out of 9 players so as to exclude two particular players ?

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

  6. 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?

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

  8. 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?

  9. Three-digit numbers are formed from the digits 1, 2 and 3 in such a way that the digits are not repeated. What is the sum of such three-digit numbers?

  10. How many different permutations can be made out of the letters of the word ‘PERMUTATION’?


Important Questions from Permutations and Combinations

  1. What is the number of ways that $5$ boys and $5$ girls can be seated in a row so that boys and girls sit alternately?

  2. The number of ways of choosing 21 objects out of 42 objects of which 21 are identical and the remaining 21 are distinct, is:

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

  4. For a social work, 7 men and 6 women gave their nominations. The committee is formed to select 5 people from the nominated persons in such a way that atleast 3 men are there in the final team. Find the number of ways in which the people can be selected.

  5. The largest coefficient of ( x + 1)20 is:

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
661 Attempts
4.6(121)
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