1998 IMO Shortlist Problems/N6

For any positive integer $n$, let $d(n)$ denote the number of positive divisors of $n$ (including $1$ and $n$). Determine all positive integers $k$ such that $d(n^2) = k d(n)$ for some $n$.

Invalid username
Login to AoPS