Problem

Source: IMO LongList, Cuba 3, IMO 1978, Day 1, Problem 1

Tags: modular arithmetic, number theory, Digits, decimal representation, IMO, IMO 1978



Let $ m$ and $ n$ be positive integers such that $ 1 \le m < n$. In their decimal representations, the last three digits of $ 1978^m$ are equal, respectively, to the last three digits of $ 1978^n$. Find $ m$ and $ n$ such that $ m + n$ has its least value.