A positive integer $k > 1$ is called nice if for any pair $(m, n)$ of positive integers satisfying the condition $kn + m | km + n$ we have $n | m$. 1. Prove that $5$ is a nice number. 2. Find all the nice numbers.
Source: 2017 Saudi Arabia JBMO TST 2.2
Tags: number theory, divides
A positive integer $k > 1$ is called nice if for any pair $(m, n)$ of positive integers satisfying the condition $kn + m | km + n$ we have $n | m$. 1. Prove that $5$ is a nice number. 2. Find all the nice numbers.