2021 JMPSC Accuracy Problems/Problem 15
Problem
For all positive integers define the function to output For example, , , and Find the last three digits of
Solution
Notice that , , , and ends in for all . So, the last 3 digits of are the last digits of , which are .
~Mathdreams