Problem

Source: Slovenia National MO 2005 3rd Grade P2

Tags: number theory



Find the smallest prime number $p$ for which the number $p^3+2p^2+p$ has exactly $42$ divisors.