Suppose we have a number in P/Q form such that
P = p_0^a * p_1^b * p_2^c ...
Q = q_0^x * q_1^y * q_2^z ...
Where p_0, p_1, p_2, q_0, q_1, q_2 ar