Add d or Divide by a
Source: ISL 2022 N3
July 9, 2023
number theoryISL 2022IMO ShortlistSequence
Problem Statement
Let be a positive integer and be a positive integer coprime to . Let , and for , define
Find, in terms of and , the greatest positive integer for which there exists an index such that is divisible by .