Skip to content

Lesson 2 of 5 · Factorials and Trailing Zeros

Trailing zeros of N!

Number System · for IPMAT Indore, IPMAT Rohtak and JIPMAT

Video lesson: Trailing zeros of N!

Sign in to watch · 5 min video

The exam method

  1. 100!+200!=100!(1+101⋯200)100!+200!=100!(1+101\cdots200): the bracket ends in 11, zeros =24=24.
  2. 'How many NN have N!N! with exactly 2323 zeros': 99!→2299!\to22, 100!→24100!\to24: none.

Worked examples

Example 1Sitter

Zeros of 125!125!

Example 5Typical

Zeros of 5×10×15×⋯×1005\times10\times15\times\dots\times100

Formulas you need

Trailing zeros of a factorial

Z(N!)=v5(N!)(factors of 2 are never scarce)Z(N!)=v_5(N!)\quad(\text{factors of 2 are never scarce})

Indore style: zeros of 100! = 20 + 4 = 24.
Inverse trailing-zero problems

Z(N!)≈N4; each value is taken by exactly 5 consecutive N or by none (skips at multiples of 25)Z(N!)\approx\frac N4;\ \text{each value is taken by exactly 5 consecutive }N\text{ or by none (skips at multiples of 25)}

A zero count is skipped when N passes a multiple of 25 (23 zeros never occur: 99! has 22, 100! has 24); 'how many N' is 5 or 0.

How Factorials and Trailing Zeros is asked

  • max n with p^n | N!
  • zeros at end of N!
  • 21^n divides 50! (Indore 2019 Q22); highest power of 24 in 108!
  • how many N have N! ending in exactly k zeros; smallest N with k zeros
  • zeros at the end of 5 x 10 x 15 ... / 1^1 2^2 ... n^n / 30 x 60 x ... x 30n

Picked from the Factorials and Trailing Zeros note for this micro-concept automatically. The whole note: Factorials and Trailing Zeros.

Practise this free. Every mistake is saved and comes back until you fix it.

Start free