CMSC250, Spring 2004
Homework 13 Answers
Due Wednesday, May 5 at the beginning of your discussion
section.
You must write the solutions to the problems single-sided on your own lined paper,
with all sheets stapled together, and with all answers written in sequential order or you will lose points.
- There are twelve people in a club. Each member of the club agrees to pick six people at random (they can't pick themselves)
from the club and send each
of the six people a postcard.
- Prove that there are two members of the club who exchange postcards (that is,
sends a
postcard to
and
sends a postcard to
).
Hint: Figure out the number of pairs of members of the club.
- Does the conclusion in part (a) still hold if each member only picks five others to send postcards? Why or why not?
- Answer: No. If each member only sends five postcards, then there are only
postcards put into the mail. If that happens,
then it is possible that nobody exchanges postcards.
- The members of the club set out twelve chairs in a row for them to sit in at their upcoming meeting. However,
three members are sick and have to stay home. Prove that when everyone sits down at the beginning of the meeting,
there will be a consecutive group of three chairs that are all occupied.
- Answer: There are nine members at the meeting (since three are sick), which means there will be three empty chairs. Think of these
three chairs as separating the chairs into ``groups of consecutively filled chairs.''
Since there are three empty chairs, there
are four groups of consecutively filled chairs -- we don't know how many are in each group, though; a group could
even have zero people in it. We will prove that at least
one of these groups has at least three people in it.
Let set
denote the set of nine people, so
. Let set
denote the set of groups of consecutively filled chairs,
so
. Think of a function from
to
that maps a person into the group of chairs in which they are sitting.
To use the generalized pigeonhole
principle, we must find a
to satisfy the inequality
, or equivalently,
.
The maximum value of
that makes the statement true is 2. Therefore, by
the generalized pigeonhole principle, there must be
people that are mapped into one group of consecutively filled
chairs.
- If another person gets sick, does the conclusion from part (c) still hold? Why or why not?
- Answer: No. If another person gets sick, then there are 8 members to seat in five groups of consecutively filled chairs.
But in this case, the inequality
does not hold.
- Prove that given a set of any 38 integers, there exist two in the set whose difference is divisible by 37.
- Prove that there exists a multiple of 37 whose decimal expansion contains only digits 1 and 0.
Hint: Use the same technique as problem 2.
- Answer: Consider the set
so that
contains 38 integers whose digits consist of all 1's.
By problem 2, we know there exist two integers in
whose difference is divisible by 37 -- or equivalently, whose
difference is a multiple of 37. Call these two numbers
and
, as in problem 2. So we know
is a multiple of 37.
We also know
and
consist of all 1's. Suppose
consists of
1's, and
consists of
1's, where
.
Then the quantity
will clearly consist of
1's followed by
0's.
- You are given a sequence of five positive integers:
,
,
,
, and
. Prove that either one
of them is divisible by 5, or the sum of two or more consecutive elements in the sequence is divisible by 5.
Hint: Consider the five sums
,
,
,
, and
.
Use the same technique as problem 2.
- Answer: Assume that none of the five integers is divisible by 5 (if this assumption isn't true, then one of them
is divisible by 5 and we are done). Consider the five sums stated above. Assume that none of the five sums is divisible by 5
(again, if this isn't true, then one of the sums is divisible by 5 and therefore a sequence of consecutive elements in
the sequence is divisible
by 5).
Since none of the five sums is divisible by 5, by applying the quotient-remainder theorem, there are only four possible
remainders when divided by 5. Since there are 5 sums, and
, by the pigeonhole principle, two of the sums must
have the same remainder when divided by 5. Call these two sums
and
, where
represents the sum that contains more terms.
Consider the value
. By the definition of the sums, the terms in
are a subsequence of those in
. So when we subtract
from
,
we will be left with a sequence of consecutive elements of the sequence, that by the technique of problem 2, is divisible by 5.
Furthermore, we know this sequence contains at least two
members because if it only contains one, then that violates our assumption that none of the terms are divisible by 5.
- You just finished your CMSC114 project, and it took you 9 days and 250 lines of code. Find the maximum integral value of
to make the following statement true: ``There was one day where you wrote at least
lines of code.'' Prove your answer
is correct.
- Answer: Consider a function from the 250 lines of code (set
) to the 9 days (set
). This function maps each line of code
to the day on which is was written. By the generalized pigeonhole principle, we want to find the maximum
integral value of
to satisfy the inequality
. This value is
, since
but
.
Therefore, there must have been a day when you wrote
lines of code.
- Let the function
be defined by
, and let
nonneg
be defined by
.
- Let
. Describe
: give the domain, co-domain, range, and definition of the function itself.
- Let
. Describe
: give the domain, co-domain, range, and definition of the function itself.
- Answer:
is a function from
to
defined by
.
The range of
is
nonneg.
- Given a function
and a function
, explain why you cannot compose
and
(into
)
unless the range of
is a subset of (or equal to)
.
- Answer: If the range of
is not a subset or equal to
, then
maps at least one value in
to some value that is in
, but
not in
. In other words,
.
We know that
. But the
value
cannot be computed, because the function
only accepts values from its domain,
, but as we stated before,
. Therefore, composing
and
in this case is impossible.
This document was generated using the
LaTeX2HTML translator Version 2002 (1.62)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -split 0 -nonavigation -antialias_text -antialias hw13ans
The translation was initiated by Phillip Kirlin on 2004-05-07
Phillip Kirlin
2004-05-07
Web Accessibility