On the fractional parts of the powers of a rational number