Problem

Source: All Russian Olympiad 2017,Day1,grade 10,P5

Tags: number theory, MONT



$n$ is composite. $1<a_1<a_2<...<a_k<n$ - all divisors of $n$. It is known, that $a_1+1,...,a_k+1$ are all divisors for some $m$ (except $1,m$). Find all such $n$.