Docsity

Sequences-Discrete Mathematics-Lecture Handout, Exercises of Discrete Mathematics

Toggle sidebar
bg1
MTH001 – Elementary Mathematics
LECTURE # 13
Sequences
UENCE
EQS
sequence is just a list of elements usually written in a row.
PLES:-
, …
, 16, 25, …
-1, 1, -1, 1, -1, …
OTE:-
reads “and so forth”
A
EXAM
1. 1, 2, 3, 4, 5
2. 4, 8, 12, 16, 20,…
3. 2, 4, 8, 16, 32, …
1/3, 1/4, 1/5, … 4. 1, 1/2,
4, 95. 1,
. 1,6
N
The symbol “…” is called ellipsis, and
FORMAL DEFINITION
A sequence is a function whose domain is
n .
the set of integers greater than or equal to a particular
0
this set is the set of Natural numbers {1, 2, 3, …} or the set of whole numbers {0, 1, 2, 3, …}.
OTATION:-
e use the notation an to denote the image of the integer n, and call it a term of the sequence. Thus
a
1, a2, a3, a4 …, an, …
present the terms of a sequence defined on the set of natural numbers N.
ote that a sequence is described by listing the terms of the sequence in order of increasing
ubscripts.
integer
suallyU
N
W
re
N
s
FINDING TERMS OF A SEQUENCE GIVEN BY AN EXPLICIT FORMULA
s how the values of a
An explicit formula or general formula for a sequence is a rule that show
epends on k.
k
e a , a , a , …
The first four terms of the sequence are:
XAMPLE:-
rite the first four terms of the sequence defined by the formula
bj = 1 + 2j, for all integers j ≥ 0
OLUTION:-
0 = 1 + 20 = 1 + 1 = 2
1 = 1 + 21 = 1 + 2 = 3
4 = 5
8 = 9
g infinite number of
alues.
XERCISE:-
ompute the first six terms of the sequence defined by the formula Cn = 1+ (-1)
≥ 0
d
EXAMPLE:-
efine a sequenc by the explicit formula
D1 2 3
for all integers 1
k
k
ak=≥
1
k+
12 3
11 31 4
a==
+
4
11 22 33
,,
2 21 3
44
41 5
a a
and fourth term is a
== = =
++
==
+
E
W
S
b
b
b2 = 1 + 22 = 1 +
3 = 1 + 23 = 1 +
b
REMARK:-
he formula bj = 1 + 2 j , for all integers j ≥ 0 defines an infinite sequence havin
T
v
E
C
n for all integers n
Virtual University of Pakistan Page 81
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Sequences-Discrete Mathematics-Lecture Handout and more Exercises Discrete Mathematics in PDF only on Docsity!

LECTURE # 13

Sequences

SEQUENCE

sequence is just a list of elements usually written in a row. PLES:- , …

OTE:-

reads “and so forth”

A

EXAM

N

The symbol “…” is called ellipsis, and FORMAL DEFINITION A sequence is a function whose domain is n.

the set of integers greater than or equal to a particular 0 this set is the set of Natural numbers {1, 2, 3, …} or the set of whole numbers {0, 1, 2, 3, …}. OTATION:- e use the notation an to denote the image of the integer n, and call it a term of the sequence. Thus a 1 , a 2 , a 3 , a 4 …, an , … present the terms of a sequence defined on the set of natural numbers N. ote that a sequence is described by listing the terms of the sequence in order of increasing ubscripts.

integer Usually N W

re N s FINDING TERMS OF A SEQUENCE GIVEN BY AN EXPLICIT FORMULA An explicit formula or general formula for a sequence is a rule that show s how the values of a epends on k.

k

e a , a , a , …

The first four terms of the sequence are:

XAMPLE:-

rite the first four terms of the sequence defined by the formula bj = 1 + 2j, for all integers j ≥ 0 OLUTION:- 0 = 1 + 2^0 = 1 + 1 = 2 1 = 1 + 2

g infinite number of alues.

XERCISE:- ompute the first six terms of the sequence defined by the formula Cn = 1+ (-1) ≥ 0

d EXAMPLE:- D efine a sequenc 1 2 3 by the explicit formula

k^ for all integers^1

k

a = k ≥

k + 1

a 1 1 1 2 3 = 3 + 1 = 4

4

a a

and fourth term is a

+ E W S b b

b 2 = 1 + 2^2 = 1 + b 3 = 1 + 2^3 = 1 + REMARK:- T he formula bj = 1 + 2 j^ , for all integers j ≥ 0 defines an infinite sequence havin v

E C n (^) for all integers n

SOLUTION :-

0 = 1 + (-1)^0 = 1 + 1 = 2^ C 1 = 1 + (-1)^1 = 1 + (-1) = 0

