How many digits long could a repeating cycle of a repeating decimal be if the denominator of the rational number is 7

1 answer

To determine how many digits long a repeating cycle of a repeating decimal might be when the denominator of the rational number is 7, we need to consider the properties of the denominator relative to the base of the number system we are working in.

In this case, we are dealing with base 10 (the decimal system). The length of the repeating cycle for a rational number pq can be determined by finding the smallest integer d for which 10d1modq, provided that q is coprime to the base (which in this case, it is because 10 and 7 are coprime).

For q=7, we find d such that:

10d1mod7

We can calculate the powers of 10 modulo 7 to find d:

  • 101mod7=3
  • 102mod7=10mod7=3
  • 103mod7=30mod7=2
  • 104mod7=20mod7=6
  • 105mod7=60mod7=4
  • 106mod7=40mod7=5
  • 107mod7=50mod7=1

We find that 1061mod7. This means the repeating decimal for any fraction with a denominator of 7 will have a repeating cycle of length 6.

Therefore, a repeating cycle of a repeating decimal for the denominator of 7 could be 6 digits long.