sumithshah wrote:Can someone explain what and how Sudir did what he did
That is a method to calculate what highest power of a number will divide a factorial.
For eg, what highest power of 2 will divide 30!
So, what we do is take all powers of 2, which are small than the factorial number ( in this case 30 )
So, we have powers of 2 as (2 , 4 , 8, 16 ) Note - its till 16 because 32 is greater than 30
Now, we divide 30 by each power and take the sum of quotient of the division
so 30/ 2 = 15
30/4 = 7
30/8 = 3
30/16 = 1
where (15, 7, 3, 1) are quotient of the division.
Now, take the sum of these, which is 26. Hence, highest power of 2 that divides 30! is 24
Hope it was helpful