Beruflich Dokumente
Kultur Dokumente
Sequences
2
Sequences
The number corresponding to position 1 is 2, which equals
21. The number corresponding to position 2 is 4, which
equals 22.
3
Sequences
4
Sequences
The k in ak is called a subscript or index, m (which may be
any integer) is the subscript of the initial term, and n
(which must be greater than or equal to m) is the subscript
of the final term. The notation
Define sequences a1, a2, a3,… and b2, b3, b4,… by the
following explicit formulas:
Solution:
6
Example 1 – Solution cont’d
8
Summation Notation
Consider again the example in which Ak = 2k represents the
number of ancestors a person has in the kth generation
back. What is the total number of ancestors for the past six
generations?
The answer is
9
Summation Notation
In 1772 the French mathematician Joseph Louis Lagrange
introduced the capital Greek letter sigma, , to denote the
word sum (or summation), and defined the summation
notation as follows:
10
Example 4 – Computing Summations
Let a1 = −2, a2 = −1, a3 = 0, a4 = 1, and a5 = 2. Compute the
following:
a. b. c.
Solution:
a.
11
Example 4 – Solution cont’d
b.
c.
12
Summation Notation
Oftentimes, the terms of a summation are expressed using
an explicit formula.
13
Example 6 – Changing from Summation Notation to Expanded Form
Solution:
14
Summation Notation
A more mathematically precise definition of summation,
called a recursive definition, is the following:
Solution:
a.
b.
16
Product Notation
17
Product Notation
The notation for the product of a sequence of numbers is
analogous to the notation for their sum. The Greek capital
letter pi, , denotes a product. For example,
18
Product Notation
A recursive definition for the product notation is the
following: If m is any integer, then
19
Example 11 – Computing Products
Compute the following products:
a.
b.
Solution:
a.
b.
20
Properties of Summations
and Products
21
Properties of Summations and Products
The following theorem states general properties of
summations and products.
22
23
Change of Variable
24
Change of Variable
Observe that
Hence
Solution:
First calculate the lower and upper limits of the new
summation:
27
Factorial and “n Choose r”
Notation
28
Factorial and “n Choose r” Notation
The product of all consecutive integers up to a given
integer occurs so often in mathematics that it is given a
special notation—factorial notation.
29
Factorial and “n Choose r” Notation
A recursive definition for factorial is the following: Given
any nonnegative integer n,
30
Example 16 – Computing with Factorials
c. d.
Solution:
a.
b.
31
Example 16 – Solution cont’d
c.
d.
32
Factorial and “n Choose r” Notation
An important use for the factorial notation is in calculating
values of quantities, called n choose r, that occur in many
branches of mathematics, especially those connected with
the study of counting techniques and probability.
a.
35
Example 17 – Solution cont’d
b.
c.
36
SECTION 5.2
Mathematical Induction I
38
Mathematical Induction I
40
Example 1 – Sum of the First n Integers
Use mathematical induction to prove that
Solution:
To construct a proof by induction, you must first identify the
property P(n). In this case, P(n) is the equation
41
Example 1 – Solution cont’d
In the basis step of the proof, you must show that the
property is true for n = 1, or, in other words that P(1) is true.
42
Example 1 – Solution cont’d
43
Example 1 – Solution cont’d
You must then show that P(k + 1) is true. What are P(k)
and P(k + 1)? P(k) is obtained by substituting k for every n
in P(n).
Thus P(k) is
44
Example 1 – Solution cont’d
Thus P(k + 1) is
or, equivalently,
45
Example 1 – Solution cont’d
46
Example 1 – Solution cont’d
1 + 2 +· · ·+ (k + 1),
which equals
(1 + 2 +· · ·+ k) + (k + 1)
47
Example 1 – Solution cont’d
48
Example 1 – Solution cont’d
Thus the two sides of P(k + 1) are equal to each other, and
so the equation P(k + 1) is true.
49
Example 1 – Solution cont’d
50
Example 1 – Solution cont’d
51
Example 1 – Solution cont’d
[We will show that the left-hand side and the right-hand
side of P(k + 1) are equal to the same quantity and thus are
equal to each other.]
52
Example 1 – Solution cont’d
53
Example 1 – Solution cont’d
54
Example 1 – Solution cont’d
55
Mathematical Induction I
56
Example 2 – Applying the Formula for the Sum of the First n Integers
Evaluate 2 + 4 + 6 +· · ·+ 500.
57
Mathematical Induction I
In a geometric sequence, each term is obtained from the
preceding one by multiplying by a constant factor.
58
Mathematical Induction I
The expanded form of the formula is
59
Mathematical Induction I
r=½
1+½+¼ = ((1/2)3 – 1)/(1/2 – 1)
= (–7/8) / (–1/2)
= (7*2) / 8
= 14 / 8
=7/4
60
Example 3 – Sum of a Geometric Sequence
Solution:
In this example the property P(n) is again an equation,
although in this case it contains a real variable r:
61
Example 3 – Solution cont’d
In the basis step, you must show that P(0) is true; that is,
you show the property is true for n = 0.
62
Example 3 – Solution cont’d
63
Example 3 – Solution cont’d
Then you show that P(k + 1) is true; that is, you show the
property is true for n = k + 1.
64
Example 3 – Solution cont’d
Or, equivalently,
65
Example 3 – Solution cont’d
67
Example 3 – Solution cont’d
68
Example 3 – Solution cont’d
[We will show that the left-hand side of P(k + 1) equals the
right-hand side.] The left-hand side of P(k + 1) is
69
Example 3 – Solution cont’d
71
A Problem with Trominoes
A particular type of polyomino, called a tromino, is made up
of three attached squares, which can be of two types:
73
A Problem with Trominoes
74
A Problem with Trominoes
Proof (by mathematical induction):
Let the property P(n) be the sentence
If any square is removed from a 2n 2n checkerboard,
then the remaining squares can be completely
covered by L-shaped trominoes.
76
A Problem with Trominoes
P(k) is the inductive hypothesis.
[We must show that P(k + 1) is true. That is:] We must
show that
77
A Problem with Trominoes
Consider a 2k+1 2k+1 checkerboard with one square
removed. Divide it into four equal quadrants: Each will
consist of a 2k × 2k checkerboard.
83
Strong Mathematical Induction
85
Example 1 – Divisibility by a Prime
Prove: Any integer greater than 1 is divisible by a prime
number.
Solution:
The idea for the inductive step is this: If a given integer
greater than 1 is not itself prime, then it is a product of two
smaller positive integers, each of which is greater than 1.
87
Example 1 – Solution cont’d
88
Example 1 – Solution cont’d
89
Example 1 – Solution cont’d
90
Applying Strong Mathematical Induction
Strong mathematical induction makes possible a proof of
the fact used frequently in computer science that every
positive integer n has a unique binary integer
representation.
One informal way is to write the first few terms with the
expectation that the general pattern will be obvious.
95
Defining Sequences Recursively
The third way to define a sequence is to use recursion.
96
Example 1 – Computing Terms of a Recursively Defined Sequence
Solution:
97
Example 1 – Solution cont’d
98
Examples of Recursively Defined Sequences
99
Example 5 – The Tower of Hanoi
In 1883 a French mathematician, Édouard Lucas, invented
a puzzle that he called The Tower of Hanoi (La Tour
D’Hanoï).
100
Example 5 – The Tower of Hanoi cont’d
Figure 5.6.2
101
Example 5 – Solution
An elegant and efficient way to solve this problem is to
think recursively.
102
Example 5 – Solution cont’d
103
Example 5 – Solution cont’d
Position after Moving the Bottom Disk from A to C Position after Transferring k – 1 Disks from B to C
(c) (d)
Moves for the Tower of Hanoi
Figure 5.6.3
105
Example 5 – Solution cont’d
one to transfer them off the bottom disk to free the bottom
disk so that it can be moved and another to transfer them
back on top of the bottom disk after the bottom disk has
been moved to pole C.
106
Example 5 – Solution cont’d
It follows that
107
Example 5 – Solution cont’d
Because the disks on the bottom are all larger than the
ones on the top, the top disks can be moved from pole to
pole as though the bottom disks were not present.
108
Example 5 – Solution cont’d
110
Example 5 – Solution cont’d
113
Recursive Definitions of Sum and Product
114
Example 9 – A Sum of Sums
Prove that for any positive integer n, if a1, a2, . . . , an and
b1, b2, . . . , bn are real numbers, then
Solution:
The proof is by mathematical induction. Let the property
P(n) be the equation
115
Example 9 – Solution cont’d
But
[We will show that the left-hand side of this equation equals
the right-hand side.]
117
Example 9 – Solution cont’d
118
Example 9 – Solution cont’d
119