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.