It's obvious that .

To show that mn is the smallest such number, note that the order of ab must be a multiple of both a and b. Depending on how strictly your teacher grades, you may want to explicitly justify this statement. Since m and n are relatively prime the smallest such number is their LCM, which is mn.