Guide7 min read

Factors, Divisors and Powers in Factorials: The CAT Toolkit

By Team ThinkCAT · ·

Short answer: Almost every factor question starts with the prime factorisation N = p^a × q^b × …. From it, the number of divisors is (a+1)(b+1)…, and any condition on the divisors (odd, square, of the form 3r+1) becomes a condition on each exponent. For powers in factorials, Legendre's formula adds ⌊n/p⌋ + ⌊n/p²⌋ + ….

Key points

  • Every divisor of p^a × q^b is p^i × q^j with 0 ≤ i ≤ a and 0 ≤ j ≤ b, so counting divisors means counting exponent choices.
  • A condition on divisors (perfect square, even, a remainder when divided by 3) turns into a rule for each exponent. Count the choices per prime and multiply.
  • The exponent of a prime p in n! is ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + …. For a composite divisor, the scarcest prime decides.
  • Not every factorial question needs Legendre. Check first whether a simple size argument settles it.

Factor questions are some of the most learnable marks in CAT Quant. The ideas fit on one page, the derivations are short, and once you see the core move, most questions take under two minutes. This guide builds that page from scratch and then uses it on three real CAT questions from 2022 to 2025.

For scale: Number Systems as a whole accounts for 37 of the 612 QA questions in the 24 CAT papers from 2017 to 2025 in ThinkCAT's question bank. Factorisation questions make up 10 of those, and several more factor-based questions sit in the Miscellaneous and HCF/LCM tags. That is about one or two Number Systems questions per slot, so treat this as a high-return topic that takes a week, not a month.

Everything starts with the prime factorisation

Write with distinct primes . Every divisor of has the form with , , and so on, and each such choice gives a different divisor. Three formulas follow directly.

Number of divisors. There are choices for , for , and so on:

Sum of divisors. Expand the product . Each term of the expansion is exactly one divisor, so

Product of divisors. Divisors pair up as , and each pair multiplies to . With divisors there are pairs (if is a square, the middle divisor pairs with itself, and the formula still holds), so

Check on : , , and the product of the divisors is . List the 12 divisors once and confirm. Doing this a single time makes the formulas stick.

Divisors with a condition: one rule per exponent

The real CAT skill is counting divisors that satisfy some condition. The method is always the same: turn the condition into a rule for each exponent, count the allowed choices per prime, and multiply.

Condition on the divisor Rule on the exponents Count for
Odd exponent of 2 is 0
Even exponent of 2 is at least 1
Perfect square every exponent even
Perfect cube every exponent a multiple of 3
Multiple of (where ) divisor divisor of

Two related counts come up often:

  • Unordered pairs with : if is not a square, and if it is (the pair is counted once). CAT 2020 Slot 3, QA Q25 asks this for .
  • Excluding 1 or : questions often say "greater than 1" or "other than 1 and itself". Read the condition twice and subtract at the end. CAT 2019 Slot 2, QA Q23 is a good check on this: it asks for perfect-square factors greater than 1.

Worked: working backwards from a divisor count

CAT 2023 Slot 3, QA Q7 (TITA): find the sum of the first two natural numbers that each have exactly 15 factors.

Work backwards from . The product of the terms must be 15, and or . So either:

  • , the smallest being , or
  • with .

For the second form, put the larger exponent on the smaller prime to keep small:

The two smallest are 144 and 324, so the answer is 468.

The trap is stopping after 144 and taking the "next" number as . Always list a few candidates in order before you choose.

Worked: divisors with a remainder condition

CAT 2025 Slot 2, QA Q12: how many divisors of are of the form ? Options: 42, 24, 56, 36.

Apply the rule per exponent, this time working modulo 3.

  1. The power of 3 must be 0. Any divisor containing a 3 leaves remainder 0, not 1.
  2. Reduce each other prime modulo 3. , , .
  3. Write the divisor's remainder. A divisor leaves . You need this to be , so must be even.
  4. Count. runs from 0 to 6 (4 even values, 3 odd). runs from 0 to 3 (2 even, 2 odd). Pairs with even: . is free, with 3 choices.

