1. Prove that a number's decimal expression has finitely many decimal places if and only if the denominator (after simplification) is in the form of 2^a × 5^b where a and b are nonnegative integers.
2. Prove that the decimal representation of every rational number is eventually periodic.
NT Exercise: Decimal Expressions
Problem 1
Prove that a number's decimal expression has finitely many decimal places if and only if the denominator (after simplification) is in the form of where
and
are nonnegative integers.
Solution
Let where
and
are relatively prime numbers, so that
can not be further simplified. If a decimal expression of
has FINITELY many decimal places, without loss of generality, we can arbitrarily choose an odd number
, so that
( is the integer part, while
is the fraction part of
)
Thus,
Because and
is an integer,
has to be a factor of
, implying
. Both 2 and 5 are prime numbers. Hence,
has to be in the form of
where
and
are nonnegative integers (
or
may possibly be 0), and
.
__________________
Problem 2
Prove that the decimal representation of every rational number is eventually periodic.
Solution
If a rational number is eventually periodic, we can write it as
( is the integer part,
is the non-repeating part, and
is the repeating part of
)
Backward proof: If the decimal representation of is eventually periodic, then
(
is a rational number).
, so it is enough to show that
.
Both numerator and denominator are positive integers, so , and it proves that
.
Forward proof: If (
is a rational number), then the decimal representation of
is eventually periodic.
Let .
We can take and
, so that
Take and
, so that
Trying to do an inductive approach, let's define:
and
,
.
By the same logic as , we get:
where
Note that , implying
,
.
Because
, there exists
, so that
, and
.
Hence, we get
By division algorithm, we get and
.
So,
.
Thus is eventually periodic, and it completes the proof.