Rational number: A number which can be represented as $ \dfrac{p}{q}$ where p is an integer and q is a non-zero integer i.e., $ p \in \mathbf{Z}$ and $ q \in \mathbf{Z} \setminus \{0\}$ and p and q arerelatively prime as their greatest common divisor is 1, i.e., $ \left(p,q\right) =1$ .