Let
Multiplying both sides by 10 (since one digit is repeating), we get
10x = 6.666 .......
10x = 6 + 0.6666 .....
10x = 6 + x
10x - x = 6
9x = 6
Thus,
Here p = 2
q = 3 ()