CAT Quant · Study & Practice

Factorials

AreaNumber System DifficultyModerate CAT weightage1–2 questions (directly + inside Number System, P&C and remainder sets)

A factorial, written n!, is the product of all positive integers up to n: n! = 1 × 2 × 3 × … × n, with the special convention that 0! = 1. The number grows explosively — 10! is already 3,628,800 — so CAT never asks you to compute a big factorial outright. Instead it tests what you can deduce about its structure: how many zeros it ends in, the highest power of a prime or composite that divides it, the rightmost non-zero digit, or how factorials behave inside permutations and combinations. The single tool that unlocks most of these is Legendre’s formula, which counts how many times a prime p divides n! using a clean chain of floor divisions. This chapter builds that skill end to end: trailing zeros (a special case for the prime 5), the general highest-power technique for any prime, the extra care needed for composite divisors, and the basic factorial identities that recur across Number System and Modern Maths. Master factorials and a whole band of seemingly hard CAT questions collapse into two-line arithmetic.

Topics

⚡ CAT shortcuts & speed methods

The fastest ways to crack this chapter under time pressure — the techniques that separate a 95+ percentiler from the rest.

  • Trailing zeros of n! = count of 5s only: ⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + … (2s are always in surplus).
  • Legendre fast method: keep dividing n by p (taking quotients) and add all the quotients — that is the prime’s exponent.
  • Power of a composite: factor it, find each prime’s exponent by Legendre, take the minimum (after dividing by the needed power).
  • For 6, 12, 18 etc., the prime 3 is almost always the limiter, not 2 — check the 3-side first.
  • For pᵏ (9 = 3², 8 = 2³, 25 = 5²): find the power of p, then floor-divide by k.
  • For n ≥ 5, n! ends in 0, so units-digit sums of factorials depend only on 1! through 4! (= 1, 2, 6, 24).

⚠️ Common mistakes & traps

CAT is designed so that careless errors here cost you marks. Internalise each trap before the exam.

  • Counting trailing zeros as just ⌊n/5⌋ and forgetting the ⌊n/25⌋, ⌊n/125⌋ terms (100! has 24 zeros, not 20).
  • Stopping Legendre’s sum too early — keep going until pᵏ exceeds n.
  • For a composite divisor, taking the power of the larger prime instead of the scarcer one (use the minimum).
  • Forgetting to divide by k for prime powers — power of 9 is half the power of 3, not equal to it.
  • Assuming 0! = 0; it is defined as 1, which matters in nCr and series formulas.

📈 CAT exam insight & PYQ analysis

In CAT and XAT, factorials seldom stand alone — they surface inside Number System (highest power, trailing zeros, last non-zero digit), inside Permutations & Combinations (simplifying nCr / nPr), and occasionally in remainder problems using Wilson-style or n!+1 setups. The most repeated direct ask is the number of trailing zeros in a factorial or the highest power of a prime/composite dividing it. Difficulty is Moderate: the formula is short, but candidates lose marks by truncating the floor-division chain or by mishandling composite divisors. Prioritise speed on Legendre’s formula and the trailing-zero special case — they convert intimidating-looking questions into two lines.

🎴 Flashcards — instant recall

Tap a card to reveal the answer. Drill these until they are automatic.

Trailing zeros of n! formula?Tap to reveal
⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + …
Why count only 5s for trailing zeros?Tap to reveal
Factors of 2 always outnumber factors of 5 in n!.
Trailing zeros in 100!?Tap to reveal
24
Highest power of prime p in n! (name + formula)?Tap to reveal
Legendre: ⌊n/p⌋ + ⌊n/p²⌋ + ⌊n/p³⌋ + …
Power of 3 in 100!?Tap to reveal
48
Power of 7 in 100!?Tap to reveal
16
Highest power of a composite divisor?Tap to reveal
Min of the prime-factor exponents (after dividing by needed power).
Power of 9 in n! given power of 3 is E?Tap to reveal
⌊E/2⌋
Value of 0!?Tap to reveal
1
7! = ?Tap to reveal
5040
Units digit of 1! + 2! + 3! + … + 100!?Tap to reveal
3
n! / (n − r)! equals?Tap to reveal
n(n−1)…(n−r+1)

📌 Quick revision

A factorial n! multiplies every integer up to n, with 0! = 1. The number of trailing zeros equals the count of 5s: ⌊n/5⌋ + ⌊n/25⌋ + …, giving 24 for 100!. The highest power of any prime p in n! comes from Legendre’s formula, ⌊n/p⌋ + ⌊n/p²⌋ + …, best done by repeated division and summing quotients. For a composite divisor, factor it and take the minimum prime exponent (the scarcer prime, usually 3); for a prime power pᵏ, find p’s exponent then floor-divide by k. Remember n! ends in 0 for n ≥ 5, so factorial sums’ units digits hinge only on the small terms. These few rules cover almost every CAT factorial question.

Chapter test

🏆 Vidaara CAT success checklist

You have truly mastered Factorials when you can tick every box below.

  • Recall every formula in this chapter without looking them up
  • Solve each topic’s practice set with at least 80% accuracy
  • Use the chapter shortcuts to cut your solving time in half
  • Spot and avoid every common trap listed above
  • Score 80%+ on the timed chapter test

📋 Chapter mastery scorecard

Track where you stand. Aim for the target before moving to the next chapter.

Skill checkpointTarget
Concept theory & formulas understood100%
Topic practice sets attempted (3 topics)3/3
Best topic-test score— → 80%+
Chapter test score— → 80%+
Flashcards drilled to instant recall12 cards