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.