Problem

Source: 2023 NZMO - New Zealand Maths Olympiad Round 1 p5

Tags: number theory



Find all triples $(a, b, n)$ of positive integers such that $a$ and $b$ are both divisors of $n$, and $a+b = \frac{n}{2}$ .