a) Either the reminder becomes zero .
or
b) Remainder never becomes zero and we get a repeating string of remainders.
Example of $7/8$
We call decimal expansion of such numbers terminating.
In example of 10/3 and 1/7 , the remainders repeats after a certain stage forcing the decimal expansion to go on for ever. In other words , we have a repeating block of digits in the quotient.
We say that this expansion is non-terminating recurring.
Example : Show that 3.142678 is a rational number?
Example: Show that 0.333... is a rational number ?
Example : Show that 1.272727... can be expressed in the form $p/q$ , where $p$ and $q$ are integers and $q$ ≠ 0 .
Example : Show that 0.235235... can be expressed in the form $p/q$ , where $p$ and $q$ are integers and $q$ ≠ 0 .
Important: The decimal expansion of a rational number is either terminating or non-terminating recurring.
Moreover , a number whose decimal expansion is terminating or non-terminating recurring is rational.
The decimal expansion of an irrational number is non-terminating non-recurring.
Moreover, a number whose decimal expansion is non-terminating non-recurring is irrational.