Defence PYQWritten Exam 2022MathematicsNumber System

NDA · Question 21

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

  1. 4

  2. 6

  3. 7

  4. 8

Show answer & explanationShow explanation

Answer: (C) 7

Explanation

We can factor out 30!: 30! + 35! = 30!(1 + 31 × 32 × 33 × 34 × 35). Since 35 is divisible by 5, the term 1 + 31 × 32 × 33 × 34 × 35 leaves remainder 1 when divided by 5 and is not divisible by 5. Thus, the highest power of 5 dividing (30! + 35!) is the highest power of 5 dividing 30!, which by Legendre's formula is: ⌊ 30/5 ⌋ + ⌊ 30/5² ⌋ + ⌊ 30/5³ ⌋ = 6 + 1 + 0 = 7.