Hello, I got a short lecture on number theory as an introductory lesson to university Algebra 1 (I assume that's abstract algebra in the US).
I am taking this course after Linear Algebra, so I have some knowledge from there.
What I have question about is a rather simple task:
"Determine with how many zeroes does $144!$ end with." ('!' being factorial sign ex. $5! = 5\cdot 4\cdot 3\cdot 2\cdot 1$)
It wasn't explained well, what are we looking for? All I see done is choosing number 10 and then 2 and 5 (because they're primes and factors of 10).
$[\frac{100}{2^1}] + [\frac{100}{2^2}] + [\frac{100}{2^3}] + [\frac{100}{2^4}] + [\frac{100}{2^5}] + [\frac{100}{2^6}] + [\frac{100}{2^7}] + ...$ (last term as well as all the rest count as 0)
And all this equals to 77.
Now doing similarly with 5:
$[\frac{100}{5^1}] + [\frac{100}{5^2}] + [\frac{100}{5^3}] + ...$ )(last term as well as all the rest count as 0)
And all this equals to 24.
Now, $144! = 2^24\cdot 5^77\cdot something...$
And conclusion from here is that $144!$ ends with 24 zeroes but I don't understand how we got to here? Can anybody explain steps in detail and why they're performed?