Where you say mk = n do you mean "m to the power of k" or "m times k"? It looks like m times k, but your challenge talks about powers.
mk = n
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.