N! is having 37 zeros at its end. How many values of N is/are possible...
The number of zero is determined by the nos. of 5's & 2's,whichever is less. (since 5 x 2 =10).
In most of the cases number of 5's is less than that of 2's.
Now in the question,
A/q, N/5+N/5^2+N/5^3+N/5^4=37
=> This gives the value of N=150,151,152,153,154
=> 5 values.
This question is part of UPSC exam. View all Quant courses
N! is having 37 zeros at its end. How many values of N is/are possible...
Easiest way to answer this is,
Here it's given N! Ends with 37 zeros.
It becomes 38 zeros when the N cross a number which is divisible with 5 or 10
If N is 84. It isn't. But just assume.
If 84! Has 37 zeros,
83,82,81,80 factorial will have 37 zeros.
If it reach 85, it will become 38 zeros.
So N has five values.
We can generalize it,
Take any number of zeros 1 or 25 or 66.
There exist 5 digits whose factorial ends with those many zeros.
N! is having 37 zeros at its end. How many values of N is/are possible...
//First check the number of zeroes in factorials of 100. //
• So,
100/5 = 20(quotient)
now divide that quotient again by 5
that is,
• 20/5 = 4(quotient)
• now add both the quotient you get 24, which is the number of zeroes for 100!
• then 37 zeroes must be higher than 100!
• lets take a number which is easily divisible by 5.
• that is say, 150!
• now,
with the same formula,
• 150/5= 30(quotient)
• 30/5 = 6
• 6/5 = 1.2
• now lets add all these and see if we find 37 zeroes..
• 30 + 6 + 1.2 ~ 37 (0.2 is negligible)
• now to check the limit how far it can go until it reaches 38.. we will take an assumption of next number which is greater than 150 and divisible by 5.
• if you try finding the zeroes in 155! you will get 38 zeroes.
• 155/5 = 31
• 31/5 = 6.2
• 6/5 = 1.2 31+ 6+ 1= 38
{{{{
• 154/5= 30.8
• 30.8 /5 = 6.16
• 6.16/5= 1.03
• which doesn't reach 38 zeroes so 154! is safe.
}}}}
• so therefore only factorials 150, 151, 152, 153, 154 have 37 zeroes.