Got an interesting problem from a friend.
How many zeroes does $n!$ end in when written in base $n$?
For every factor of $n$ in $n!$, I know that there will be $1$ $0$ added. However, I'm not really sure how to proceed from here.
EDIT: A question I'm curious about: what would the value of $\frac{\#\{\text{number of zeros in $n!$ in base $n$}\}}{n}$ be?
For 10 we check the largest prime factor powers(powers of 5) of 10. So in any base we should find the number of largest prime factor exponent of 10(in that base). For example in base 26, it's 13.