2 = 1 + 1 = 2 C

4 = 1 + 1 = 2 C

EMARK:-

)If n is even, then Cn = 2 and if n is odd, then Cn = 0 uence oscillates endlessly between 2 and 0. )An infinite sequence may have only a finite number of values. XAMPLE:- rite the first four terms of the sequence defined by

OLUTION:-

REMARK: A sequence whose terms alternate in si n is called an alternating sequence. EXERCISE:- Find explicit formulas for sequences with the initial terms given:

  1. 0, 1, -2, 3, -4, 5, …

OLUTION:-

C = n (n + 1) for a

C

C

C

R

Hence, the seq ( E W

for all integers 1

n n

n

C n

n

S

1 2 3 1 2 3 4 4

C C C

And fourth term isC

g

SOLUTION:-

an = (-1) n+1n for all integers n ≥ 0

SOLUTION:-

for all integers 1

k 1

b n

k k

S

n^ ll integers n^ ≥^1

  1. 1/4, 2/9, 3/16, 4/25, 5/36, 6/49, … SOLUTION:-

2 fo

i ( i +1)

r all integers 1

i

d = i ≥

OR

d j ( j +2) 2 for all integers j

j +

ARITHMETIC SEQUENCE

A sequence in which every term after the first is obtained from the preceding term by adding a r is called an arithmetic sequence or arithmetic progression (A.P.) e of any two consecutive terms is called the common ., commonly denoted by “d”.

constant numbe The constant number, being the differenc difference of A.P EXAMPLES:-

  1. 5, 9, 13, 17, … (common difference = 4)

Subtracting (1) from (2), we get, 10 = 5d ⇒ d = 2 Substituting d = 2 in (1) we have 7 = a + 2(2) which gives a = 3 hus, an = a + (n - 1) d a = 3 + (n - 1) 2 (using values of a and d) of 36th term is

= 3 + 70 = 73 SEQUENCE

T

n Hence the value a 36 = 3 + (36 - 1) 2

GEOMETRIC

m after the first is obtained from the preceding term by multiplying it ith a constant number is called a geometric sequence or geometric progression (G.P.) he constant number, being the ratio of any two consecutive terms is called the common ratio of the .P. commonly denoted by “r”. XAMPLE:-

. 1, 2, 4, 8, 16, … (common ratio = 2) . 3, - 3/2, 3/4, - 3/8, … (common ratio = - 1/2) . 0. 1, 0. 01, 0. 001, 0. 0001, … (common ratio = 0.1 = 1/10) ENERAL TERM OF A GEOMETRIC SEQUENCE:

A sequence in which every ter w T G E 1 2 3 G

et a be the first tem and r be the common ratio of a geometric sequence. Then the sequence is a, ar, r 2 , ar 3 , … ai , for i ≥ 1 represent the terms of the sequence, then a 1 = first term = a = ar1- a 2 = second term = ar = ar2- a 3 = third term = ar^2 = ar3- ………………

integers n ≥ 1

MPLE:- ind the 8th term of the following geometric sequence 4, 12, 36, 108, …

a = = 3

a 8 = value of 8th term =?

ince an = arn-1; n ≥ 1 a 8 = (4)(3)8- = 4 (2187) = 8748 XAMPLE:-

an = value of the nth term = 1/ n = term number =? n-1 (^) n ≥ 1

L

a If

an = nth term = arn-1; for all

EXA F

SOLUTION:- Here first term = 4 r = common ratio = n = term number = 8

S

E

Which term of the geometric sequence is 1/8 if the first term is 4 and common ratio ½ SOLUTION:- Given a = first term = 4 r = common ratio = 1/

Since an = ar

1

1

5 1

n

n

n

n n

−

−

−

8 ⎜⎝^2 ⎟⎠

Hence 1/8 is the 6th term of the given G.P.

tric sequence with positive terms whose second term is 9 and

OLUT ON:- n ratio of the geometric sequence. Then an = ar n-1^ n ≥ 1 ow a 2 = ar 2- 9 = ar………………….(1) lso a 4 = ar4- 1 = ar 3 …………………(2) ividing (2) by (1), we get,

ING

EXAMPLE:-

Write the geome fourth term is 1. S I Let a be the first term and r be the commo

N ⇒ A

D

Substituting r = 1/3 in (1), we get

rejecting

ar

ar

r r

2

⇒ = r

Hence the geometric sequence is

a

a

= ⎛^ ⎞

⇒ = × =

SEQUENCES IN COMPUTER PROGRAMM

ta type in computer programming consists of finite sequences known as one- e variable in which a sequence of variables may be stored.

ts in a class may be represented by an array of k elements “name” as: name[1], name[2], …, name[k-1]

An important da dimensional arrays; a singl EXAMPLE:- The names of k studen name [0],