Another grasshopper problem
Source: Mexico National Olympaid 2019 P5
November 12, 2019
number theoryalgebra
Problem Statement
Let be relatively prime positive integers. A grashopper stands at point in a number line. Each minute, the grashopper jumps according to the following rules:
[*] If the current minute is a multiple of and not a multiple of , it jumps units forward.
[*] If the current minute is a multiple of and not a multiple of , it jumps units backward.
[*] If the current minute is both a multiple of and a multiple of , it jumps units forward.
[*] If the current minute is neither a multiple of nor a multiple of , it doesn't move.Find all positions on the number line that the grasshopper will eventually reach.