P, Q both are integers
Q is ≠ 0