Total: 42 (option A).

Notice that the answer is not of the 84 divisors that have no factor of 3. Remainders of divisors are not spread evenly, so "divide by 3" guesses are a trap.

The highest power of a prime in n!

Legendre's formula gives the exponent of a prime in :

Why it works: counts the multiples of up to , each contributing at least one factor of . Multiples of contribute a second factor, counted by , and so on.

Trailing zeros. A trailing zero needs a factor of 10, that is, one 2 and one 5. There are always more 2s than 5s, so count the 5s. For : zeros. For : .

Composite divisors. Factorise the divisor and find which prime runs out first.

  • Highest power of 12 in : . There are twos, which make copies of . There are threes. The threes run out first, so the answer is 22.
  • Highest power of 6 in : there are twos and threes, so the answer is 14.

The usual mistake is assuming the largest prime is always the bottleneck. With , the squared 2 nearly catches up with the 3, so check both.

Worked: a factorial question that needs no formula

CAT 2022 Slot 2, QA Q17: is divisible by . What is the largest possible ? Options: 5, 7, 6, 4.

It is tempting to start counting prime powers. Don't. For whole numbers, divides exactly when : if , then contains every factor of , and if , then is larger than and cannot divide it.

So you need . Since and , the largest is 7 (option B).

The lesson matters more than the question: before reaching for a formula, ask whether size alone decides the answer.

Two HCF and LCM facts worth keeping

  • For two numbers, . Compare exponents: for each prime, HCF takes the smaller exponent and LCM the larger, and together they use both. This does not hold for three or more numbers.
  • If divides two numbers and , it divides every combination with integer . To find what must divide, pick and that cancel one variable. CAT 2023 Slot 2, QA Q2 is built entirely on this idea and makes a good two-minute test.

Drilling factor questions from real papers

Work through the factor and divisibility questions on the Number Systems question page. For each one, write the prime factorisation before anything else, even when it feels obvious. Then state the rule per exponent in words ("the power of 3 must be 0", "the power of 2 must be even") before you count. Most errors in this topic come from skipping that sentence, not from the arithmetic. When the counting starts to feel like choosing items from groups, the same multiply-the-choices idea carries over to permutations and combinations.

In the real CAT papers

37 QA questions on Number Systems appeared in the 24 CAT papers from 2017 to 2025 in ThinkCAT's question bank, 21 of them TITA (no negative marking).

Questions per year. 2017–2019 had two slots a year; 2020 onwards had three.

The CAT questions used in this article

  • CAT 2023 Slot 3 · QA Q7·FactorisationTITA

    The sum of the first two natural numbers, each having 15 factors (including 1 and the number itself), is

    Solve it with the official answer
  • CAT 2025 Slot 2 · QA Q12·FactorisationMCQ

    The number of divisors of , which are of the form , where is a non-negative integer, is

    Solve it with the official answer
  • CAT 2022 Slot 2 · QA Q17·MiscellaneousMCQ

    For some natural number , assume that is divisible by . The largest possible value of is

    Solve it with the official answer

Practise real CAT questions on Number Systems

Every question here is from a past CAT paper (2017–2025), with the official answer and a worked solution.

Practise these questions

Frequently asked questions

How do I count the divisors of N that are multiples of some number k?

If k divides N, the divisors of N that are multiples of k are exactly k × (divisors of N/k). So count the divisors of N/k. For example, the divisors of 360 that are multiples of 6 number d(60) = 12.

Is there a formula for the number of ways to write N as a product of two coprime factors?

Yes. If N has k distinct prime factors, each prime's full power must go entirely to one factor, giving 2^k ordered pairs and 2^(k−1) unordered pairs (for N > 1). For 360 = 2^3 × 3^2 × 5, that is 4 unordered pairs.

Written and checked by Team ThinkCAT. Question counts come from ThinkCAT’s bank of real CAT papers; exam rules and admission criteria are taken from the official sources listed on each page. Found a mistake? Write to thinkcat.founders@gmail.com.

Share Guide

Read next

All articles