MTH 244 Class 1 Notes: 1.1-First Example
MTH 244 Class 1 Notes: 1.1-First Example
Example: Suppose for a moment that you are a solider in a squadron of 8 people (including
yourself). During a battle you are cornered in a cave by a group of barbarians.
Everyone in your squadron decides they would rather die than become slaves to
the barbarians. So, your squadron arranges themselves in a circle and designates
one person as number one. Then, your squadron proceeds clockwise killing every
third person. Where should you place yourself in the circle so that you are last to
die?
Note: I realize that this is a fairly grotesque story problem to begin the semester on, but it is a
problem with a distinctly discrete flavor. It is based upon a legend about the first century
historian Flavius Josephus.
1
1 1
8 2
8 2 8 2
3
7 3 3
7 7
6 4 6 4 6 4
5
5 5
1 1 1
8 2 8 2 8 2
3 3 3
7 7 7
6 4 6 4 6 4
5 5 5
1 1
8 2 8 2
3 3
7 7
6 4 6 4
5 5
In the above diagram each person that is killed has an X on top of his or her
number. Thus, the last person to die is the person in position 7. So, if you place
yourself in position seven you will be the last to die.
Graded Example:
(a) If there are 9 people numbered one to nine standing around a circle, and every third person is
eliminated starting with person number 3, which person is the last standing?
Solution: Using a procedure similar to the most recent example one can find that the answer is
person 1.
(b) How could you use the fact that the person in position 7 is the last standing when there are
eight people, to find the answer to part (a)?
Solution: After the person in position 3 is eliminated, there are eight people still standing. We
can renumber the people that remain, and use the given fact that the person in position 7 is the
last standing in the case when there are eight people to complete the problem. The following
diagram captures this renumbering:
1 17
9 96
2 28
8 85
3 3
7 74
4 41
6
5 63 52
Note: This graded example gets across the idea of a recursive pattern which is of great
importance in discrete math.
Definition: A closed formula (or explicit formula) for a sequence is a formula where each
term is described only in relation to its position in the list.
Definition: A recursive formula for a sequence is a formula where each term is described in
relation to a previous term (or terms) of the sequence.
Notation: We usually use lower case letters to name sequences, and we use subscripts to
indicate position in a sequence. So, an would represent the nth term of some
sequence.
We see a pattern in that 3 is added each time to get to the next term. So, if we
follow this pattern, the next three terms of the sequence will be 22, 25, and 28.
In words, this recursive formula says that the first term of the sequence is 4,
and each subsequent term in the sequence can be found by adding 3 to the
previous term.
Question: Generally speaking, would you say that a closed formula for a
sequence or a recursive formula for a sequence is more powerful?
Note: When we write a closed formula for a sequence like an 3n 1 we implicitly mean
an 3n 1 for integers n 1 . However, we usually do not write the “for integers…” part,
unless we decide to begin with a subscript other than 1.
For this we simply replace n with 120 in the second part of the recursive
formula: a120 121 a119 .
Following, the same idea as in part (b), we see we must replace n with 3k 1
and we obtain: a3k 1 3k 2 a3k .
(d) Make a conjecture as to what an explicit formula for this sequence should be
(your conjecture should, at the very least, work for the first four terms).
Graded Example: For each of the following sequences of numbers, provide a recursive
formula and closed formula which describes the sequence.