Skip to content

Lesson 3 of 5 · Factorials and Trailing Zeros

Composite base: scarcest prime wins

Number System · for IPMAT Indore, IPMAT Rohtak and JIPMAT · asked in Indore 2019

Video lesson: Composite base: scarcest prime wins

Sign in to watch · 5 min video

The exam method

  1. Zeros of 146!146! limited by v3v_3 when the base is 66: 48+16+5+1=7048+16+5+1=70.

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).

Watch out

  • Only ⌊N/5⌋\lfloor N/5\rfloor; wrong prime chosen for composite bases; impossible zero counts; zero counts added for sums.

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