Is there any formula to calculate number of zeros in 100! or any other...
To get underway, one must know concept of zeros in factorial. Zeros start from 5! (Five factorial); 5! = 5X4X3X21 = 120. So from 5! onwards any factorial would fetch you zeros at the end. (Basically unit digit is zero).
6! =6X5!
7!= 7X6X5!
So, 100! = 100X99 X5!
It is obvious that 100 has 2 zeros in addition to the one zero in 5!.
Now to the point,
To find the number of zeros at the end of A! Is
Mod(A/5) +mod(A/25) + mod(125) + mod(A/625)…
Basically, denominators are powers of 5.
Now the question is for 100!
|100/5| +|100/25|
20+ 4 = 24.
There are 24 zeroes in 100!.
This question is part of UPSC exam. View all Class 11 courses
Is there any formula to calculate number of zeros in 100! or any other...
Introduction:
Calculating the number of zeros in a factorial can be a challenging task, but there is a formula that can simplify the process. In order to understand this formula, let's first discuss the concept of zeros in a factorial.
Understanding Zeros in Factorials:
When we calculate the factorial of a number, we multiply all the positive integers up to that number. For example, 5! (read as "5 factorial") equals 5 x 4 x 3 x 2 x 1, which is equal to 120.
The number of zeros at the end of a factorial depends on the number of times the factorial is divisible by 10. Since 10 is the product of 2 and 5, the number of zeros in a factorial is determined by the number of factors of 2 and 5 in the factorial.
Factors of 2 and 5:
In any factorial, the number of factors of 2 is always greater than or equal to the number of factors of 5. Therefore, we only need to count the number of factors of 5 to determine the number of zeros.
Formula:
The formula to calculate the number of zeros in a factorial is:
Number of Zeros = (n/5) + (n/25) + (n/125) + ...
Where 'n' is the number whose factorial is being calculated.
Explanation:
Let's take an example to understand the formula better. We'll calculate the number of zeros in 100!.
1. n = 100
2. Number of Zeros = (100/5) + (100/25) + (100/125) + ...
3. Number of Zeros = 20 + 4 + 0.8 + ...
4. Number of Zeros = 24.8 (rounded down to 24)
Therefore, there are 24 zeros at the end of 100!.
Conclusion:
The formula (n/5) + (n/25) + (n/125) + ... can be used to calculate the number of zeros in a factorial. By counting the factors of 5 in the factorial, we can determine the number of zeros at the end. Remember to round down the final result to obtain the exact number of zeros.
To make sure you are not studying endlessly, EduRev has designed Class 11 study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Class 11.