CDS Mathematics · Number System
Factors, Divisor Counting & Trailing Zeros
Everything you can read off a number's prime factorisation — how many divisors it has, what they sum to, how many are odd, and how many zeros a factorial or a big product ends in.
Why this matters
Twenty PYQs, four HARD. The whole unit runs on one move: write the number as a product of prime powers, then read the answer off the exponents. Counting the fives in a factorial appears six times across the chapter and is the most reliably tested single technique here.
Concept 1 of 6
Canonical prime-power form
Intuition
Definition
Write with distinct primes .
- A divisor of is exactly a product with .
- Evaluate before factorising when the number is given as an expression: compute the value first, then factorise it, because an expression's terms rarely share the factorisation of their difference.
- Collect repeated primes: , which then merges with any other power of 3.
Canonical form
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q48 · CDS (I) 2025 — Elementary Mathematics · 2025]
Evaluate the expression before you factorise it
Concept 2 of 6
Counting the divisors of a number
Intuition
Definition
If then the number of positive divisors is
- The count includes 1 and ; subtract 2 when the question excludes them.
- is multiplicative on coprime parts: when .
- is odd exactly when is a perfect square, since every exponent is then even.
Divisor count
- a_ithe exponent of the i-th prime in N
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q7 · CDS (II) 2018 — Elementary Mathematics · 2018]
Read whether 1 and N are to be excluded
Concept 3 of 6
Summing the divisors of a number
Intuition
Definition
For ,
- For a single prime power the sum is a geometric series, so .
- Like , is multiplicative on coprime parts.
Divisor sum
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q27 · CDS (I) 2026 — Elementary Mathematics · 2026]
The divisor sum is a product of sums, not a sum of products
Concept 4 of 6
Odd divisors, divisors of a square, and working backwards
Intuition
Definition
From with odd:
- Odd divisors: — ignore the power of 2 entirely.
- Even divisors: .
- Divisors of : every exponent doubles, so , always odd.
- Backwards: a given factorises into the terms, so or means or . Size constraints then pick the shape.
- Ordered triples with : distribute each prime power among the three slots independently.
Divisors of a square
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q21 · CDS (II) 2022 — Elementary Mathematics · 2022]
Working backwards from a divisor count usually leaves several shapes
Concept 5 of 6
Counting the zeros at the end of a factorial
Intuition
Definition
The number of trailing zeros of is
- Each term counts the numbers up to carrying at least that many fives, so the powers add up correctly without double counting.
- Stop when the divisor exceeds .
- The same sum with 5 replaced by any prime gives the exponent of in , which is how you handle a divisor like .
Zeros at the end of n factorial
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q83 · CDS (I) 2018 — Elementary Mathematics · 2018]
Counting only the multiples of 5 undercounts
Concept 6 of 6
Trailing zeros of a general product: the scarcer prime wins
Intuition
Definition
For any product , the largest with is
- Expand every composite base first: .
- In a weighted product like , each term's exponent multiplies its contribution.
- Parity is a shortcut worth trying first: a sum or difference that is odd has no trailing zero at all, whatever its factors look like.
Zeros of a general product
Worked example
Practice this conceptself-check · 4 quick reps
From the bank · past-year question
[Q86 · CDS (I) 2019 — Elementary Mathematics · 2019]
Outside a factorial, do not assume the fives are the scarce prime
Check the parity of a SUM before counting any factors
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (6)
- Canonical prime-power form
Canonical form
- Counting the divisors of a number
Divisor count
- Summing the divisors of a number
Divisor sum
- Odd divisors, divisors of a square, and working backwards
Divisors of a square
- Counting the zeros at the end of a factorial
Zeros at the end of n factorial
- Trailing zeros of a general product: the scarcer prime wins
Zeros of a general product
Watch out for (7)
- Evaluate the expression before you factorise it→ Canonical prime-power form
- Read whether 1 and N are to be excluded→ Counting the divisors of a number
- The divisor sum is a product of sums, not a sum of products→ Summing the divisors of a number
- Working backwards from a divisor count usually leaves several shapes→ Odd divisors, divisors of a square, and working backwards
- Counting only the multiples of 5 undercounts→ Counting the zeros at the end of a factorial
- Outside a factorial, do not assume the fives are the scarce prime→ Trailing zeros of a general product: the scarcer prime wins
- Check the parity of a SUM before counting any factors→ Trailing zeros of a general product: the scarcer prime wins
Drill every past-year question on this subtopic
20 questions from the bank — paginated, with cart and Word-export support.