document.write( "Question 626126: what is the remainder when the sum of all numbers' factorial is divided by 10
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #394017 by richard1234(7193)\"\" \"About 
You can put this solution on YOUR website!
1! + 2! + 3! + 4! + 5! + 6! + ...\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Note that 5!, 6!, 7!, ... all leave a remainder of 0 when divided by 10. Thus the entire sum is equivalent to 1! + 2! + 3! + 4! (mod 10). 1! + 2! + 3! + 4! = 33, so the units digit is 3.
\n" ); document.write( "
\n" );