x! ends with n zeroes
(x + 1)! ends with n + 2 zeroes
24≤x≤626
as x! ends with n zeroes
So it will be have (5×5...n times)(2×2×....m times)
=/5n/5m5n2m(m>n)
(x + 1)! ends with (n + 2) zeroes
∴(x+5)! will have 5n+22m(m>n)
So, we need to find number of multiples of 25 but not multiples of 125
As if it is 125, then there will be one more 5 which give one more zero
So between 24 - 626
Theri will be 25 number of multiples of 25 but out those 25, 5 numbers i.e. 125, 250, 315, 500 and 625 (Which are multiples of 125) so we will substract them.
∴ there will be 20 possible values of x.