Difference between revisions of "2021 JMPSC Accuracy Problems/Problem 15"
(→Solution) |
(→Solution) |
||
Line 3: | Line 3: | ||
==Solution== | ==Solution== | ||
− | We can easily find that <math>\tfrac{f(1) | + | We can easily find that <math>\tfrac{f(1)}{25}=19,\tfrac{f(2)}{25}=191,\tfrac{f(3)}{25}=1911,</math> and so on. Thus, we claim<math>\text{}^*</math> that <cmath>\frac{f(n)}{25}=19\underbrace{111 \cdots 1}_{(n-1)\text{one's}}.</cmath> Now, we find we can easily find that <cmath>\left(\frac{f(1)+f(2)+ \cdots + f(100)}{25}\right)\equiv(19+191+911+(111)(97))\equiv 11888 \pmod{1000} \rightarrow \boxed{888}.</cmath> |
Revision as of 15:39, 11 July 2021
Problem
For all positive integers define the function to output For example, , , and Find the last three digits of
Solution
We can easily find that and so on. Thus, we claim that Now, we find we can easily find that
This will be a proof by induction.
Base Case:
I claim that We can easily find that Thus, since as desired.
~pinkpig
Solution 2 (More Algebraic)
We only care about the last digits, so we evaluate . Note the expression is simply , so factoring a we have . Now, we can divide by to get Evaluate the last digits to get ~Geometry285