Problem

Source: Swiss IMO TST 2016. Problem 7

Tags: number theory, Divisors



Find all positive integers $n$ such that $$\sum_{d|n, 1\leq d <n}d^2=5(n+1)$$