MathLabs

Problem 1

Let mm and nn be positive integers with 1≤m<n1 \le m < n. In their decimal representations, the last three digits of 1978m1978^m are equal, respectively, to the last three digits of 1978n1978^n. Find mm and nn such that m+nm+n has its least value.
Step 8 of 8: Assemble the minimal answer
In plain words

Both m and n-m were pinned to their smallest possible values, so this pair genuinely minimizes m+n.

m=3, n−m=100  ⇒  n=103,m+n=106m=3,\ n-m=100 \;\Rightarrow\; n=103,\quad m+n=106
Detailed analysis

Taking the smallest allowed m=3m=3 and the exact order n−m=100n-m=100 gives n=103n=103, so the least possible value of m+nm+n is 3+103=1063+103=106.