Example :
Repeating part : 57.
Digits in repeating part = 2.
57/((10^2)-1)=57/99.
Simplify : 57 & 99 are not divisible by 2 ; 57 & 99 are both divisible by 3.
(57/3)/(99/3)=19/33.
19 is a prime number ; 33 is not divisible by 19, so we are done !
Example :
Repeat = 6
Normal = 1
Repeat digits = 1
Normal digits = 1
Normal fraction = 1/10^1 = 1/10
Repeat fraction = 6/(((10^1)-1)x10^1) = 6/90
1/10 = 1/10
6/90 = 1/15
(1/10) + (1/15) = 25/150
25/150 = 1/6
1/6 is a unit fraction, so we are done !
Example :
Digits = 3
Fraction = 125/10^3 = 125/1000
Simplify : 125/1000 = 1/8
1/8 is a unit fraction, so we are done !