It begins with two non-repeating digits followed by a block of 3 digits which repeats.

For the generalized repeating decimal
.[a][b][b][b][b]...

Where [a] has n digits and [b] has m digits.

Find a general way to transform it into a rational number of the form p/r.