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,
Is .
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,
Is .
We are tasked with finding the smallest positive integer such that there exist positive integers where each is less than or equal to 15, and the last four digits of the sum is 2001.
To solve this problem, we need to examine the behavior of factorials modulo 10000, as we are interested in the last four digits. The factorial function grows quickly, and for numbers greater than or equal to 10, the factorial value becomes divisible by 10000 due to the presence of factors 2 and 5.
Let's consider the factorials:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Considering the numbers through , they provide smaller, more precise contributions due to their values modulo 10000. Our task is to use a combination of these factorials to achieve a sum modulo 10000 equal to 2001.
### Trial for
Let's investigate if we can achieve the sum 2001 using three factorials.
1. We start with :
2. Add :
3. Add :
4. Add :
5. Add :
Clearly, reaching exactly 2001 with a smaller combination is complex, so realign to give at least a closer exploration:
We have found that , with , , and .
Thus, the smallest value of is: