Problem: Rational or Irrational (click here to see the problem statement)
My Solution.

We need where a and b are integers, b not 0.

So,

Also, we can work it this way

Note: Not only must a and b be integers, a and be must not be equal.