From what I have seen, the longest length of a repeating sequence for an irrational number is c-1 for a=b/c. This occurs when c is a prime. How does one prove this? Can you give mathematical proof for this?
Here is a link to the problem being discussed: https://boards.straightdope.com/sdmb/showthread.php?t=720360