Problem

Source: 2023 Turkey TST D1 P3

Tags: number theory, equation



For all $n>1$, let $f(n)$ be the biggest divisor of $n$ except itself. Does there exists a positive integer $k$ such that the equality $n-f(n)=k$ has exactly $2023$ solutions?