Number theory prob.
Source: Central American Olympiad 2001, problem 4
August 12, 2009
Problem Statement
Determine the smallest positive integer such that there exists positive integers , that smaller than or equal to and are not necessarily distinct, such that the last four digits of the sum,
a_1!\plus{}a_2!\plus{}\cdots\plus{}a_n!
Is .