Clear Notion Academy

Fundamental Principles of Counting and Factorial Notation — DPP: How many trailing zeros does 150! have?

Question

How many trailing zeros does 150!150! have?

Options

  1. 37
  2. 30
  3. 36
  4. 38

Answer

Correct option: A

Hint

Trailing zeros come from factors of 55 (factors of 22 are more plentiful); use Legendre's formula for the exponent of 55.

Solution

Number of trailing zeros of 150!150! equals E5(150!)=⌊150/5⌋+⌊150/25⌋+⌊150/125⌋+⋯E_{5}(150!) = \lfloor 150/5\rfloor + \lfloor 150/25\rfloor + \lfloor 150/125\rfloor + \cdots. ⌊150/5⌋=30\lfloor 150/5\rfloor = 30, ⌊150/25⌋=6\lfloor 150/25\rfloor = 6, ⌊150/125⌋=1\lfloor 150/125\rfloor = 1, and ⌊150/625⌋=0\lfloor 150/625\rfloor = 0. Sum: 30+6+1=3730 + 6 + 1 = 37.

More questions from Fundamental Principles of Counting and Factorial Notation — DPP

Practise the full set: Fundamental Principles of Counting and Factorial Notation — DPP