X X, X X, If F (X: at We Need
X X, X X, If F (X: at We Need
Wednesday 2/20
Spring 2019 10:55 am – 12:05 pm
To prove that f is one to one, use a direct proof to show that if f (x1 ) = f (x2) then x1 = x2
Like a set, a sequence contains elements (or terms). Unlike a set, the same elements can appear
multiple times at different positions in a sequence, and order matters.i
A sequence has output that is ordered by the input (this is not an unordered set).
The position of an element in a sequence is its rank or index
Sequences may be finite or infinite.
The name of the function is often "s", and, instead of writing the outputs as s(0), s(1), s(2), etc., they are often
written using subscripts: s0, s1, s2, …, sn, sn+1, …
Example:
0, 1, 4, 9, 16, 25, …
n
0 s0 = 0
1 s1 = 1
2 s2 = 4
3 s3 = 9
4 s4 = 16
. .
. .
n sn = n2
The domain is the set of nonnegative integers n∈Znonneg
This is an infinite sequence.
This sequence can also be written in general terms: {s n=n2 }∞n=0
Example:
n
1 s1 = a
2 s2 = a
3 s3 = b
4 s4 = a
5 s5 = b
The domain of n is the set {1, 2, 3, 4, 5}
This is a finite sequence.
Example: {1, 8, 27, 64, 125} is a finite sequence. The domain is n∈Z+
Write this sequence in general terms:
{s n=n3 }5n=1 n 1 2 3
sn 1 8 27
Increasing Sequences
A sequence is said to be increasing if sn < sn+1 for all n.
{1, 3, 5, 7, 9} is an increasing sequence. It is also a nondecreasing sequence.
Decreasing Sequences
A sequence is said to be decreasing if sn > sn+1 for all n.
{25, 20, 15, 10, 5} is a decreasing sequence. It is also a nonincreasing sequence.
Subsequence
A subsequence is formed from a sequence {sn} by including some of the terms of the original sequence in the
same order and perhaps not including other terms.
Note: Technically, a sequence is a subsequence of itself unless we require it be a proper subsequence.
Example: For the sequence {1, 1, 2, 3, 5, 8, 13, 21, . . .}, we have {1, 2, 5, 13, . . .} is a possible subsequence.
Example:
0, 1, 1, 2, 3, 5, 8, 13, …
This is a sequence where the first term of the sequence is 0, the next is 1, and each one afterwards is the
sum of the two preceding terms.
(b) Can we write sn nonrecursively – without using previous elements - using n? (this is called the solution to
the sequence)
By inspection: sn = 3n
(c) Prove that this nonrecursive formula for sn is true for all n.
Recursive formula for sn = 2sn-1 – sn-2
We will show that the nonrecursive formula for sn = 3n
Assume it is true that {3n} is the solution for all terms – we have listed just a few. We are showing that
each sn = 3n
Now,
2sn-1 - sn-2 = 2[3(n - 1)] - 3(n - 2)
= 2(3n - 3) – (3n - 6)
= 6n - 6 - 3n + 6
= 3n
= sn
∞
Therefore{s n=( 3 n ) }n =2 is a solution of the recurrence relation sn = 2sn-1 – sn-2.
Done.
Product of a Sequence
∞
∞
Let { s }
n n=0 be a sequence. Then ∏ sn = s 1 * s2 * s3 * . . . is the product of the terms in the series.
n=0
Example:
Let a be the sequence defined by an = 2n – 1, n ≥ 1. Find the sum or product as indicated.
4
∑ ai =
i=1
4
i is the index or rank, 1 is the lower limit and 4 is the upper limit
∏ ai=
i=1
4
i is the index or rank, 1 is the lower limit and 3 is the upper limit