Skip to content

Lesson 1 of 5 · Factorials and Trailing Zeros

Highest power of p in N!

Number System · for IPMAT Indore, IPMAT Rohtak and JIPMAT

Video lesson: Highest power of p in N!

Sign in to watch · 5 min video

Worked examples

Example 2Easy

Highest power of 24=23⋅324=2^3\cdot3 in 108!108!

Formulas you need

Highest power of a composite in a factorial

m=∏piai: max⁡{n:mn∣N!}=min⁡i⌊vpi(N!)ai⌋m=\prod p_i^{a_i}:\ \max\{n: m^{n}\mid N!\}=\min_i\left\lfloor\frac{v_{p_i}(N!)}{a_i}\right\rfloor

Indore 2019 Q22: 21 = 3 x 7, v_7(50!) = 8 < v_3(50!) = 22, so 21^8 is the highest power; divide by the exponent inside m when m has a prime power (12 = 2^2 x 3).

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