Start by going in the order of decimals and what ever you end at, put this number on top 142857/<span>100000 And then you simplify it to the smallest numbers and you have your answer. It can't be simplified so it is just: </span>142857/<span>100000</span>