🚧 Setup for 5.4
This commit is contained in:
parent
6312d7df25
commit
7446ef3d7d
3 changed files with 714 additions and 0 deletions
|
|
@ -556,3 +556,355 @@ By inductive hypothesis, the remaining squares in each of the three quadrants
|
|||
can be completely covered by L-shaped trominoes. Thus every square in the
|
||||
$2^{k + 1} \times 2^{k + 1}$ checkerboard except the one that was removed can be
|
||||
completely covered by L-shaped trominoes _[as was to be shown]_.
|
||||
|
||||
---
|
||||
|
||||
Page 324
|
||||
|
||||
**Principle of Strong Mathematical Induction**
|
||||
|
||||
Let $P(n)$ be a property that is defined for integers $n$, and let $a$ and $b$
|
||||
be fixed integers with $a \leq b$. Suppose the following two statements are
|
||||
true:
|
||||
|
||||
1. $P(a), P(a + 1), \dots$, and $P(b)$ are all true. **(basis step)**
|
||||
|
||||
2. For every integer $k \geq b$, if $P(i)$ is true for each integer $i$ from $a$
|
||||
through $k$, then $P(k + 1)$ is true. **(inductive step)**
|
||||
|
||||
Then the statement
|
||||
|
||||
$$ \text{for every integer } n \geq a, P(n) $$
|
||||
|
||||
is true. (The supposition that $P(i)$ is true for each integer $i$ from $a$
|
||||
through $k$ is called the **inductive hypothesis**. Another way to state the
|
||||
inductive hypothesis is to say that $P(a), P(a + 1), \dots, P(k)$ are all true.)
|
||||
|
||||
---
|
||||
|
||||
Page 325
|
||||
|
||||
**Proof (by strong mathematical induction):**
|
||||
|
||||
Let the property $P(n)$ be the sentence
|
||||
|
||||
$n$ is divisible by a prime number.
|
||||
|
||||
_Show that $P(2)$ is true:_
|
||||
|
||||
To establish $P(2)$, we must show that
|
||||
|
||||
$2$ is divisible by a prime number.
|
||||
|
||||
But this is true because $2$ is divisible by $2$ and $2$ is a prime number.
|
||||
|
||||
_Show that for every integer $k \geq 2$, if $P(i)$ is true for each integer from
|
||||
$2$ through $k$, then $P(k + 1)$ is also true:_
|
||||
|
||||
Let $k$ be any integer with $k \geq 2$ and suppose that
|
||||
|
||||
$i$ is divisible by a prime number for each integer $i$ from $2$ through $k$.
|
||||
|
||||
We must show that
|
||||
|
||||
$k + 1$ is divisible by a prime number.
|
||||
|
||||
_Case 1($k + 1$ is prime):_
|
||||
|
||||
In this case $k + 1$ is divisible by a prime number, namely, itself.
|
||||
|
||||
_Case 2($k + 1$ is not prime):_
|
||||
|
||||
In this case $k + 1 = ab$ where $a$ and $b$ are integers with $1 < a< k + 1$ and
|
||||
$1 < b < k + 1$. Thus, in particular, $2 \leq a \leq k$, and so by inductive
|
||||
hypothesis, $a$ is divisible by a prime number $p$. In addition because
|
||||
$k + 1 = ab$, we have that $k + 1$ is divisible by $a$. Hence, since $k + 1$ is
|
||||
divisible by $a$ and $a$ is divisible by $p$, by transitivity of divisibility,
|
||||
$k + 1$ is divisible by the prime number $p$.
|
||||
|
||||
Therefore, regardless of whether $k + 1$ is prime or not, it is divisible by a
|
||||
prime number. _[as was to be shown.]_
|
||||
|
||||
_[Since we have proved both the basis and the inductive step of the strong
|
||||
mathematical induction, we conclude that the given statement is true.]_
|
||||
|
||||
---
|
||||
|
||||
Page 326
|
||||
|
||||
**Proof:**
|
||||
|
||||
Let $s_0, s_1, s_2, \dots$ be the sequence defined by specifying that
|
||||
$s_0 = 0, s_1 = 4$, and $s_k = 6a_{k - 1} - 5a_{k - 2}$ for every integer
|
||||
$k \geq 2$, and let the property $P(n)$ be the formula
|
||||
|
||||
$$ s_n = 5^n - 1 $$
|
||||
|
||||
We will use strong mathematical induction to prove that for every integer
|
||||
$n \geq 0$, $P(n)$ is true.
|
||||
|
||||
_Show that $P(0)$ and $P(1)$ are true:_
|
||||
|
||||
To establish $P(0)$ and $P(1)$, we must show that
|
||||
|
||||
$$ s_0 = 5^0 - 1 \text{ and } s_1= 5^1 - 1 $$
|
||||
|
||||
But, by definition of $s_0, s_1, s_2, \dots$, we have that $s_0 = 0$ and
|
||||
$s_1 = 4$. Since $5^0 - 1 = 1 - 1 = 0$ and $5^1 - 1 = 5 - 1 = 4$, the values of
|
||||
$s_0$ and $s_1$ agree with the values given by the formula.
|
||||
|
||||
_Show that for every integer $k \geq 1$, if $P(i)$ is true for each integer $i$
|
||||
from $0$ through $k$, then $P(k + 1)$ is also true:_
|
||||
|
||||
Let $k$ be any integer with $k \geq 1$ and suppose that
|
||||
|
||||
$$ s_i = 5^i - 1 \text{ for each integer } i \text{ with } 0 \leq i \leq k $$
|
||||
|
||||
We must show that
|
||||
|
||||
$$ s_{k + 1} = 5^{k + 1} - 1 $$
|
||||
|
||||
But since $k \geq 1$, we have that $k + 1 \geq 2$, and so
|
||||
|
||||
$$ s_{k + 1} = 6s_k - 5s_{k - 1} $$
|
||||
|
||||
$$ = 6(5^k - 1) - 5(5^{k - 1} - 1) $$
|
||||
|
||||
$$ = 6 \cdot 5^k - 6 - 5^k + 5 $$
|
||||
|
||||
$$ = (6 - 1)5^k - 1 $$
|
||||
|
||||
$$ = 5 \cdot 5^k - 1 $$
|
||||
|
||||
$$ = 5^{k + 1} - 1 $$
|
||||
|
||||
_[as was to be shown]._
|
||||
|
||||
_[Since we have proved both the basis and the inductive step of the strong
|
||||
mathematical induction, we conclude that the given statement is true.]_
|
||||
|
||||
---
|
||||
|
||||
Page 328
|
||||
|
||||
**Convention**
|
||||
|
||||
Let us agree to say that a single number $x_1$ is a product with one factor and
|
||||
can be computed with zero multiplications.
|
||||
|
||||
---
|
||||
|
||||
Page 329
|
||||
|
||||
**Proof (by strong mathematical induction):**
|
||||
|
||||
Let the property $P(n)$ be the sentence
|
||||
|
||||
If $x_1, x_2, \dots, x_n$ are $n$ numbers, then no matter how parentheses are
|
||||
inserted into their product, the number of multiplications used to compute the
|
||||
product is $n - 1$.
|
||||
|
||||
_Show that $P(1)$ is true:_
|
||||
|
||||
To establish $P(1)$, we must show that
|
||||
|
||||
The number 9f multiplications needed to compute the product of $x_1$ is $1 - 1$.
|
||||
|
||||
This is true because, by convention, $x_1$ is a product that can be computed
|
||||
with $0$ multiplications and $0 = 1 - 1$.
|
||||
|
||||
_Show that for every integer $k \geq 1$, if $P(i)$ is true for each integer $i$
|
||||
from $1$ through $k$, then $P(k + 1)$ is also true:_
|
||||
|
||||
Let $k$ be any integer with $k \geq 1$ and suppose that
|
||||
|
||||
For each integer $i$ from $1$ through $k$, if $x_1, x_2, \dots, x_i$ are
|
||||
numbers, then no matter how parentheses are inserted into their product, the
|
||||
number of multiplications used to compute the product is $i - 1$.
|
||||
|
||||
We must show that
|
||||
|
||||
If $x_1, x_2, \dots, x_{k + 1}$ are $k + 1$ numbers, then no matter how
|
||||
parentheses are inserted into their product, the number of multiplications used
|
||||
to compute the product is $(k + 1) - 1 = k$.
|
||||
|
||||
Consider a product of $k + 1$ factors: $x_1, x_2, \dots, x_{k + 1}$. When
|
||||
parentheses are inserted in order to compute the product, some multiplication is
|
||||
the final one and each of the two factors making up the final multiplication is
|
||||
a product of fewer than $k + 1$ factors. Let $L$ be the product of the left-hand
|
||||
factors and $R$ be the product of the right-hand factors, and suppose that $L$
|
||||
is composed of $l$ factors and $R$ is composed of $r$ factors. Then
|
||||
$l + r = k + 1$, the total number of factors in the product, and
|
||||
|
||||
$$ 1 \leq l \leq k \text{ and } 1 \leq r \leq k $$
|
||||
|
||||
By inductive hypothesis, evaluating $L$ takes $l - 1$ multiplications and
|
||||
evaluating $R$ takes $r - 1$ multiplications. Because one final multiplication
|
||||
is needed to evaluate $L \cdot R$, the number of multiplications needed to
|
||||
evaluate the product of all $k + 1$ factors is
|
||||
|
||||
$$ (l - 1) + (r - 1) + 1 = (l + r) - 1 = (k + 1) - 1 = k $$
|
||||
|
||||
_[as was to be shown]._
|
||||
|
||||
_[Since we have proved both the basis and the inductive step of the strong
|
||||
mathematical induction, we conclude that the given statement is true.]_
|
||||
|
||||
---
|
||||
|
||||
Page 330
|
||||
|
||||
**Theorem 5.4.1 Existence and Uniqueness of Binary Integer Representations**
|
||||
|
||||
Given any positive integer $n$, $n$ has a unique representation in the form
|
||||
|
||||
$$ n = c_r \cdot 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_2 \cdot 2^2 + c_1 \cdot 2 + c_0 $$
|
||||
|
||||
where $r$ is a nonnegative integer, $c_r = 1$, and $c_j = 1$ or $0$ for each
|
||||
$j = 0, 1, 2, \dots, r - 1$.
|
||||
|
||||
**Proof:**
|
||||
|
||||
We give separate proofs by strong mathematical induction to show first the
|
||||
existence and second the uniqueness of the binary representation.
|
||||
|
||||
_Existence (proof by strong mathematical induction):_
|
||||
|
||||
Let the property $P(n)$ be the equation
|
||||
|
||||
$$ n = c_r \cdot 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_2 \cdot 2^2 + c_1 \cdot 2 + c_0 $$
|
||||
|
||||
where $r$ is a nonnegative integer, $c_r = 1$, and $c_j = 1$ or $0$ for each
|
||||
$j = 0, 1, 2, \dots, r - 1$.
|
||||
|
||||
_Show that $P(1)$ is true:_
|
||||
|
||||
Let $r = 0$ and $c_0 = 1$. Then $1 = c_r \cdot 2^r$, and so $n = 1$ can be
|
||||
written in the required form.
|
||||
|
||||
_Show that for every integer $k \geq 1$, if $P(i)$ is true for each integer $i$
|
||||
from $1$ through $k$, then $P(k + 1)$ is also true:_
|
||||
|
||||
Let $k$ be an integer with $k \geq 1$. Suppose that for each integer $i$ from
|
||||
$1$ through $k$,
|
||||
|
||||
$$ = c_r \cdot 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_2 \cdot 2^2 + c_1 \cdot 2 + c_0 $$
|
||||
|
||||
where $r$ is a nonnegative integer, $c_r = 1$, and $c_j = 1$ or $0$ for each
|
||||
$j = 0, 1, 2, \dots, r - 1$ . We must show that $k + 1$ can be written as a sum
|
||||
of powers of $2$ in the required form.
|
||||
|
||||
_Case 1 ($k + 1$ is even):_
|
||||
|
||||
In this case $\dfrac{(k + 1)}{2}$ is an integer, and by inductive hypothesis,
|
||||
since $1 \leq \dfrac{(k + 1)}{2} \leq k$, then
|
||||
|
||||
$$ \frac{k + 1}{2} = c_r \cdot 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_2 \cdot 2^2 + c_1 \cdot 2 + c_0 $$
|
||||
|
||||
where $r$ is a nonnegative integer, $c_r = 1$, and $c_j = 1$ or $0$ for each
|
||||
$j = 0, 1, 2, \dots, r - 1$. Multiplying both sides of the equation by $2$ gives
|
||||
|
||||
$$ k + 1= c_r \cdot 2^{r + 1} + c_{r - 1} \cdot 2^r + \dots + c_2 \cdot 2^3 + c_1 \cdot 2^2 + c_0 \cdot 2 $$
|
||||
|
||||
which is the sum of powers of $2$ of the required form.
|
||||
|
||||
_Case 2 ($k + 1$ is odd):_
|
||||
|
||||
In this case $\dfrac{k}{2}$ is an integer, and by inductive hypothesis, since
|
||||
$1 \leq \dfrac{k}{2} = k$, then
|
||||
|
||||
$$ \frac{k}{2} = c_r \cdot 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_2 \cdot 2^2 + c_1 \cdot 2 + c_0 $$
|
||||
|
||||
where $r$ is a nonnegative integer, $c_r = 1$, and $c_j = 1$ or $0$ for each
|
||||
$j = 0, 1, 2, \dots r - 1$. Multiplying both sides of the equation by $2$ and
|
||||
adding $1$ gives
|
||||
|
||||
$$ k + 1 = c_r \cdot 2^{r + 1} + c_{r - 1} \cdot 2^r + \dots + c_2 \cdot 2^3 + c_1 \cdot 2^2 + c_0 \cdot 2 + 1 $$
|
||||
|
||||
which is also a sum of powers of $2$ of the required form.
|
||||
|
||||
The preceding arguments show that regardless 9f whether $k + 1$ is even or odd,
|
||||
$k + 1$ has a representation of the required form. _[Or, in other words,
|
||||
$P(k + 1)$ is true as was to be shown.]_
|
||||
|
||||
_[Since we have proved the basis step and the inductive step of the strong
|
||||
mathematical induction, the existence half of the theorem is true.]_
|
||||
|
||||
_Uniqueness:_
|
||||
|
||||
To prove uniqueness, suppose that there is an integer $n$ with two different
|
||||
representations as a sum of nonnegative integer powers of $2$. Equating the two
|
||||
representations and canceling all identical terms gives
|
||||
|
||||
$$ 2^r + c{r - 1} \cdot 2^{4 - 1} + \dots + c_1 \cdot 2 + c_0 = 2^s + d_{s - 1} \cdot 2^{s - 1} + \dots + d_1 \cdot 2 + d_0 $$
|
||||
|
||||
where $r$ and $s$ are nonnegative integers and each $c_i$ and each $d_i$ equal
|
||||
$0$ or $1$. Without loss of generality, we may assume that $r < s$. Now by the
|
||||
formula for the sum of a geomatric sequence (Theorem 5.2.2) and because $r < s$
|
||||
(which implies that $r + 1 \leq s$),
|
||||
|
||||
$$ 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_1 \cdot 2 + \c_0 \leq 2^r + 2^{r - 1} + \dots + 2 + 1 = 2^{r + 1} - 1 < 2^s $$
|
||||
|
||||
Thus
|
||||
|
||||
$$ 2^r + c_{r - 1} \cdot 2^{r - 1} + \dots + c_1 \cdot 2 + c_0 < 2^s + d_{s - 1} \cdot 2^{s - 1} + \dots + d_1 \cdot 2 + d_0 $$
|
||||
|
||||
which contradicts equation (5.4.1). Hence the supposition is false, so any
|
||||
integer $n$ has only one representation as a sum of nonnegative integer powers
|
||||
9f $2$.
|
||||
|
||||
---
|
||||
|
||||
Page 331
|
||||
|
||||
**Well-Ordering Principle for the Integers**
|
||||
|
||||
Let $S$ be a set of integers containing one or more integers all of which are
|
||||
greater than some fixed integer. Then $S$ has a least element.
|
||||
|
||||
---
|
||||
|
||||
Page 332
|
||||
|
||||
**Quotient-Remainder Theorem (Existence Part)**
|
||||
|
||||
**Proof:**
|
||||
|
||||
Let $s$ be the set of all nonnegative integers of the form
|
||||
|
||||
$$ n - dk $$
|
||||
|
||||
where $k$ is an integer. This set has at least one element. _[For if $n$ is
|
||||
nonnegative, then_
|
||||
|
||||
$$ n - 0 \cdot d = n \geq 0 $$
|
||||
|
||||
_and so $n - 0 \cdot d$ is in $S$. And if $n$ is negative then_
|
||||
|
||||
$$ n - nd = \underbrace{n}_{< 0}\underbrace{(1 - d)}_{\leq 0 \text{ since } d \text{ is a positive integer}} \geq 0 $$
|
||||
|
||||
_and so $n - nd$ is in $S$.]_
|
||||
|
||||
It follows by the well-ordering principle for the integers that $S$ contains a
|
||||
least element $r$. Then, for some specific integer value of $k$, say $q$,
|
||||
|
||||
$$ n - dq = r $$
|
||||
|
||||
_[because every integer in $S$ can be written in this form]._ Adding $dq$ to
|
||||
both sides gives
|
||||
|
||||
$$ n = dq + r $$
|
||||
|
||||
Furthermore, $r < d$. _[For suppose $r \geq d$. Then_
|
||||
|
||||
$$ n - d(q + 1) = n - dq - d = r - d \geq 0 $$
|
||||
|
||||
_and so $n - d(q + 1)$ would be a nonnegative integer in $S$ that would be
|
||||
smaller than $r$. But $r$ is the smallest integer in $S$. This contradiction
|
||||
shows that the supposition $r \geq d$ must be false.]_
|
||||
|
||||
The preceding arguments prove that there exists integers $r$ and $q$ for which
|
||||
|
||||
$$ n = dq + r \text{ and } 0 \leq r < d $$
|
||||
|
||||
_[as was to be shown.]_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue