The Last Non-Zero Digit For Factorials

Rarely Tested

1. For $$n < 25$$

Representation: $$n = 5 \cdot a + b$$

$$L[n!] = (2^a \cdot L[a!] \cdot L[b!]) \pmod{10}$$

2. For $$25 \le n < 125$$

Representation: $$n = 25 \cdot a + b$$

$$L[n!] = (4^a \cdot L[a!] \cdot L[b!]) \pmod{10}$$

3. For $$n \ge 125$$

Representation: $$n = 125 \cdot a + b$$

$$L[n!] = (8^a \cdot L[a!] \cdot L[b!]) \pmod{10}$$

Question 1

Find the right most non zero digit of 12! ?

Question 2

What is the last non-zero digit of 1*2*3*…*10?

Log in to view all questions

Go back to topics

Join CAT 2026 course by 5-Time CAT 100%iler

Crack CAT 2026 & Other Exams with Cracku!