A week ago i made a similar question but nobody help me, i´ve been trying but i still don't get it.
I want to know how to find the last non-zero digit of $50!$.
my try:
First i have to know how much Zeros $50!$ has so i did this:
$$E_{5}50 = \sum _{1\leq k <n} \Bigg[\frac{50}{5^{k}}\Bigg] =\Bigg[\frac{50}{5}\Bigg] + \Bigg[\frac{50 }{25}\Bigg] = 12$$
So $50!$ has $12$ zeros which means that the last digit of $\quad\frac{50!}{10^{12}}\quad$ is the number that i´m looking for.
so if $x = \frac{50!}{10^{12}}$ i need to find $x (mod 10)$ to get it but this is such a big number and i still don't know how to reduce it.
Thanks in advance!!