Problem

Source: European Mathematical Cup 2022, Junior Division, Problem 1

Tags: number theory, modular arithmetic, Divisibility, Divisors



Determine all positive integers $n$ for which there exist positive divisors $a$, $b$, $c$ of $n$ such that $a>b>c$ and $a^2 - b^2$, $b^2 - c^2$, $a^2 - c^2$ are also divisors of $n$.