Problem

Source: Third Saudi Arabia JBMO TST 2018, P1

Tags: number theory



Let $n$ be a natural composite number. For each proper divisor $d$ of $n$ we write the number $d + 1$ on the board. Determine all natural numbers $n$ for which the numbers written on the board are all the proper divisors of a natural number $m$. (The proper divisors of a natural number $a> 1$ are the positive divisors of $a$ different from $1$ and $a$.)