construct rational numbers with period of length 10