Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
by P L Patodia
Steps:
1. Divide the factorial number by 5, take quotient and remainder. Again take quotient and
divide it by 5 and take quotient and remainder. Repeat this process till quotient becomes 0.
2. Add all the quotient. Divide this by 4. If it is divisible by 4, then it becomes 4, otherwise
take the remainder. Raise this to the power of 2 and take unit digit.
3. For each remainder, take unit digit of factorial. This number will be between 0 and 4. Ignore
0 and 1. For 2!, unit digit is 2. For 3!, unit digit is 6. For 4!, unit digit is 4.
4. Now multiply all these and you get last non-zero digit of a factorial.
On multiplying 2x2x6, we get unit digit as 4. So, last non-zero digit of 37! is 4.
On multiplying 4x4, we get unit digit as 6. So, last non-zero digit of 159! is 6.
Copyright P L Patodia
Example 3: Compute Last Non-zero digit of 2345!.
On multiplying 4x6x6x6x8, we get unit digit as 2. So, last non-zero digit of 2345! is 2.
On multiplying 4x6x6x4x6x4, we get unit digit as 4. So, last non-zero digit of 12345! is 4.
From the above examples, it is clear that if you know how to divide by 5, you can easily find last
non-zero digit of any factorial.
Copyright P L Patodia