Calculating max $n$ so that $a$ has nth root over $\mathbb{Z}$

47 Views Asked by At

Is there a fast way to find the maximal $n$ so that for $a \in \mathbb{Z_+} $, $a^{1/n} \in \mathbb{Z}$ ?

The only algorithm which I know is brute Force.

Greetings