I want to describe the set of numbers $a$ such that if $a \mid b^2$ then $a | b$ for all positive integers b using the prime factorizations of $a$ and $b$.
What would be a good way to approach this problem?
I know I can list $a^2$ and $a$ with respect to their prime factorizations but I am stuck at what to do after that.