Documente Academic
Documente Profesional
Documente Cultură
21=2
2
and, for
k 1 ,
when
n=1 , assuming
n=k +1 .
2n
n! :
k 0 ,
f : R
defined by
f ( n )=n2
is written by the
list 1,4,9,16 These numbers in the list are called the terms of the sequence.
The sequence 2, 4, 8, 16, can be defined recursively like this:
k 1 ,
ak +1=2 ak
Notice that each term in a sequence beyond the first is defined in terms of the previous term.
This is called a recurrence relation, where the first term is called an initial condition.
Recurrence relations are meant to be solved, meaning that, for example, the recurrence
relation defined above has a solution of
an =2
An arithmetic sequence is when you add the same fixed number called the common difference
to the previous one. More specifically, the arithmetic sequence with first term
difference
a1=a
k 1 ,
and common
and, for
sequence is
an =a+ ( n1 ) d .
The sum of n terms of the arithmetic sequence with first term a and common difference d
is
n
S= [2 a+ ( n1 ) d ]
2
a1=a
and, for
k 1 ,
a r3 ,
an =a r
a , ar , a r 2 ,
n1
a ( 1r n )
S=
1r
The Fibonacci sequence is a famous sequence that calculates how many rabbits will produce
offspring after n months. It is a recursive sequence defined by
f 1 =1 ,
k 2 ,
f k+1=f k + f k1 .
The nth term in a Fibonacci sequence is the integer closest to the number
1 1+ 5
5 2
an =r an1 +s an2 +f ( n)
Here,
and
n . This equation is
an
an1
and
an2
appear by
themselves to the first power (hence linear, and with constant coefficients.
If
For example,
o
o
r=5 ,
is homogeneous with
s=6 , and
r=3
and
f ( n )=n
s=0
x 2rxs , which is
called the characteristic polynomial. Its roots are called the characteristic roots of the
recurrence relation.
x 5 x+6
n 2
is
an =
Where
an =r an1 +s an2 ,
x 1 and
c 1 x n1 +c 2 xn2 if x1 x 2
c1 x n+ c 2 n x n if x 1=x 2=x
x rxs
and
c 1 and
c 2 are
In regards to recurrence relations that are not homogeneous, that is they contain a
an =p n+ qn
an =r an1 +s an2 +f ( n) .
f (n) ,
an =r an1 +s an2
and
is a particular solution to the given recurrence relation, which should have a formula
| A B|=| A|+|B| A B
b)
c)
d)
| Ac|=|U| A
e)
f)
| A B|=| A|B
These relationships can be used to compute complicated subsets like the following:
o Glenys is thinking about registering for data analysis. Of the 100 people who have
registered so far, she discovers that 80 people have their own PDAs and threequarters of the group are men.
a) Estimate the number of women in the course who do not have PDAs. How
large might this number might be? How small?
b) How many of the men registered in this course could conceivably own
PDAs.
o
It is given that
M c Pc |( M P )c|=100 M P
o
The Principle of Inclusion-Exclusion is stated as follows: Given a finite number of finite sets,
A1 , A2, , An ,
A 1 A 2 An
i< j<k
A 1 A 2 An |A i|
i
i< j
is:
Ai
A 1 , A 2 , , A n , then
| A1 A 2 A n|=
i=1
The Addition Rule is given as follows: The number of ways in which precisely one of a collection
of mutually exclusive events can occur is the sum of the numbers of ways in which each event
can occur.
Events are mutually exclusive if and only if no two of them can occur together.
For example, a student who needs one course to complete her degree decides to take
either computer science or statistics and makes a lists of courses for which she is eligible.
The computer science courses might comprise the set
A 1={CS2602, CS2700, CS2721, CS2800, CS2500 } and the statistics courses the set
A 2={S2510, S2511, S3500} . There are
for a course because two sets here are disjoint: The events register for CS and register
for Statistics are mutually exclusive.
o The addition rule, however, is most often applied in situations where the individual
events (sets) are not specified (unlike above).
It is observed that if
and
A B
contains
| A1 A2 A n|=
i=1
The Multiplication Rule is given as follows: The number of ways in which a sequence of events
can occur is the product of the numbers of ways in which each individual event can occur.
For example, suppose that there are five computer science courses and three statistics
courses in which a student is eligible to enroll and that this student wishes to take a
course in each subject. There are
A set of cardinality
contains
2n
Given objects
a1
through
through
an
an
a1
2 2 2=2
and
Think of
as a set of birdhouses,
as a function that
boxes and
n>m , then at least one box contains two or more of the objects.
For example, within any group of 13 people, there must be at least two who have their
birthdays on the same month.
objects.
For example, if there are 44 chairs positioned around five tables in a room, some table
must have at least
o
44
=9 chairs around it.
5
Note that
n
n
< +1
m m
and hence
n
n
1<
m
m
x x < x+ 1 .
n
m
so fewer than
n
=n
m
objects. If all
n
1
m
and
objects.
7.1: Permutations
The solution to many counting a problems involve the product of consecutive integers. This is
often done using the relation
of consecutive integers must be limited. When that scenario occurs, we use this definition: For
integers
r >0 ,
for
and
r ,
0 r n , the symbol
P(n , r ) is defined by
P ( n ,0 )=1
and,
For example,
three factors of
In general
n 1 ,
P ( n ,r )=
find a solution.
6 ! ) and
7! )
n!
( nr ) ! . So repeating factors on the top and bottom can be canceled out to
Take this example: How many pairs of dance partners can be selected from a group of 12
women and 20 men?
o Well, the first woman can be paired with any of the 20 men, and the second women
can be paired with any of the remaining 19 men and so on. So we have:
o
P (20,12 ) =
20 !
20 ! 20 19 18 17
=
=
=20 19 18 17 10 9
8 7 6
( 2012 ) ! 8!
For example,
ab
and
ba
and
b ; 1642, 4126,
and 6241 are permutations of the symbols 1, 2, 4, and 6. These number are also examples
of 4-permutations of the symbols, 1, 2, 3, 4, 5, 6 taken four at a time.
n , r n , an r-permutation of n symbols is a
of them, that is, the arrangement of r symbols in a line in some
and
symbols is
n ! . The number of
r -permulations of
P(n , r ) .
3 !=6
permutations of
a , b , c , that is,
7.2: Combinations