Divide p by q: watch the remainders decide if the decimal stops or repeats
1
7
numerator p
−
+
denominator q
−
+
Divide
Remainder wheel: dividing by q, a remainder can only be 0 to q − 1
Long division, step by step
Step
Divide
Digit
Remainder
Try:
1/4
1/3
1/7
1/6
3/12
22/7