Problem

Source: Balkan BMO Shortlist 2016 N2

Tags: divisor, maximum, number theory, odd, IMO Shortlist



Find all odd natural numbers $n$ such that $d(n)$ is the largest divisor of the number $n$ different from $n$. ($d(n)$ is the number of divisors of the number n including $1$ and $n$ ).