Problem

Source: Germany 2015, Problem 2

Tags: number theory, number theory proposed, equation, Germany



A positive integer $n$ is called smooth if there exist integers $a_1,a_2,\dotsc,a_n$ satisfying \[a_1+a_2+\dotsc+a_n=a_1 \cdot a_2 \cdot \dotsc \cdot a_n=n.\]Find all smooth numbers.