Any large factorial will have a number of zero behind it, and one could write an expression to compute the number of trailing zeros, but how would one go about computing the nonzero end digits?
E.g. compute first 5 nonzero end digits of (10^12)!
Any large factorial will have a number of zero behind it, and one could write an expression to compute the number of trailing zeros, but how would one go about computing the nonzero end digits? E.g. compute first 5 nonzero end digits of (10^12)! 

closed as too localized by Igor Rivin, Matthew Daws, Kevin O'Bryant, Felipe Voloch, Emil Jeřábek Nov 9 '11 at 18:18This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 


This will be the least complete answer I've ever posted, but perhaps somebody else will be able to add to it. Not a complete answer (because I don't find any paper online), but I've heard JeanMarc Deshouillers speak on his (with others, but I don't recall with whom) proof that the last nonzero base$p$ digit of $n!$ forms a $q$automatic sequence. I don't recall the hypothesis on $p$, nor the connection between $p$ and $q$. But this answers (to a very limited extent) the real mathresearch level question hidden in this homework question. Or at least it would, if I could recall any details! 

