Question Number 15742 by RasheedSoomro last updated on 14/Jun/17

Commented by mrW1 last updated on 13/Jun/17

Answered by RasheedSoomro last updated on 13/Jun/17

Commented by Tinkutara last updated on 13/Jun/17
![We have last non-zero digit of n! = 2^A × A! × B! where A = [(n/5)] and B = remainder when n is divided by 5. Last non-zero digit of 2000! = 2^(400) × 400! × 0! = 2^(400) × 400! Last non-zero digit of 400! = 2^(80) × 80! Last non-zero digit of 80! = 2^(16) × 16! Last non-zero digit of 16! = 2^3 × 3! × 1! = 48 ≡ 8 Last non-zero digit of 2000! ≡ 6 × 400! = 6 × 6 × 80! ≡ 6 × 80! ≡ 6 × 6 × 16! ≡ 6 × 16! ≡ 6 × 8 ≡ 8 Similarly last non-zero digit of 1000! = 2^(200) × 200! Last non-zero digit of 200! = 2^(40) × 40! Last non-zero digit of 40! = 2^8 × 8! Last non-zero digit of 8! = 2^1 × 1! × 3! = 2 × 6 ≡ 2 Last non-zero digit of 1000! = 6 × 200! = 6 × 6 × 6 × 2 ≡ 2](https://www.tinkutara.com/question/Q15758.png)
Commented by RasheedSoomro last updated on 13/Jun/17

Commented by RasheedSoomro last updated on 13/Jun/17
![Continue from my above answer Sorry that there was no space and my few lines couldn′t be included in the above answer. I write them below So each bracket is congruentto 2(mod 10): ((∗.∗.∗.∗)/2)≡2(mod 10) [499 congruences).....(i) 96≡6(mod 10).......................................(ii) (i)×(ii): p≡2^(499) .6(mod 10) p≡8.6(mod 10) [∵ 2^(4k+3) ≡8]] p≡8(mod 10) Hence the last non-zero digit of 2000!=8](https://www.tinkutara.com/question/Q15771.png)
Commented by mrW1 last updated on 13/Jun/17

Commented by mrW1 last updated on 13/Jun/17

Commented by Tinkutara last updated on 14/Jun/17

Commented by mrW1 last updated on 14/Jun/17
