Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 4.1.22* (Amazing sequences)
Exercise 4.1.22* (Amazing sequences)
Let be a positive irrational number. Prove that the two sequences,
together contain every positive integer exactly once. Prove that this is false if is rational.
Answers
A little experiment for the skeptics:
sage: a = sqrt(67) sage: l1 = [floor(k + k *a) for k in range(1, 16)] sage: l2 = [floor(k + k *a^(-1)) for k in range(1, 51)] sage: print(l1) [9, 18, 27, 36, 45, 55, 64, 73, 82, 91, 101, 110, 119, 128, 137] sage: print(l2) [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56]
This gives the pattern : if , the second sequence progress by steps of one or two units, and when the step has two units, a term of the first sequence slips in the two values. This remains to be proved.
Proof.
- (a)
-
Even if it means replacing
with
and exchanging the two sequences, we can assume that
(
is impossible because
is irrational).
For all in , put
In particular .
We prove first that the two sequences are strictly increasing.
where , thus
This proves that is strictly increasing, and so is .
- (b)
-
About this last sequence, we can say a little more. As previously,
Since
we obtain
thus or , so
When ? We prove the following equivalence:
By equation (1), if , then , therefore , so
Thus, multiplying by ,
or equivalently
Since is irrational, otherwise . Therefore
This shows that
Conversely, if for some , then, using , we obtain , thus , so . Therefore . Moreover implies , thus , so . This proves . By equation (1),
The equivalence (3) is proven.
- (c)
-
By (3), we know that
Now we show that
The definitions
give
thus the inequalities (5) are equivalent to
By definition of the greatest integer function, , and since is irrational,
Therefore, multiplying by , we obtain
Since , a fortiori , so
which is inequality (6).
Since , we have
thus
which is inequality (7). We have proven (5).
From (4) and (5), we deduce
Assume for the sake of contradiction, that for some indices . By (8), we obtain . But the sequence is strictly increasing, thus : this is impossible. This contradiction shows that
(d) Now we prove by finite induction that for any integer ,
By (8), this is true for .
Suppose now that for some , then
Since the sequence is increasing, this shows that for all . Then the equivalence (3) shows that , so
The induction is done, so is true for any up to : (9) is proven.
Similarly, for any , and , thus for all . (e) Consider now any integer , for some . Then where by part (a), , so
Then by (9), is a term of the sequence . Moreover is a term of the sequence , so every is a term of one of these two sequences.
Since , every in is a term of one of the two sequences. Moreover, by part (a), all the terms are distinct, all the terms are distinct, and by part (c), all are distinct of every ( ). Therefore is a term of one of the two sequences in only one way.
The two sequences
together contain every positive integer exactly once. (f) Suppose now that is a rational number, where are in . Then
Then
thus the previous result becomes false. □