UPSC CSAT 2025 Q35: Highest Power of 35 Dividing a Product — Solved

What is the maximum value of n such that 7 × 343 × 385 × 1000 × 2401 × 77777 is divisible by 35ⁿ ?

  1. 3
  2. 4
  3. 5
  4. 7

Answer: (b) 4

Solution

  1. Split the divisor into primes: 35 = 5 × 7. So 35ⁿ = 5ⁿ × 7ⁿ. The product must contain at least n fives and at least n sevens.
  2. Factorise each term of the product: - 7 = 7¹ - 343 = 7 × 7 × 7 = 7³ - 385 = 5 × 77 = 5¹ × 7¹ × 11 - 1000 = 10³ = 2³ × 5³ - 2401 = 49 × 49 = 7⁴ - 77777 = 7 × 11111. Check whether 11111 holds another 7: 7 × 1587 = 11109, and 11111 − 11109 = 2, so it does not. 11111 ends in 1, so it holds no 5. So 77777 = 7¹ × 11111.

  3. Count the fives. They come only from 385 (one) and 1000 (three). Total = 1 + 3 = 4. So the product has 5⁴.

  4. Count the sevens. 7 gives 1, 343 gives 3, 385 gives 1, 2401 gives 4, 77777 gives 1. Total = 1 + 3 + 1 + 4 + 1 = 10. So the product has 7¹⁰.
  5. Each 35 uses one 5 and one 7. You can make only as many 35s as the scarcer prime allows: n = min(4, 10) = 4.
  6. Check: 35⁴ = 5⁴ × 7⁴ divides 5⁴ × 7¹⁰ × (other factors). 35⁵ would need 5⁵, but the product has only 5⁴. So n cannot be 5.

Answer: n = 4.

Option-wise explanation

  • a: incorrect — This counts only the three fives in 1000 = 2³ × 5³. It misses the 5 inside 385 = 5 × 7 × 11, which takes the count of fives to 4.
  • b: correct — The product has 5⁴ (from 385 and 1000) and 7¹⁰. Fives are the limiting prime, so the highest power of 35 is 35⁴.
  • c: incorrect — 35⁵ needs five fives, but the product has only four. The trap is miscounting fives, e.g. reading 1000 as 5⁴ or assuming 77777 or 2401 adds a 5.
  • d: incorrect — 35⁷ needs seven fives. The product has plenty of sevens (ten) but only four fives. The trap is looking at the 7-heavy terms (343, 2401, 77777) and forgetting that 35 also needs a 5 each time.

How to eliminate

Do not count the sevens at all. There are obviously many: 343, 2401 and 77777 alone give eight. The fives are the bottleneck. Scan for terms ending in 0 or 5: only 385 and 1000 qualify. 385 = 5 × 77 gives one 5. 1000 = 10³ gives three. That makes four fives, so n = 4. This also rules out 5 and 7 straight away, and 3 is out because 385 adds a fourth 5. About 30–45 seconds once you see that 5 is the limiting prime. Attempt this one first.

Know more

Highest power of a composite number dividing a product

To find the largest n with Nⁿ dividing a product P:

  1. Write N in primes: N = p^a × q^b × …
  2. Count the exponent of each prime in P. Add the exponents term by term.
  3. For each prime, divide its count in P by its exponent in N and round down.
  4. n is the smallest of these values. The scarcest prime decides the answer.

To count fast, look only at the primes in N. Ignore the rest (2 and 11 in this question).

Worked variant: largest n with 12ⁿ dividing 8 × 9 × 18 × 27.

12 = 2² × 3.

Term Power of 2 Power of 3
8 = 2³ 3 0
9 = 3² 0 2
18 = 2 × 3² 1 2
27 = 3³ 0 3
Total 4 7

For 2: 4 ÷ 2 = 2. For 3: 7 ÷ 1 = 7. So n = min(2, 7) = 2.

Note the division step. When a prime appears squared in N, as 2 does in 12, each copy of N uses two of that prime. In the original question 35 = 5 × 7 has each prime once, so n is just min(count of 5, count of 7).

The same idea gives trailing zeros: zeros of P = min(count of 2, count of 5), since 10 = 2 × 5.