Arbitrary cycle of digits in rational number?

  • Thread starter Thread starter dylanbyte
  • Start date Start date
  • Tags Tags
    Cycle Rational
Click For Summary
The discussion explores how to determine a fraction that results in a decimal expansion with a specific cycle of digits. It highlights that if n is a primitive root of 10, the cycle length of 1/n is n-1 digits. An example is provided with 1/7, which has a repeating sequence of 6 digits. The conversation suggests using a method involving multiplying a repeating decimal by a power of ten and then subtracting the original number to derive a repeating decimal. Overall, the thread emphasizes techniques for finding rational numbers with desired repeating decimal patterns.
dylanbyte
Messages
7
Reaction score
0
Hello all, I have recently been wondering whether there is a way to determine a fraction for which the decimal expansion is a cycle of n numbers?

I would like to be able to work this out myself, but I can't wait until I start my mathematics degree. So any help would be greatly appreciated.

For example, if I wanted a rational number with a repeated 500 digit sequence, is there a way to efficiently work out an example of such a number?

Penny for your thoughts guys.

Cheers.
 
Physics news on Phys.org
If n is a primitive root of 10 then the cycle of 1/n is n-1 digits long.

For example 1/7=.142857142857... has 6 repeating digits.
 
Start with a repeating decimal like, for example, 0.123412341234... Try multiplying it by an appropriate power of ten, and then subtracting the original number.

In this example you started with a repeating decimal; try to run the exercise backwards, to see if you can end up obtaining a repeating decimal.
 
Ah thanks guys, I feel stupid for having to ask now :).
 

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 43 ·
2
Replies
43
Views
6K
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
32
Views
3K
Replies
5
Views
4K