✔ 最佳答案
Definitions:
(i) A number is rational if it has the form q / p, for some integers p and q.
(ii) A number is irrational if it is not rational.
Theorem:
A number is rational if and only if one of the following holds:
(1) it has finite number of decimal places, or
(2) it has infinite number of decimal places but is repetitive with a finite period.
Proof:
If (1) holds, clearly the number is rational because it can be written as n / 10^m, where n is an integer and m is the length of decimals. If (2) holds, let say the decimals are repeating with a period m. Then the number can be written down as
( n / 10^m) ( 1 + 10^-m + 10^-2m + 10^-3m + ... )
= ( n / 10^m ) ( 1 / (1 - 10^-m) )
= ( n / 10^m ) ( 10^m / (10^m - 1) )
= n / (10^m - 1)
where n is an integer, namely the first 10^m decimals. So the number is rational.
Now given any rational number r = q / p, we want to show that it either has a finite number of decimals or has a finite repetitive decimals period. It suffices to show for r = 1 / p, for p a prime number. For p = 2 or 5, we know 1 / 2 = 0.5 and 1 / 5 = 0.2 have finite decimals. Now let assume p is not 2 nor 5, so that p and 10 is relatively prime. Fermat little theorem tells us
10^(p-1) - 1 is divisible by p
Let n be an integer such that
n p = 10^m - 1, where m = p - 1
and therefore the rational number has the form
r = 1 / p = n / (10^(p-1) - 1)
= ( n / 10^m) ( 1 + 10^-m + 10^-2m + 10^-3m + ... )
which has repetitive decimals of period m = p - 1.
2009-12-06 02:01:04 補充:
As a corollary, the theorem implies all irrational numbers have infinite decimals and are not repetitive.
2009-12-06 02:01:27 補充:
More definitions:
(iii) A number is algebraic if it is a root of a polynomial equation with integer coefficient.
(iv) A number is transcendental if it is not algebraic.
e.g. sqrt(3) is algebraic but irrational. pi and e are transcendental.
參考: Fermat little theorem, see wikipedia