Problem

Source: The South African Mathematical Olympiad Third Round 2023 P3

Tags: number theory, greatest common divisor, least common multiple



Consider $2$ positive integers $a,b$ such that $a+2b=2020$. (a) Determine the largest possible value of the greatest common divisor of $a$ and $b$. (b) Determine the smallest possible value of the least common multiple of $a$ and $b$.