Problem

Source: KMO 2023 P5

Tags: number theory



Find all positive integers $n$ such that $$\phi(n) + \sigma(n) = 2n + 8.$$