Docsity

Constructing Proofs - Sequence and Summations - Notes | CS 1050, Study notes of Computer Science

Partial preview of the text

Download Constructing Proofs - Sequence and Summations - Notes | CS 1050 and more Study notes Computer Science in PDF only on Docsity!

Sequences & Summations

CS 1050Rosen 1.

Sequence

•^

A sequence is a discrete structure used to representan ordered list.

-^ A sequence is a function from a subset of the setof integers (usually either the set {0,1,2,.. .} or{1,2, 3,.. .}to a set S. -^ We use the notation a

to denote the image of then

integer n. We call a

a term of the sequence.n

•^

Notation to represent sequence is {a

}n

Common Sequences

a, a+d, a+2d, a+3d, a+4d, …1, 4, 9, 16, 25,.. .1, 8, 27, 64, 125,.. .1, 16, 81, 256, 625,.. .2, 4, 8, 16, 32,.. .3, 9, 27, 81, 243,.. .1, 2, 6, 24, 120,...

Arithmetic^2 n^3 n^4 n n 2 n 3 n!

Summations

•^

Notation for describing the sum of the termsam

, a m+

,.. ., a

from the sequence, {an

}n n

am

+a

m+

+... + a

=n

aj j=m

•^

j is the index of summation (dummy variable)

-^ The index of summation runs through all integersfrom its lower limit, m, to its upper limit, n.

Summations follow all the rules

of addition!

=^

=

n j

n j

cj

j

c^

1

1

c(1+2+…+n) = c + 2c +…+ nc

=

=

  • =

=

=

n k

k

n

n k

k

n

n k

k

n j

j

n j

j

ar

a

ar

ar

ar

ar

ar

ar

r

0

1

1

1

1 1

0

1

0

Telescoping Sums

0

1

2 3

1 2 0 1 1 1

)

( ... )

(

)

( )

(

a a a a a a a a a a a a n

n n

j

n j

j

− = − + + −

  • − + − = − ∑

−

−

=

16 0 16 4

) 3 (^4) ( ) 2 (^3) ( ) 1 (^2) ( ) 0 (^1) (

]) 1 ( [ 2

2 2 2 2 2 2 2 2

2

4 1

2

= − =

− + − + − + −

=

− − ∑=

k k Example k

Proof

(cont.)

(^

)^

(^

)

∑^

∑^

=

=

n k

n k

k

k k^

1 2

1

2

]

[

(^

)^

(^

)

∑^

∑^

=^

=

=

n k

n k

n k

k

k k^

1

1

2

1

2

]

[

∑^

−^

n = k

n k

n^

1 2 2

+^

n = k

k

n n^

1

2

1

n n n k k

Closed Form Solutions to Sums ∑

n = j

nn n

j 0

2

2 2 (^20)

n

nn

n

n j j

(^

) 4

2 (^31)

n n n k k

0

=

r

r

a ar ar

n

n k

k

Cardinality

•^

Earlier we defined cardinality of a set as thenumber of elements in the set. We can extend thisidea to infinite sets.

-^ The sets A and B have the same cardinality if andonly if there is a one-to-one correspondence fromA to B. -^ A set that is either finite or has the samecardinality as the set of natural numbers is called countable.

A set that is not countable is called

uncountable.