A perfect power is a positive integer that can be expressed as an integer power of another positive integer. More formally, a number ( n ) is a perfect power if there exist natural numbers ( m > 1 ) and ( k > 1 ) such that:
[ m^k = n ]
Your task is to determine if a given integer is a perfect power. If it is, return a pair ( (m, k) ) that demonstrates the relationship ( m^k = n ). If it is not a perfect power, return None (or the equivalent in your programming language).
Input Format
A single positive integer ( n ).
Output Format
If ( n ) is a perfect power, return a list or tuple containing the pair ( [m, k] ).
If ( n ) is not a perfect power, return None (or the equivalent in your programming language).