Robuta

https://au.mathworks.com/help/symbolic/sym.factorintegerpower.html factorIntegerPower - Perfect power factoring - MATLAB This MATLAB function factors the number n into its perfect power xk and returns the base x. perfect powerfactoringmatlab