Solution 1:

Hint: your equation is of the form

(power of $p$) = (power of $p$) x (coprime to $p$)