Problem

Source: Romania EGMO TST 2024 Day 1 P4, probably unoriginal

Tags: number theory, Divisors



Find all composite positive integers $a{}$ for which there exists a positive integer $b\geqslant a$ with the same number of divisors as $a{}$ with the following property: if $a_1<\cdots<a_n$ and $b_1<\cdots<b_n$ are the proper divisors of $a{}$ and $b{}$ respectively, then $a_i+b_i, 1\leqslant i\leqslant n$ are the proper divisors of some positive integer $c.{}$