Let’s divide 5 by 7 and see what happens.
   .7142857142857…
7|5.0000000000000
  4 9
    10
    7
     30
     28
      20
      14
       60
       56
        40
        35
         50
         49
          1
Same remainder!
Thus, the process must repeat.