Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Anna Burago
Mathematical Circle
Diaries, Year 2
Complete Curriculum for Grades 6 to 8
Mathematical Circles Library
Mathematical Circle
Diaries, Year 2
Complete Curriculum for Grades 6 to 8
Anna Burago
Berkeley, California
Advisory Board for the MSRI/Mathematical Circles Library
Titu Andreescu Tatiana Shubin (Chair)
David Auckly Zvezdelina Stankova
Hélène Barcelo James Tanton
Zuming Feng Ravi Vakil
Tony Gardiner Diana White
Nikolaj N. Konstantinov Ivan Yashchenko
Andy Liu Paul Zeitz
Alexander Shen Joshua Zucker
Series Editor: Maia Averett, Mills College.
Edited by Nelli Tkach and Maia Averett
This volume is published with the generous support of the Simons Foundation
and Tom Leighton and Bonnie Berger Leighton.
Copying and reprinting. Individual readers of this publication, and nonprofit libraries acting
for them, are permitted to make fair use of the material, such as to copy select pages for use
in teaching or research. Permission is granted to quote brief passages from this publication in
reviews, provided the customary acknowledgment of the source is given.
Republication, systematic copying, or multiple reproduction of any material in this publication
is permitted only under license from the American Mathematical Society. Requests for permission
to reuse portions of AMS publication content are handled by the Copyright Clearance Center. For
more information, please visit www.ams.org/publications/pubpermissions.
Send requests for translation rights and licensed reprints to reprint-permission@ams.org.
c 2018 by Anna Burago. All rights reserved.
Printed in the United States of America.
∞ The paper used in this book is acid-free and falls within the guidelines
established to ensure permanence and durability.
Visit the AMS home page at http://www.ams.org/
Visit the MSRI home page at htpp://www.msri.org/
10 9 8 7 6 5 4 3 2 1 23 22 21 20 19 18
Contents
Acknowledgments xiii
Preliminaries 1
Mathematical Circles 1
A Few Words about This Book 2
Potential Students 3
Curriculum 3
v
vi Contents
This book would not have been possible without the help, support, and
encouragement of many great people whom I have the fortune to know. I
am happy to thank some of them here.
I would like to start by expressing gratitude to my entire family—my
husband, my children, and my mother—for their support and for giving me
an opportunity to spend so much time on this project.
Special thanks go to my husband, Andrei, whose contribution is invalu-
able. He is a mathematical circles expert and enthusiast, and we often teach
together. The ideas and presentational approaches for many of the lessons
in this book have been polished through our endless discussions, and many
problems that you will encounter are his creations or translations. His sup-
port and encouragement carried this project forward. While I was working
on it, he took on whatever role was desperately needed to be filled at the
moment: the family cook, a technical expert, an editor, and a psychologist.
I will never be able to express in full my gratitude to Nelli Tkach, my
longtime friend, editor, writing coach, and a person who strives to make the
world better. She guided me through both this volume and Mathematical
Circle Diaries, Year 1: together, we read through every page, and under her
guidance, my cluttered and messy texts gained flow and power.
I am very thankful to my Prime Factor partner, Luba Malkina. She is
wise, careful, and thoughtful; conversations with her enlighten and give new
perspectives on teaching mathematics, working with children, and on the
constant rediscovery of meaning in the profession that we both chose. She
also shouldered a lot of the Prime Factor daily operations, giving me time
to work on this project.
I am happy that so many young people, including my children and my
ex-students, contributed their editing and technical expertise to the book:
Bella Burago, Alex Burago, Tim Burago, Sasha Nalimova, Anna Meleschuk,
Anna Ipatova, and many others.
I am thankful to the American Mathematical Society (AMS) and the
Mathematical Sciences Research Institute (MSRI) (and all the individuals
involved) for their continuous support of the mathematical circles movement.
Without their efforts, such a rapid growth in the popularity of math circles
xiii
xiv Acknowledgments
Mathematical Circles
What is mathematics?
Some people would say that it is a collection of useful knowledge that
gives us tools for solving challenging technical problems. Indeed, empowered
with mathematical skills, an engineer can evaluate the stability of a bridge,
and a rocket scientist can design the trajectory for a Mars rover.
And, undoubtedly, students attending a circle learn their share of math-
ematical knowledge. This knowledge is precious by itself because children
learn material that is typically not covered at school and that is relevant to
a broad range of modern professions.
However, mathematics is much more than a collection of technical knowl-
edge. It is also a unique way of thinking about the world. Thinking mathe-
matically is about analyzing why and how, breaking complex problems apart,
spotting connections, finding common patterns, making predictions, creating
logical arguments, and coming up with new ideas.
And mathematical circles are places where kids get exposed to this view
of the world.
Therefore, the benefits of studying in a circle are much broader than
just the expansion of factual knowledge. Students gain new ways of thinking
about mathematics: they learn to build arguments, to give proofs, to analyze
from different points of view, to make connections across topics, to generate
ideas, and to look for their answers.
This analytical approach to learning and problem solving is universally
important. It is valuable not only for mathematicians but also for scientists,
programmers, engineers, and business leaders. Moreover, the same set of
thinking skills—an ability to analyze and critically process information, to
reason, and to problem-solve—is crucial for everyday life as well. It helps to
overcome biases and prejudices, to navigate in the ocean of information that
surrounds us, to develop one’s judgments and opinions.
Let’s mention a couple more benefits of studying in a mathematical circle.
A circle serves as a place where mathematically motivated students can meet
1
2 Preliminaries
Potential Students
The material is suitable for a child who has had some previous math circle
experience. However, things do not always work as planned: new, inex-
perienced students might join your class anytime. Also, children have this
remarkable talent for forgetting things—you might end up with returning
students who have a vague memory of this or that topic. Therefore, the
book starts with a review of the key ideas and concepts from the first year.
The topics in Year 2 build upon the themes presented in Year 1 and are
preceded by brief reviews of these themes as well.
The book is written with 6th–8th graders in mind. However, many topics
and problems will be interesting and challenging to older students as well.
The level of the classroom discussions can be adjusted to add more or less
complexity to a lesson. Also, the problem sets are constructed in such a way
that they will be appealing to students of various levels—both to beginners
and to more advanced pupils. Each set is composed of a mix of easier and
more complex problems. Every problem set contains additional problems
that can be incorporated into a curriculum for a more advanced group. All
problem sets are accompanied by solutions. Easy-to-print problem sets can
be found on the book’s website: www.ams.org/bookpages/mcl-20.
Curriculum
The material presented in the book is based on the curriculum that has been
taught for many years in Seattle-area mathematical circles: Prime Factor
Math Circle, Northwest Academy of Sciences, and Robinson Center for
Young Scholars at the University of Washington. In the Acknowledgments,
the author personally thanked the teachers who contributed their materials
to making this book happen.
This curriculum has been time-tested, teacher-tested, and child-tested.
Graduates from our first circles, who studied with us for many years, have
already turned into adults establishing their professional careers. They
can now look back and judge which aspects of their school-age education
impacted their lives in a significant way.
We asked several of our graduates to comment on how math circle
experiences shaped them. Here is what one of them said: “My time in
Math Circle was extremely valuable. Not only did I enjoy the circle itself (the
people, the problems, the contests), but it nurtured my mind in a way that has
helped me beyond the circle. Thinking about math in a rigorous proof-based
4 Preliminaries
Session Plans
Introduction
This book is about the art and craft of teaching a mathematical circle. It
contains a collection of math circle materials and the know-how that has been
accumulated during many years of teaching extracurricular mathematics to
middle-school students.
The book has four parts. The first part, which contains a full-year cur-
riculum for a middle-school mathematical circle, is composed of 29 lessons.
A typical lesson includes a detailed discussion of some mathematical topic
and a set of problems to work on. Some lessons are organized as math games,
tournaments, and Olympiads.
The second part of the book is devoted to math entertainment: it de-
scribes contests and games that can be used to make your mathematical
circle more dynamic.
The third part discusses the principles of teaching in a mathematical
circle.
The last part contains hints, answers, and solutions.
Finally, the appendix contains a blank table for converting decimal to
binary. This goes along with Session 6.
The format of the book is somewhat unusual. Some of the lessons are
presented as transcripts of actual sessions that include students’ questions,
teachers’ comments and observations, and so on. In my opinion, this format
would help the reader appreciate the fun and joy of a math circle lesson.
Additionally, some lessons come with sets of exercises that give students
extra practice in the core problem-solving techniques presented in class.
Typical examples of such topics are divisibility, remainders, combinatorics,
and graph theory.
Finally, some of the lessons include additional problems, which can be
used for practice, for Olympiads, etc.
Easy-to-print problem sets can be found on the website that accompanies
the book: www.ams.org/bookpages/mcl-20.
Each lesson in this book is intended to be presented during an hour-and-
a-half or a two-hour class. (This time includes lecture, time for independent
problem solving, and discussion of the solutions to homework problems.)
However, all students are different: for more advanced groups, you may
do with a shorter lesson. For a group of younger students, you may need to
present a single lesson over the course of two lectures or skip some of the
more advanced material.
Session 1:
Checkerboard Problems
1.1. Introduction
During the first lesson, it is a good idea to spend some time on introducing
yourself and getting acquainted with your pupils.
If you have an extra 10 minutes to spare, you can play a short game to
break the ice. For example, it could be “Two Truths and a Lie”. In this
9
10 Session 1: Checkerboard Problems
game, everyone must tell the class three facts about himself or herself: two
truths and a lie. Others must guess which facts are true.
For example, the teacher would start the game by introducing herself and
stating: “I own a ginger cat named Sugar Puff; every day I eat one Hi-Chew
candy; I can juggle up to 5 objects.” Students would then try to guess which
facts are true. Others would continue the game by taking turns.
You can follow the game with a short talk about your plans for the math
circle: what are you going to teach, how the lessons will be organized, how
a math circle is different from school, etc.
For Teachers: Before we move on, let me remind you that some of
the discussions in the book are presented as transcripts of actual circle
sessions. They may include students’ questions, teachers’ answers, and
so on.
Problem 2. Now, each child receives a sheet with 6 more puzzles and
starts working on them.
a) b) c)
d) e) f)
arguments are far from perfect. First, what if we missed a solution because
we failed to notice some tricky way to take a turn? Moreover, the argument
is picture-dependent: every time we choose a new pair of rooms, we need
to analyze all possible paths all over again. Can’t we come up with some
explanation that would be more universal?
A student has an interesting observation: if we take the shortest route
from the first to the last room and pass through an even number of empty
rooms, the puzzle can be solved; if we pass through an odd number of rooms,
it cannot. This observation seems to work: in (a) we pass through 6 rooms,
in (b)—through 0, in (c)—through 3, in (e)—through 5 rooms. However,
this is not a proof yet; so far, it is just an observation that happens to be
correct for several specific puzzles. Is there a way to prove that this pattern
is always true? We do need an insight. How about coloring the rooms in a
checkerboard pattern?
I hand out new copies of the same puzzle set. This time, all 6 maps have
the checkerboard coloring. (See the picture below.) The children copy their
solutions to these colored maps. Could they spot some pattern?
a) b) c)
d) e) f)
Indeed, the rooms along a route always alternate in color. Therefore, all
the odd-numbered rooms must be of one color, and all the even-numbered
rooms—of the other. The castle has 24 rooms altogether; thus, a path should
be 24 rooms long. However, 24 is an even number. Therefore, the color of
1.3. Checkerboard Problems 13
the last room will always be different from the color of the first room. (See
the picture below.) That explains why (c), (e), and (f) are impossible.
Our solution is short and elegant. Any other solution would have been
way more complicated. For example, if we were trying to eliminate all
possible routes by smart trial and error, our solution would have been time-
consuming. Moreover, our solution is universal: we can use the same ap-
proach for bigger castles as well!
For Teachers: A careful reader has probably noticed that we did not
answer another important question. We proved that some positions
are impossible; however, we did not prove that all other positions are
possible. Indeed, is it true that for any pair of rooms of different colors
the puzzle has a solution? While the answer is positive, the proof is
somewhat difficult. Therefore, we are skipping it for now.
For Teachers: While the children are working on the in-class prob-
lems, walk around checking their solutions and helping as needed. For all
these problems, coloring is a pathway to an efficient solution. Therefore,
whenever students steer toward a trial and error approach, remind them
of the ideas that were discussed at the beginning of the session. Finish
the lesson by discussing solutions.
14 Session 1: Checkerboard Problems
Problem 2. Can you cut this hexagon-shaped cake into 23 identical pieces?
(All cuts should follow the grid lines.)
Chess Chess
Knight Cavalier
Problem 3. The Triangular Castle (see the picture below) has triangular
rooms and a door in each of its interior walls. A tour guide wants to trace
a route through this castle that would not visit any room more than once.
What is the maximum number of rooms one can visit on such a tour? (A
tour can start and end in any two rooms.)
16 Session 1: Checkerboard Problems
Integral ➩
Square ➩ Pi Cantina
(a) Can you walk from the Integral Square to the Pi Cantina, visiting
each plaza exactly once?
(b) Can you walk from the Integral Square to the Prime Factor Chapel,
visiting each plaza exactly once?
For each part, either present the route or explain why it doesn’t exist.
Problem 4. Someone has put a rectangular playing card face down on the
table. You can flip the card over one of its edges as many times as you want.
Can you end up with the card sitting face up on the same spot?
Session 2:
Review: Math Logic and Other
Problem-Solving Strategies
The goal of this session is to remind the students about several fundamental
problem-solving techniques that they learned during the Year 1 circle. For
those kids who are joining the circle this year, this lesson will serve as a brief
crash course into some of the key topics and problem-solving strategies that
we have studied. We will discuss logic, parity, and some types of proofs.
Warm-up 1. Two residents of the Knights and Liars Island, Rachel and
Emma, are introducing themselves to you.
“At least one of us is a Liar,” says Rachel.
Can you figure out who is who?
Warm-up 1 Discussion. Since we don’t know who each girl is, let’s assume
that Rachel is a Knight. If she is a Knight, she has to tell the truth, making
one of the girls a Liar. Since Rachel is a Knight, Emma must be the Liar.
We have found an answer, but does it mean that this problem is solved?
No, it is not—we have found one solution; however, other solutions may exist
as well.
19
20 Session 2: Review: Math Logic and Other Problem-Solving Strategies
Assume now that Rachel is a Liar. In this case, the phrase “At least
one of us is a Liar” should be false. So, both Rachel and Emma must be
Knights. However, this scenario makes Rachel a Knight and a Liar at the
same time. Our assumption leads to nonsense; therefore, Rachel cannot be
a Liar. Finally, the problem is solved: we found the answer and proved that
no other answers could be found. All possible cases have been covered.
Another group of people that we occasionally bump into on the island are
tourists—the people who come to visit. As most regular people do, tourists
sometimes tell the truth and sometimes tell lies.
Warm-up 2. Once upon a time, on an island of Knights and Liars, you
met a boy who told you that he was a Liar. Is this boy an islander or a
tourist?
Warm-up 2 Discussion. Can this boy be a Knight? The answer is neg-
ative: a Knight would never lie to you. Can he be a Liar? No, because a
Liar would never tell you the truth about himself. Thus, the boy is a tourist
(and he chose to tell you a lie).
Warm-up 3. While visiting the Knights and Liars Island, you (a tourist)
come to a party. Every single person at this party states that there is at
least one Liar at the party. How many Knights, Liars, and tourists are at
this party?
Warm-up 3 Discussion. Can there be a Liar at this party? No, since a
Liar cannot tell the truth. Thus, this is a party of Knights and tourists. How
many Knights could possibly be there? Everyone states that there is at least
one Liar in the room. But we already know that there are none! A Knight
cannot lie; therefore, there must be no Knights. Thus, this is the party of
tourists.
For Teachers: Present the problems one by one on the board. Encour-
age the students to generate ideas for solutions. Sum up the ideas and
round up the discussion of each problem by presenting the complete
solution. Also, remember that the students come from very different
math backgrounds. Try to get input from everybody, and make sure
that everyone understands all the steps of the solutions.
We start with a core topic from last year, parity (the property of a
number to be odd or even). Parity is a very simple idea; however, it generates
a variety of cool problem-solving techniques.
Problem 1. A row of 20 zapberry bushes grows in Ella’s garden. Every
bush has either 1 more or 1 fewer berry than the bush to the left of it. Before
leaving for a party, Ella’s stepmother ordered her to count all the berries on
all the bushes. Friendly mice, who wanted to help Ella, counted the berries
for her: their total was 99. Should Ella trust the mice or would it be better
to go and count the berries herself?
Problem 1 Discussion. The numbers of berries on any two bushes next to
each other differ by 1; thus, they must have different parity. So, the bushes
with odd and even numbers of berries alternate. It follows that 10 bushes
have even numbers of berries on them, and 10—odd. A sum of 10 even
numbers and 10 odd numbers must be an even number. Therefore, the total
number of berries can never be equal to the odd number 99.
Problem 2. Martian men have 3 heads and 11 legs, Martian women have
7 heads and 5 legs, and Martian babies have 1 head and 3 legs. A group of
Martians are dancing around a spaceship. Can they have 1,001 heads and
1,000 legs altogether?
Problem 2 Discussion. The problem uses the fact that the sum of an odd
number of odd numbers is always odd. Notice that each Martian (a man,
a woman, a baby) has an odd number of heads and an odd number of legs.
Now let’s prove that the total number of heads and the total number of legs
in any group of Martians should have the same parity.
Indeed, if the total number of Martians were even, then both the total
number of heads and the total number of legs would be even (the sum of an
even number of odds). For the same reason, if the total number of Martians
were odd, then both the total number of heads and the total number of legs
22 Session 2: Review: Math Logic and Other Problem-Solving Strategies
would have also been odd. However, 1,001 and 1,000 are of different parity,
so they cannot stand for the number of heads and the number of legs.
In all the problems we have discussed so far, we argued that a specific
example cannot prove a general case; therefore, such an example does not
constitute a solution. So, can a specific example ever prove a problem? Yes,
sometimes it can. Take a look at these two problems:
Problem 3. Nathaniel states that (3, 5), (5, 7), (11, 13), and (17, 19) are
the only pairs of prime numbers that differ by 2. Is he correct?
Problem 3 Discussion. The example (29, 31) proves that Nathaniel is not
right.
- Next, we should prove that the answer 9 works. If fewer than 2 pencils
out of 9 happen to be red, then more than 7 pencils must be blue, which is
impossible. Also, if fewer than 3 pencils happen to be blue, then more than
6 pencils must be red, which is impossible as well.
Finally, it is time for independent problem solving.
(b) What is the biggest number of pencils you could take, without
looking, so that you leave at least 1 pencil of each color?
(c) What is the smallest number of pencils you could take, without
looking, so that you leave not more than 6 blue pencils?
Problem 6. Fred Allstar’s car is equipped with a high-precision cruise
control. Fred was driving his car at 55 mph when he resolved to test it. He
decided that he would change his speed by 1 mph after each minute, either
accelerating or slowing down. Can Fred come to a complete stop after 100
minutes of driving in this fashion?
Problem 7. A policeman lives in the corner house of a town. (See the town
map below.) Every night he has to patrol the streets of his hometown. The
policeman wants to plan his patrol route so that he walks every street (maybe
more than once) and returns home. What is the length of the shortest
possible route?
Problem 8. There are 8 jars of strawberry jam, 7 jars of apricot jam, and
5 jars of sour cherry jam in the pantry. What is the biggest number of jars
you could take, without looking, in such a way as to leave at least 4 jars of
jam of one kind and at least 3 jars of another kind?
Problem 9. Six monks entered a temple leaving their shoes by the doors.
(The shoe sizes of all monks were different.) The monks were leaving the
temple one by one, at night. Some of them, instead of putting their own
shoes on, were putting bigger shoes on. What was the greatest possible
number of monks that had to leave barefoot? (A monk would leave barefoot
if all the shoes that are left are too small.)
Session 3:
Invariants
does not use any external energy—not from the sun, the wind, or a chemical
reaction. For many centuries, great minds and common minds alike have
been preoccupied with the idea of perpetual motion. For example, Leonardo
Da Vinci worked on a perpetual motion machine and left us several drawings
with designs of it. A lot of people spent a good chunk of their lives trying
to create the device, believing that they are almost there. Proposals for
perpetual motion machines became so common that the United States Patent
and Trademark Office refused to grant patents without a working model of
such a machine. However, no one has been able to come up with such a
model so far.
Now, the question is why aren’t scientists and inventors of our time
obsessed with perpetual motion? The answer is that the scientific community
has come up with a proof that such a machine is impossible. There is a
scientific consensus that perpetual motion would violate the conservation
of energy laws. (These laws were established in the late 19th century after
years of painstaking research and experimentation.) When scientists received
a definite proof that such a machine is impossible, they dropped efforts to
create it.
Another example is the alchemist’s quest for gold. For hundreds,
even thousands, of years, alchemists tried to discover a way to convert lead,
copper, and other base metals to gold. Why don’t modern chemists occupy
themselves with this problem? The simple answer is that they came up with
a proof that while such conversion is possible, it is absolutely not profitable.
These days, scientists know that atoms of one element can be changed
into atoms of another element through nuclear reactions. Indeed, nuclear
physicists have successfully transformed lead into gold, but the procedure
itself is so expensive that the result is not worth it.
Next, let’s talk about cryptography, the science of converting infor-
mation into a secret form (encryption) and restoring this information back
into its original form (decryption). These days, cryptography is everywhere.
All significant online computer transactions are encrypted. For most encryp-
tions, we use a new generation of cryptographic algorithms that scientists
believe to be very secure. This belief is based on the way the encryption
process is organized and on one important mathematical assumption related
to prime numbers.
To decrypt a secret message, an intruder needs to start by getting this
message’s secret key. To obtain this key, a certain very big number should
be broken into a product of two primes. How long can this take? Believe
it or not—for a number that is big enough, it may take VERY long. For
example, it will take years and years for a modern computer to find prime
factors of a 300-digit number. The reason is that no efficient algorithms are
known for factoring big numbers. Therefore, the only efficient way for a spy
or an intruder to learn a secret key is to keep guessing until he finds the right
key, which can take ages.
3.1. Warm-up Discussion. Are Proofs Really Necessary? 27
Already, you might see a weak spot; what will happen to all this security
if someone discovers an efficient algorithm for breaking big numbers into
primes? Mathematicians believe that such an algorithm cannot be found.
However, this fact has not been proven yet. If someone were able to prove it,
a lot of people and countries would sleep better at night knowing that their
secrets are well protected.
Why should we look for all possible answers? Suppose that you’ve
been solving a word problem and you’ve found the answer to it. You proudly
present it to your math circle teacher, and you get a reply: “Yes, this answer is
correct. However, can you convince me that no other answers are possible?”
You are disappointed—why would one need such a justification?
Let’s come up with an example that explains the importance of getting
all possible answers. Let’s talk about bridges and ways to collapse them. Do
you know why soldiers break step when crossing a bridge? Because a bridge
can easily be collapsed due to the effects of resonance.
What is resonance? Mechanical structures, although they appear to be
unmovable, have a natural frequency or set of frequencies at which they
vibrate. If a force (wind, for example) is applied to the structure with the
same frequency, then the vibration will amplify. This amplified vibration,
called resonance, can cause a structure to collapse.
How is this fact related to the number of solutions? A structure such
as a bridge may have several natural frequencies of vibration in it. When
engineers are designing a bridge, they need to compensate for possible effects
of vibration on all these frequencies. How does one calculate these frequen-
cies? The physical behavior of a structure can be described by a complex
system of equations. Each solution of such an equation defines a vibration
frequency. Therefore, to make sure that all collapse scenarios are prevented,
it is indeed crucial to be able to find all solutions.
For Teachers: Alchemy, gold, cryptography, and spies are all very
exciting topics for children. Expect your students to try to steer you
into long sideways discussions. Stay focused, and try to stick to your
10-minutes warm-up time limit.
For Teachers: You could ask your students to come up with examples
of invariant problems from Year 1. One such easy-to-remember example
is the problem about overturned cups. We had 7 cups, 6 of them facing
up and 1 down. We were allowed to flip 2 cups at a time (up-up to
down-down, down-down to up-up, or up-down to down-up). Our goal
was to prove that is not possible to get all 7 cups facing up by repeating
these operations.
In this problem, we were able to find the invariant: the parity of
face-up cups does not change. Thus, we reasoned that it is impossible
to start with 6 cups facing up and end with 7.
always wins. To prove this, let’s observe that this game has an invariant: the
total sum of all the numbers on the board remains unchanged. Indeed, when
we replace a pair of numbers by their sum, the total sum does not change.
Since the sum of the original set was 120, the last number standing has to
be 120 as well.
Problem 2. In every cell of a 2 × 2 table, there sits an animal: a rabbit
or a frog. On a single turn, we can replace all animals in a single row or
a column: each rabbit becomes a frog, and each frog becomes a rabbit.
Initially, a rabbit is sitting in the top left corner cell, and frogs occupy the
rest of the cells. Can we end up with a table that is all filled with rabbits?
The trick is to use the result of the previous problem. Let’s concentrate
on the top left 2 × 2 subtable of the original table. The animals in this
2 × 2 subtable are transformed the same way as in the previous problem.
Therefore, whatever we do, this 2 × 2 subtable will always contain at least
one frog. Therefore, the entire table will always contain a frog.
Now we can observe a pattern: the parity of the total number of candies
in the same-color sectors does not change; it remains odd. If we could prove
this fact, we would have an invariant for this problem!
To come up with a proof, let’s observe that whenever a piece of candy
is moved to an adjacent sector, it always changes color. Thus, if a player
chooses to move 2 pieces that are located on different colors, then these
3.2. Invariants 31
pieces switch colors. So, the total number on each color does not change. If
she moves 2 pieces that are located on the same color, the total on this color
goes down by 2, and the total on the other color goes up by 2. Therefore,
the parity on each color does not change either!
Since the game starts with an odd number of pieces of candy on each
color, we can never end up with 6 pieces on the same color.
Today, we will present, explain and practice a very important type of proof
that keeps coming up in our problems and discussions—proof by contradic-
tion.
Warm-up 2. At least one inscription is true and at least one is false. Can
you point out the box with the ring in it without opening any of them?
Why did we present this simple problem here? Not because of the
problem itself, but because of the approach we used to prove it.
Such a model of reasoning is both natural and rigorous at the same time.
We often employ it in our conversations, especially when we are engaged in
a debate. Suppose that you overheard a child reasoning along the following
lines: “If it were I who ate all those chocolates yesterday, I would be sick
today. However, I am OK. That means I did not eat them!” Believe it or
not, the child is using proof by contradiction to argue her innocence. In
philosophy, this type of proof goes by an impressive Latin name: reduction
to absurdity. In mathematics and technical sciences, proof by contradiction
works as a powerful weapon that allows us to arrive at a lot of impressive
results.
Let’s move on by working our way through a collection of “proof by
contradiction” problems.
Problem 2. Together, 5 soccer players together scored 14 goals, with
every player scoring at least 1. Prove that at least 2 of them scored the same
number of goals.
Problem 2 Discussion. The primary challenge of this problem is to come
up with a clear explanation of the solution. Children tend to come up with
solutions like: “If the first player scored 1 goal, the second player scored 2,
4.2. Proof by Contradiction 35
and so on, then the total number of goals would be 15, which is more than
14. Problem solved.”
What’s wrong with this approach? The main objection is that this
statement deals with a specific scenario: 1 goal by the first player, 2 by
the second, and so on. What if no one scored exactly 1 goal, or the third
player scored 7? We cannot use one case to prove the entire problem. Thus,
while the problem seems to be easy, the solution eludes us.
However, proof by contradiction provides a simple framework for a proof.
Let’s start by assuming that no two players scored the same number
of goals. If we order the players by their scores, then the first player scored
at least 1, the second—at least 2, the third—at least 3, the fourth one—at
least 4, and the fifth one—at least 5. (Note that we never claim that a
player achieved some specific score: we always use the word “at least”.) The
players altogether scored at least 1 + 2 + 3 + 4 + 5 = 15. However, the total
score is 14. This contradiction proves that there must have been at least two
players with the same score.
Since the vertices of this triangle cannot be of the same color, 2 of them
must be of 1 color, and 1—of another. Suppose that 2 nodes are black and
1 is white. Let’s orient the grid in such a way that the line connecting the 2
black nodes will be horizontal.
possible to find the prime number that is the biggest of them all. However,
after that, we will demonstrate how to construct an even bigger number that
is prime as well. This way, we will disprove the assumption that the number
of primes is finite.
Now, let’s present the detailed proof. If the number of primes is finite,
then we can list them all: P1 , P2 , ..., PN . In this sequence, each symbol stands
for a corresponding prime number: P1 stands for the first prime (which is
equal to 2), P2 for the second prime (which is 3), P3 for the third prime, and
so on. The symbol PN stands for the largest prime number.
Let’s start constructing a prime number that is even bigger than PN .
First, take a look at the number that is equal to the product of all these
primes: M = P1 × P2 × P3 × · · · × PN .
The number M is a very special number: it is divisible by each and every
prime number in the world, and it is much bigger than any of them. Next,
let’s take a look at the number M + 1 = P1 × P2 × P3 × · · · × PN + 1.
Can this number be divisible by P1 ? No, it cannot, as it is 1 bigger than
a multiple of P1 . Can this number be divisible by P2 ? No, it cannot, as it is
1 bigger than a multiple of P2 . Similarly, it cannot be divisible by any prime
number since it is 1 bigger than a multiple of each. Therefore, this number
itself must be prime. Moreover, this number is way larger than the largest
prime number we know about.
Thus, our mission is accomplished: we assumed that the largest prime
number exists, and we were able to construct a prime number that is bigger.
Therefore, the largest prime number cannot be found, and the number of
primes is infinite.
Problem 4. Romeo and Juliet quarreled. Juliet started walking east, and
Romeo—west. In 4 minutes, Romeo turned back and started running after
Juliet. In 2 minutes, he reaches the spot where they parted. If Romeo runs
38 Session 4: Proof by Contradiction
3 times as fast as Juliet walks, how long will it take him to reach Juliet from
the moment he turned back?
Problem 5. A 5×9 rectangle is cut into 10 smaller rectangles. (All cuts
follow grid lines.)
(a) Prove that at least 2 of these rectangles have the same area.
(b) Prove that at least 2 of these rectangles are congruent.
Problem 6. There are 31 gnomes, 31 elves, and 30 humans standing side
by side in line. It is known that no elf stands next to a gnome. Prove that
at least 3 gnomes or at least 3 elves are standing next to each other.
Problem 7. The game of Trick-a-Troll is played with 10 players and a
deck of 20 cards: 2 through 10 and an ace of spades, and 2 through 10 and
an ace of clubs. Each player gets 1 club and 1 spade and adds his cards (aces
count as 1). Prove that there will be at least 2 players with sums that end
in the same digit.
Today we will be focusing on the organization of our numeral system and the
decimal representation of numbers. Some of the key notions that we will be
exploring are the structure of numbers, the concept of place-value, and the
relationship between numbers and the numerals that represent them. Some
students may already have a formal understanding of the topic. Here we will
try to give them a deeper, more intuitive feel.
Problems that deal with decimal representations occupy an intermediate
position between number puzzles and elementary number theory. They
can be solved using relatively simple methods, but they also have high
educational value. Gaining an understanding of the decimal system provides
us with a path toward understanding other number systems as well.
1
This warm-up uses materials from the Wichita State University History of Math
Project [31].
39
40 Session 5: Decimal Number System and Problems on Digits
up to one million. Take a look at the table below—it contains these symbols
and their descriptions.
Decimal Egyptian Meaning of
Number Symbol This Symbol
1= staff
100,000= tadpole
astonished
1,000,000==
man
To make up a number, Egyptians would combine these symbols so that
the total value of the symbols would be equal to such a number. For example,
a single line (a staff, the symbol for one) would mean one; three lines would
mean 3; seven lines would mean 7, and so on. To write the number 10, they
would use the symbol for ten (a heel bone). To write the number 436, they
would combine 4 symbols for a hundred, 3 symbols for ten, and 6 ones (see
below).
It was common to write numbers from right to left, starting from the
highest power of 10, as we did for the number 436 above. However, it was
totally acceptable to arrange symbols differently. For example, on tomb
5.2. Problems on Digits 41
We can see that, in Egyptian numeration, the order and the position of
symbols do not matter much. Indeed, the sum of the symbols remains the
same whichever way the symbols are positioned. Systems like this are called
additive.
It is interesting and educational to compare our number system and the
Egyptian number system: which one is easier to learn? Which one is more
efficient? Which number system would you choose for doing addition? How
about multiplication? Division?
2
The difference between the terms number , numeral , and digit can be confusing. A
number indicates an abstract value. A numeral is a symbol that stands for a number.
For example, the same number five can be written as a Roman numeral or Egyptian
numeral or decimal. A digit is a single symbol used to make numerals. For example, in
the decimal system, we have ten digits: 0, 1, ..., 9.
42 Session 5: Decimal Number System and Problems on Digits
(As relics from this period, we have words like “dozen”, 12 hours on a clock,
and 12 inches in a foot.)
This knowledge of how our numeral system is organized comes in handy
for solving a wide variety of problems.
Next, let’s spend some time exploring what happens to the value of a
number when a digit is added to it.
Question 1. What happens to the value of an integer number if the
digit 0 is added to the right of it?
This question is easy to answer: the number becomes 10 times bigger.
Thus, if the original number were equal to x, the modified number would be
equal to 10 × x.
Question 2. What happens to a positive integer if the digit 1 is added
to the right of it?
The number becomes 10 times bigger AND bigger by 1. Thus, if the
original number were equal to x, the modified number would be equal to
10x + 1. (This answer is easy to extend to any other digit. If we add 7, for
example, the number becomes 10x + 7.)
5.2. Problems on Digits 43
Looking at the ones column, we observe that a+2 ends with 0. Therefore,
a must be equal to 8. Replacing a by 8 both in the addend and in the sum,
we get the modified expression. (The picture below illustrates this approach:
in the second expression, the digit a has been replaced by 8.)
...dcba ...dcb8 ...dc28 ...d028
+ 252 + 252 + 252 + 252
...dcba0 ...dcb80 ...dc280 ...d0280
Now, let’s try to figure out the value of the next digit, b. Looking at
the tens column of the second expression, we see that the digit b added to 5
and to the carried 1 ends with 8. Therefore, b is 2. Replacing b by 2 both
in the addend and in the sum, we get the modified problem. (In the third
expression in the picture above, the digit b has been replaced by 2.)
Next, consider the hundreds column. Since there was no carry from the
tens column, c must be equal to 0. It is easy to see that d is 0 as well, and
so on. Thus, we get the same answer 28, but in a more entertaining way.
44 Session 5: Decimal Number System and Problems on Digits
By multiplying the ones column, we get that b × 9 ends with b. The digit
b cannot be 0 (if b is 0, then a is 0 as well), so b = 5. Therefore, the carry
to the tens column is 4. To get a 0 in the tens column of the product, a × 9
must end with 6. Therefore, a = 4.
Problem 4. Find the biggest 6-digit number such that each of its digits,
except for the last two, is equal to the sum of its two right neighbors.
SEN D + M ORE + M ON EY
Problem 2. “I will never tell you my secret 4-digit pin code,” Dr. Watson
said to Sherlock Holmes. “I remember it since it is symmetrical and the sum
of its digits is the same as the number formed by the first two digits.”
“Ha,” Holmes replied. “Now I will be able to use your pin.” What is the
pin?
Problem 3. The last digit of a 3-digit number is 0. If you cross it out, the
new 2-digit number is 351 smaller than the original number. What is the
original number?
Problem 4. Mary wrote a 3-digit number that starts with the digit 9.
Paul erased this 9 and wrote it to the right of the number. Paul’s number is
216 smaller. What is the original number?
Problem 5. A 3-digit number starts with 4. If this digit is relocated to
the end of the number, you get a number that is equal to 0.75 of the original.
What is the number?
Children are usually intrigued by the subject of binary numbers. They know
that understanding binaries is an important step toward understanding how
computers work. However, while most children know the buzzword, they
have little idea of what it actually stands for. We will spend the next two
lessons discussing binaries.
Today’s lesson is organized as follows:
- We will start by presenting an “intuitive” explanation of binary num-
bers.
- Next, we will formalize this explanation and add more rigor to the
discussion.
- We will finish with a brief conversation about the role of binaries in the
digital world.
For Teachers: Expect your students to ask about 0 raised to the power
0. Is it 0 or 1? One may reason that it must be 1 since anything to
the power 0 is 1: 10 = 1, 0.10 = 1, 0.010 = 1, etc. On the other hand,
it must be 0 since 0 raised to any power is 0: 01 = 0, 02 = 0, 03 = 0.
The real answer is that 0 to the 0 power is impossible to define, exactly
because of these reasons.
1 2 4 8 16 32 64
Such a system is not as inconvenient as one might think. Suppose that
a merchant owns the following set of weights: 1, 2, and 4:
1 2 4
The largest quantity he can weigh with these weights is 1 + 2 + 4 = 7; the
smallest is 1. How about others? Can he balance every integer in between?
1
I learned about this great approach to teaching binary numbers from Olga Radko,
LA Math Circles. The LA Math Circles website has a bunch of handouts on binary
numbers.
6.2. Introduction to Binaries 49
(We assume that when being weighed, an object is placed on one pan of the
scales, and the weights go on the other.)
- Weighing 2 pounds? We can use a 2-pound weight.
- Weighing 3 pounds? We can use 2-pound and 1-pound weights.
- Weighing 4 pounds? We can use a 4-pound weight.
- Weighing 5 pounds? We can use 4-pound and 1-pound weights.
- Weighing 6 pounds? We can use 4-pound and 2-pound weights.
- Weighing 7 pounds? We can use 4-pound, 2-pound, and 1-pound
weights.
So, the set 1, 2, and 4 can balance any quantity in the range from 1 up
to 7. Besides, 7 is just one step away from the next weight—weight 8.
Next, take a look at the set of weights 1, 2, 4, and 8: 1 2 4 8
How useful is this set? The largest quantity for this set is 1 + 2 + 4 + 8 =
15. Can we balance every quantity in between, or will there be a gap?
The students start figuring out how to weigh 9, 10, ..., 14. The results
are summarized in the table below. (The numbers in the right column are
quantities; the check marks indicate those weights that are used.)
While we work on filling in this table, a keen student formulates an
important rule that simplifies the search: adding 8 to every combination
from 1 to 7 gets us to the range from 9 to 15.
Looking at this table, we see a great pattern: each set of all consecutive
powers of 2 adds up to the number that is one below the next power of two.
For example, weights from 1 to 16 add up to 32 − 1, weights from 1 to 32
add up to 64 − 1, etc.
Will this pattern work for bigger numbers? Would weights from 1 to 64
add up to 128 − 1? Would weights from 1 to 128 add up to 256 − 1? Etc.?
This pattern is indeed true, and the proof of it marks the starting point
of a more “serious” discussion of binary numbers. Our goal is to prove that
the pattern below holds forever:
1 + 2 + 4 + 8 + 16 = 32 − 1,
1 + 2 + 4 + 8 + 16 + 32 = 64 − 1,
1 + 2 + 4 + 8 + 16 + 32 + 64 = 128 − 1,
1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 = 256 − 1,
....
This proof will be a gradual step-by-step activity, like climbing rungs of
a ladder: each step that we have just conquered will help us get one step
higher.
So, we already know that 1 + 2 + 4 + 8 + 16 = 32 − 1.
How can we use this fact to prove that 1 + 2 + 4 + 8 + 16 + 32 = 64 − 1?
Note that we do not want to verify this equality by a direct calculation since
it would be equivalent to jumping up several steps from the ground. Instead,
we need the kind of reasoning that we could apply every time to conquer the
next step.
Let’s do some simple arithmetic:
1 + 2 + 4 + 8 + 16 + 32 = (1 + 2 + 4 + 8 + 16) + 32.
Using the fact that 1 + 2 + 4 + 8 + 16 = 32 − 1, we can rewrite the above
expression as
(1 + 2 + 4 + 8 + 16) + 32 = 32 − 1 + 32 = 2 × 32 − 1 = 64 − 1.
Wow, we proved it; we climbed to the next rung!
6.3. Binary Number System 51
Let’s use this rung to get one level higher: to prove that 1 + 2 + 4 + 8 +
16 + 32 + 64 = 128 − 1:
1 + 2 + 4 + 8 + 16 + 32 + 64
= (1 + 2 + 4 + 8 + 16 + 32) + 64
= 64 − 1 + 64 = 2 × 64 − 1
= 128 − 1.
Thus, we proved that the Binary Land weights 1, 2, 4, 8, 16, 32, . . . form
a very handy set indeed:
- Each set of weights from 1 to 2n allows us to weigh any quantity from 1
to 2n+1 − 1, and, whenever we add the next weight to the set (weight 2n+1 ),
we increase the range to 2n+2 − 1.
Therefore, any integer quantity can be balanced with some combination
of these weights.
Number Number
in 32 16 8 4 2 1 in
base 10 binary
32 (= 25 ) 16 (= 24 ) 8 (= 23 ) 4 (= 22 ) 2 (= 21 ) 1 (= 20 )
1 1 1
2 1 0 10
3 1 1 11
4 1 0 0 100
5 1 0 1 101
6 1 1 0 110
Now, we get:
- The weight that makes 1 is encoded as “1”.
- The weights that make 2 are encoded as the combination “10”.
- The weights that make 3 are encoded as the combination “11”.
- The weights that make 4 are encoded as the combination “100”.
- The weights that make 5 are encoded as the combination “101”.
- And so on .... Every number can be encoded this way.
Such a way of representing numbers is called a binary number system.
Since it is so important to have a solid understanding of binaries, let’s
repeat one more time what binary numbers stand for:
- First, we express a decimal number as a combination of distinct powers
of 2.
- Next, we write this combination down using two symbols—“0” and “1”.
(Symbols “1” are used to mark the powers that go into the number, symbols
“0”—those that are not.) This way, we get the corresponding binary number.
It works the other way around as well! Given a sequence of 0’s and 1’s
(a binary number), we can match these with corresponding powers of 2. So,
we can reconstruct the original decimal number. This new way of writing
numbers is a cool one! We can express any number using two digits only: 0
and 1. The digits from 2 to 9 can now retire.
Now that we have learned what the binary number system is about, it’s
practice time! Let’s start by converting several binary numbers into decimals.
A table with powers of 2 in the header makes mapping binary digits to the
right powers of 2 much easier.
128 64 32 16 8 4 2 1
For Teachers: Even though this task looks a bit mundane, it’s a VERY
useful exercise. Moreover, while filling the table, students will have a
chance to observe many interesting patterns related to the structure of
binary numbers. You can create a similar table yourself or simply copy
it from the back of this book (on page 359). If you do not want to
interrupt the flow of the lesson, you can hand out the table together
with the problem set.
Stress that this table is just a model. In reality, of course, such tables
look different, and things are more complex overall.
Now that we know how information can be encoded with 0’s and 1’s, the
next question is what is happening inside a machine. How are these 0’s and
1’s actually represented in computer memory (or on a CD or on a drive)?
The most important idea is that there are no 0’s and 1’s inside a computer.
Instead, there are billions of tiny switches. Such a switch, called a “bit”,
can store a tiny bit of information—whether it is “on” or “off”. Suppose we
decide that “on” stands for 1, and “off”—for 0. Then a sequence of switches
can be used to store a sequence of 0’s and 1’s.
A bit is the smallest building block of storage; however, it is too small to
be of much use. Therefore, bits are always grouped together into blocks of 8;
these blocks are called bytes. We can store different numbers and characters
by setting bits of a byte into different combinations of 0’s and 1’s: 01101111,
0100000, etc.
How many distinct values (symbols or numbers) can we represent with
one byte? The slot rule can be used to calculate the answer: there are 8
positions, and each can take one of 2 values. Therefore, the total number of
possible arrangements is 28 , which is 256.
Would this ability to encode 256 symbols be sufficient? At first glance,
it looks like the answer is “yes”. Indeed, we use quite a limited number of
characters day-to-day: there are just 26 letters in the English alphabet. If we
also allow for capital letters, for ten digits (from 0 to 9), and for punctuation
signs, we are still way below 256.
It worked this way for many years—symbols were encoded into byte-
sized data. However, there are many languages in the world, and altogether
the number of characters is way more that 256. Therefore, for different
6.6. Take-Home Problem Set 55
Problem 3.
(a) Which binary number is 1 bigger than 1000000002 ? Which is 1
smaller?
(b) Which binary number is 1 smaller than 11111111112 ? Which is 2
smaller? Which is 2 bigger?
Problem 4.
(a) How can one tell if a binary number is even or odd?
(b) How can one tell if a binary number is divisible by 4?
(c) If a binary number ends with 10, what is the remainder when this
number is divided by 4?
Problem 5. Joe the Gold Miner has 30 golden nuggets worth 1, 2, ..., 30
dollars. Which 5 of these nuggets should he take with him if he wants to be
able to pay any integer amount ranging from 1 dollar to 30 dollars?
Problem 6. Julia is buying a new laptop. She pays $260 of her own money,
and her dad, sister, and brother are helping her with the rest of the sum.
Her sister gave her 1/8 of the price of the laptop. Her brother gave her 1/4 of
the price, and her dad gave her 1/2 of the price of the laptop. What is the
price of the new laptop?
Problem 7. You have a sack of flour, a 1-gram weight, and a box of light
plastic bags. Can you measure 1,000 grams of flour in 10 weighings on a
balance scale?
Problem 8. Five pirates—Archie the Captain, Bob the First Mate, Chad
the Gunner, Don the Rigger, and Eamon the Cook—got a chest of gold coins.
Archie took half of all the coins and half of a coin; Bob received half of the
remaining coins and half of a coin; Chad’s share was half of the remaining
coins and half of a coin, and Don got half of the remaining coins and half of
a coin. Finally, when Eamon took half of what was left and half of a coin,
there was no gold left. How many gold coins did the pirates originally have?
(The pirates did not cut any coins in half.)
Problem 9. Merlin the Sorcerer has built his castle next to the dwelling
place of the mighty Dragon Shmok. Every morning with the first rays of
the rising sun the Dragon flies out of his lair, heading toward one of the
four nearby towns, which are located to the north, south, east, and west of
the castle. Merlin’s task is to warn the townspeople where to expect Shmok
today.
The castle has three towers topped with magic spheres; one is made out
of ruby, the other of emerald, and the third one is made out of sapphire.
When the magic spheres are lit up, their radiance is seen from the farthest
corners of the land. So it has been agreed that by these lights Marlin sends
his signal, using some code to indicate where the Dragon is heading.
6.6. Take-Home Problem Set 57
The spheres’ lights, however, tend to flicker randomly at night, and the
morning may find any combination of them turned on or off. And, because
of his old age, Merlin will have the strength to climb only one tower to
manipulate its light (to turn it on or off).
Thus, starting from a random combination, Merlin can change the state
of no more than one sphere. After that, the townspeople should be able to
read where the Dragon is heading by seeing which lights are on.
Can you help Merlin come up with such a code?
Session 7:
Binary Numbers II
Today is the second lesson on binary numbers. Last time, we learned how to
read and interpret binary numbers and how to convert binaries to decimals.
Today, we will learn how to do arithmetic operations on binaries, and we will
discuss two different algorithms for converting decimal numbers to binary.
+ =
+ =
?
(A) (B) (C) (D) (E)
1
This problem was given to 2nd graders at one of the Math Olympiads in St.
Petersburg, Russia (School #30 Math Olympiad). Be prepared to think out of the box!
59
60 Session 7: Binary Numbers II
0 0 1
1 1 10
To get two binary numbers ready for column addition, we align them as
if we were adding decimals. Next, we start with the two digits in the far
right column. If these two digits add to 0 or 1, we write the answer below.
If they add to 102 , we write 0 below and keep 1 as a carry for the next
column. We keep adding the digits column by column, moving from right to
left. Remember that we need to add any carry and that 1 + 1 + 1 = 112 .
The addition 1110012 + 111012 would play like this:
1 1 1
)
1’s. So each multiplication step produces either 0, or the copy of the first
term. You can practice binary multiplication on a couple of simple examples.
Multiply:
10012 × 112 , 10112 × 1012 .
It is very educational to discuss what happens to a binary number when
it is doubled. In the binary world, “doubling” means multiplying by binary
ten (the number 102 ). Therefore, doubling a binary affects it in the same
way as multiplying by 10 affects a base-10 number: all digits are shifted one
place to the left, and 0 is added on.
Examples:
- Doubling 1001112 , we get 10011102 .
- Doubling 111112 , we get 1111102 .
By the same reasoning, multiplying by 4 (which is binary 100) is equiva-
lent to shifting a binary number 2 places to the left and adding on 2 zeroes;
multiplying by 8 (which is binary 1000) is equivalent to shifting 3 places and
adding on 3 zeroes, etc.
Examples:
- The number 111002 is 4 times larger than 1112 .
- The number 10010002 is 8 times larger than 10012 .
- The number 111011100002 is 16 times larger than 11101112 .
It is interesting to compare the difficulty of multiplication in base 10
versus base 2. To be able to multiply multi-digit numbers in base 10, one
has to know how to multiply one-digit decimals, which requires memorizing
the 1-to-9 multiplication table. In the binary world, multiplication is much
simpler: you can start multiplying right away—all you have to know is how
to add and how to shift. For example, to multiply by 101, you have to shift
two places to the left and add on 2 zeroes to the end of the original number;
next, you need to calculate the sum of this new number and the original
number.
This is precisely how computers do multiplication internally. On the
hardware level, it is easy to implement binary additions and shifts. There-
fore, computer engineers exploit this approach: they implement multiplica-
tion through shifts and additions.
of the current number with the last digit erased. To get this number, we
adjust the current number for parity and then divide it by 2. The parity of
the new number allows us to learn another digit of the original number.
This is the main idea of the algorithm: by repeatedly dividing a decimal
number by 2 and adjusting the intermediate results for parity, we can get all
the digits of the corresponding binary number one by one, right to left!
to left. While the key operation for the first algorithm is multiplication, for
the second one it is division. Also, the mechanics of the first algorithm are
easier to understand, while the second algorithm is much simpler to run on
bigger numbers.
Problem 7. In the picture, you can see the map of the Old City, with
streets heading east-west and north-south. At each intersection of two
streets, there is a small plaza. A tourist would like to take a walk from
the train terminal (A) to his hotel (B). He would like to take the longest
route possible without visiting any of the plazas twice. Draw such a route
and prove that a longer route cannot be found.
A
Session 8:
Mathematical Dominoes Tournament
5:3
“problem” “points”
side of a that can be split side of a
domino into 5 triangles with domino
card one straight cut. card
has around 40 problems, which is plenty for a big group and a long game.
For a shorter game, feel free to use only half of the problems. The second
half can be used in a future game.
Plan to allocate some time on logistics: an explanation of the game
rules, splitting kids into teams. (Two students per team is the best size. An
occasional team of 3 or 1 works fine as well.)
The Contest
After the rules have been explained, the students have been split into teams,
and the teams choose their names, the game begins. We place the cards
domino-side up on a big table that is easy to access. After a team takes
a problem, it fills in the “problem number” and “problem score” sections of
the score table and starts working on the solution. To present an answer,
students write it in the score table and show it to a judge. When the team
is ready for the next problem, they put the first problem back on the table
and choose a new one.
# PROBLEM SCORE
A barrel will be completely filled
with water if you pour in either 6
small buckets of water, 3 medium
1
buckets and 1 large bucket of
water, or 2 small, 1 medium, and 3:0
3 large buckets of water. How
many large buckets of water
would completely fill the barrel?
Find two integer numbers such
that:
2
- Their sum equals 165.
- If the rightmost digit of the 5:2
bigger number is erased, the
numbers will become equal.
70 Ssession 8: Mathematical Dominoes Tournament
a doll and an animal, she would give back a car; if she got a car and an
animal, she would present a doll. (Initially, Rachel had enough toys to keep
this exchange going.) Finally, Emily was left with a single toy.
(a) For how many days did this exchange take place?
(b) What was Emily’s last toy?
Problem 4. The cubic die has numbers from 1 to 6 written on its six faces.
The first time Sasha tossed this die, the sum of the numbers displayed on the
four side faces was equal to 12. The second time, it was equal to 15. What
number is written on the face that is opposite to the face with the number
3?
Problem 5. The road between the villages of Holy and Smoke has mile-
posts placed at every mile. One side of each post shows the distance to Holy
and the other—the distance to Smoke. Peter noticed that the sum of all the
digits on each milepost is equal to 13. How far is Holy from Smoke?
Session 9:
Pigeonhole Principle
Today we will study a method called The Pigeonhole Principle. The name
of this principle sounds funny, and the idea behind it will seem to be almost
trivial. However, the principle itself is immensely powerful. It describes a
pattern of reasoning that can be used to prove a wide variety of problems
ranging from very simple to extremely advanced.
Teaching supplies for this session:
- Printouts of the take-home problem set (one per student).
most frequently used proofs and patterns are often formalized and given
names. Consequently, they can be reused over and over again like building
blocks. When reasoning about a problem, we can use these blocks as handy
shortcuts, without spending time on the intricacies of their proofs.
Here is a good analogy: an expert handyman always arrives with a
toolbox full of tools. When getting ready to work on a difficult task, he
looks for the best tool for the job. Maybe he will have to try several tools
before finding the right one—the one that will make the job easier, faster,
and more enjoyable. It is hard to imagine what a handyman’s job would look
like if he had to build a saw or a hammer from scratch every time before
starting a new job.
The Pigeonhole Principle, the method that we are going to learn
today, is so intuitive that it seems almost trivial. Yet, it is a very effective
problem-solving method that can be used to prove a lot of interesting and
compelling results. The method is sometimes called “Dirichlet’s Box Prin-
ciple” in honor of the French mathematician who was the first to formalize
the idea.
We start the discussion by presenting a problem to the children. The
goal of it is to explain the intricacies of the Pigeonhole Principle using an
example with specific numbers.
Problem 1. Suppose that 6 pigeons occupy 5 pigeonholes. Is there
anything that can definitely be claimed about the number of pigeons in
the holes?
Problem 1 Discussion. A student replies there must be a hole with 2
pigeons in it. I present a counterexample: if the first 3 holes contain 1 bird
each and the fourth hole contains 3 and the fifth hole is empty, then none of
the holes have exactly 2 birds. 1 1 1 3 0
Another student suggests that there will definitely be a hole with exactly
1 pigeon. However, this is not true as well. If the birds are huddling 3 per
hole, there will be no hole with 1 pigeon. 3 0 0 3 0
Keeping the conversation going, we come to the following conclusion:
whatever number we set on, we could fail to find a hole that contains exactly
this many pigeons.
What can we claim then? Since precise numbers do not work, we prob-
ably should resort to a claim that uses the term “at least”. Let’s try this
approach, as it looks promising. Can we claim that there is a hole with
at least 6 pigeons? Not necessarily, since it may happen that each hole
hosts fewer than 6 birds. How about a hole with at least 3 pigeons? Not
necessarily, because the birds may sit 1 or 2 per hole. Will there be a hole
with at least 2 pigeons in it? This time, the majority of students in the
room nod “yes”. To prove the existence of such a hole, let’s use the proof
by contradiction approach. Suppose that each hole is occupied by no more
than 1 pigeon. (Please note that we cannot say “occupied by 1 pigeon” as
9.2. Pigeonhole Principle 83
some holes may be empty.) If this is the case, these 5 holes together contain
no more than 5 pigeons. (See the picture.)
_1
< _1
< _1
< _1
< _1
<
<
_5
to be a girl with 0 friends, then nobody can be friendly with all 14 kids.
Thus, the number of pigeons is, in fact, greater than the number of holes,
and the Pigeonhole Principle can be applied.
Problem 6. Prove that from the first 101 powers of two (21 , 22 , ..., 2101 ) a
pair of numbers can be found such that the difference of the two numbers is
divisible by 100.
Problem 2. Wizard Land Middle School offers a new elective this year: an
astrology class. Fifteen students have registered for this course. Prove that
at least 2 of these students were born under the same zodiac sign. (There
are 12 zodiac signs in total.)
86 Session 9: Pigeonhole Principle
Entrance
0 1 2
1 1 2
0 0 1
Problem 2. The city of Seattle has more than 5 million inhabitants. Show
that 2 of these people must have the same number of hairs on their heads if
it is known that no person has more than 1 million hairs on his or her head.
Problem 3. Prove that out of any 11 numbers, 2 can be found such that
their difference is a multiple of 10.
Problem 4. Today, 70 students took 3 tests each—in math, English, and
social sciences. The tests are scored on a scale from 1 to 4. Is it true that in
this group there always be 2 students whose results are identical? (Simplified
version: 20 students and 2 tests.)
Problem 5. Alice took a red marker and marked 5 points with integer
coordinates on a coordinate plane. Miriam took a blue marker and marked
a midpoint for each pair of red points. Prove that at least 1 of the blue
points has integer coordinates.
Problem 6. The 7th-grade math circle student Emilio wrote a computer
program for his house robot, Basil. Starting from 1, Basil should keep writing
bigger and bigger numbers formed by 1’s: 1, 11, 111, etc. The program
terminates when Basil writes a number that is a multiple of 19. Prove that
the program will terminate in fewer than 20 steps.
Session 10:
Geometric Pigeonhole Principle
89
90 Session 10: Geometric Pigeonhole Principle
regular placement of 16 kings similar to the one presented in the first picture
below.
The student argues that this placement is the best since it is so uniform
and since it is not possible to add more kings to this specific arrangement.
However, it is easy to come up with a counterargument to this statement:
other, less uniform, placements of 16 kings are possible as well. (See the
picture on the right.) What if we could come up with such a tricky way to
place 16 kings that we would be able to squeeze in 1 more?
After kindling this discussion for some time, I suggest a hint: I highlight
the 8 lines that split the grid into 16 2 × 2 squares. (See the picture.)
How many kings can be placed inside a single 2 × 2 square? Not more
than 1 king, as 2 kings located on the same 2 × 2 square definitely put each
other in check. Since the chessboard is made up of 16 such squares, it cannot
indeed accommodate more than 16 kings altogether. Therefore, any solution
with 16 kings demonstrates the best possible placement.
Let’s highlight the important moments of this simple and clever approach
that we will be reusing over and over again. We came up with the solution
that seemed to be the best; however, it was challenging for us to prove this
fact. Indeed, with so many ways to put the kings on the board, how do
we know that a better way cannot be found? Therefore, to prove that our
solution is the best, we divided the board into several smaller sectors. Since
each sector cannot fit more than 1 king, the total number of kings cannot be
more than the number of sectors. Therefore, any solution with 1 king per
sector is indeed the best possible one.
per cross and no more than 9 stands altogether. One possible placement of 9
stands is shown in the same picture. (The taxi stands are marked by dots.)
Problem 4. The landing dock of a space station is a 10×10 grid. A landed
spaceship of the class “Dark Spectrum” would always occupy three squares
of the grid that are shaped like the letter L, aligned with grid lines. (“L” can
point in any direction.)
Since space smugglers favor Dark Spectrum ships, you plan
to install sensors that would help detect any landing Spectrum.
(Sensors are installed 1 per square; a sensor triggers an alarm
if a ship lands on it.) What is the smallest number of sensors
sufficient to detect any landing Spectrum? Where should they
be installed?
Problem 4 Discussion. The answer to this problem, which is 50 sensors,
is easy to come up with but is not as easy to justify.
Let’s paint the dock in a checkerboard pattern. Then any pirate ship
will be occupying at least 1 black square. Therefore, if we install sensors at
all 50 black squares, we will be able to detect any landing ship.
Next, we should prove that we cannot go with fewer than 50 sensors.
Suppose that we cut the board into 25 2 × 2 squares. It is easy to see that
every 2 × 2 square should have at least 2 sensors installed. Therefore, the
entire board should have at least 50 sensors.
pick squares on the grid and fire upon them. What is the smallest number
of shots Brendon has to fire to guarantee at least 1 hit on the battleship?
(In Battleship, a hit means a shot fired to a square that belongs to a ship.)
Problem 6. There are 25 flies sitting on a table. It is known that out of
any 3 of them, 2 can be found that are less than 1 foot apart. Prove that
at least 13 of these flies can be swatted with a single strike of a fly swatter
with a hoop of radius 1 foot.
Problem 7. Intelligent cacti from the planet Karellia are happy if they
are planted at least 2 meters apart from each other. The Seattle zoo has
an exhibit of Karellian cacti. The exhibit has a circular shape 20 meters in
diameter, and 20 cacti have been planted there in such a way that they all
are happy. Prove that is it possible to plant 1 more Karellian cactus in such
a way that all the cacti will be happy.
For Teachers: Today’s problem set can be used for a written Olympiad
as well. However, a written Olympiad should have fewer problems, and
it is better to exclude the problems where the first version of the solution
has a high chance of being incorrect.
7
3
5
3
Problem 5. Can you fill an 8×8 board with natural (counting) numbers
so that:
- whenever 2 squares share a side, the numbers in these squares differ by
1 and
- whenever 2 squares can be connected by 1 move of a chess knight, the
numbers differ by 3?
Problem 6. The 25 pirates from the pirate ship “Shameful Shark” spent 2
days playing cards (and losing money) in a tavern on Valeo Island. On the
first day, all 25 pirates lost different numbers of gold doubloons ranging from
1 to 25. (No 2 pirates lost the same number of doubloons.) On the second
day, the same thing happened: all pirates lost different sums ranging from 1
to 25. The ship captain entered the total 2-day losses of each pirate into the
ship ledger. Prove that the product of the 25 numbers in the ledger is even.
99
100 Session 12: Combinatorics I. Review
Warm-up 2. Let’s use the second warm-up problem to refresh the stu-
dents’ knowledge of factorials because we will be using factorials today.
Depending on the level of your audience, you can be more or less detailed.
Here is a sample set of questions you might ask:
- What are 10!, 100!, n!?
- How do we simplify 10! 100! n!
9! , 95! , (n−2)! ?
- How would you shorten the following expressions using factorials: 10 ×
9 × 8 × 7 × 6, 100 × 99 × · · · × 45, n × (n − 1) × · · · × (n − 7) × (n − 8)?
Problem 2. Polly’s friend Dolly the Parrot can talk as well. A Dolly’s
sentence always starts with an adjective, which is followed by a noun, and
then by a verb:
- 3 adjectives: HAPPY, HUNGRY, and LONELY,
- 2 nouns: PARROT and CROCODILE,
- 3 verbs: SINGS, CRIES, and WORKS.
12.2. Review of Combinatorics Techniques 101
(a) How many different sentences can Dolly the Parrot say?
(b) Polly and Dolly are creating a two-phrase story. Each parrot
contributes a sentence. How many different stories can they come up with?
Problem 2 Discussion.
(a) This is another application of the slot rule, and the answer is 3 ×
2 × 3 = 18. (The answer can be explained along the lines of the previous
problem.)
(b) This part is a bit trickier. Children usually reason that each Polly’s
phrase can be extended by Dolly’s in 18 ways; therefore, they come up
with the answer 24 × 18, which is incorrect. Indeed, the answer takes into
account only the stories that start with a phrase by Polly. However, if Dolly’s
phrase comes first, we get another 18 × 24 options. Thus, the final answer is
18 × 24 × 2 = 864.
Permutations
Let’s use the next problems to review another important concept that we
studied in our Year 1 circle—permutations. (For a more detailed review
of permutations and slot rule, the reader is referred to Year 1 [1].)
102 Session 12: Combinatorics I. Review
This kind of reasoning works for an entire class of problems that are called
permutation problems. A couple more examples of those are presented
below.
Before we get to the general formula for permutations, let’s solve several
exercises that illustrate the ideas that we just discussed.
Problem 7. A damaged robot named R2 remembers 5 digits only: 1, 2,
3, 4, and 5.
(a) How many 4-digit numbers can robot R2 write using these digits
only?
(b) How many 4-digit numbers with exactly 1 digit “3“ can it write?
(c) How many 5-digit numbers with exactly 2 digits “3” that are 1 apart?
(d) How many 4-digit numbers with all digits different?
12.2. Review of Combinatorics Techniques 103
(e) How many 4-digit numbers with all digits different that start with
an odd digit?
(f ) How many 4-digit numbers with all digits different that end with an
even digit?
(g) How many 5-digit numbers with alternating odd and even digits?
Problem 7 Discussion.
(a) We have 4 slots, with 5 options for each slot (5 digits). Thus, the
answer is 5 × 5 × 5 × 5 = 625.
(b) Let’s start by choosing a slot for the digit 3 and filling the rest of
the slots afterward. If we place 3 into the first slot, there will be 3 slots left,
with 4 options for each. Thus, there are 4 × 4 × 4 = 64 numbers with 3
at the first position. Also, 3 can be at the second or third or fourth place.
For each of these cases, the number of ways to fill the rest of the slots is 64.
Therefore, the total is 4 × 64 = 256 numbers.
(c) Let’s start by placing the 2 digit 3’s one apart and filling the rest of
the slots afterward. These 2 digits can be set in 3 different ways: (3 _ 3 _ _),
( _ 3 _ 3 _), and (_ _3 _ 3). For each placement, there are 4 × 4 × 4 = 64
ways to fill the rest of the slots. Thus, the answer is 3 × 64 = 192.
(d) This is a permutation problem: 5 × 4 × 3 × 2 = 120.
(e) The first digit can be selected in 3 ways. Whichever way we choose
the first digit, there are 4 ways to choose the second, 3 ways to choose the
third, and so on. Thus, the answer is 3 × 4 × 3 × 2 = 72.
(f ) Let’s start building the number backward from the last digit, which
can be selected in 2 ways. After we settle on the last digit, we can choose the
third one in 4 ways, the second one in 3 ways, and the first one in 2 ways.
Thus, the answer is 2 × 4 × 3 × 2 = 48.
(g) Suppose that the 1st, 3rd, and 5th digits are odd. We can choose
these 3 digits in 3 × 3 × 3 = 27 ways. After that, we can fill the rest of
the spots in 2 × 2 ways. Thus, there are 27 × 4 = 108 numbers of this
kind. Next, suppose that the 1st, 3rd, and 5th digits are even. There are
2 × 2 × 2 × 3 × 3 = 72 numbers like this. The final answer is 108 + 72 = 180.
1
Another popular notation is n Pk .
12.3. In-Class Problem Set 105
Problem 1.
(a) In how many ways can you punch the number
206 on the digital lock (see the picture) if you start from 6 6 6
the button in the center and every next button should be 6 0 0 6
touching the button you just punched? 6 0 2 0 6
(b) The same question for number 2,066. 6 0 0 6
(c) The same question for number 2,006. 6 6 6
Problem 2. Gabby the Gnome has 3 cloaks of different colors: blue, green,
and brown. He also has 5 different hats: 3 yellow and 2 red. Finally, he owns
6 different pairs of shoes: 2 yellow and 4 red. Gabby is selecting an outfit: a
cloak, a hat, and a pair of shoes. In how many ways can he do it if he wants
the color of his shoes to match the color of his hat?
Problem 2. In how many ways can you match 40 wizards and 40 brooms
in such a way that every wizard gets a broom?
Problem 3.
(a) A palindromic number is a number that reads the same backward
and forward. (For example, 13,531 is palindromic.) How many 5-digit
numbers are palindromic?
(b) How many 5-digit numbers are palindromic and consist of distinct
digits?
(c) How many 5-digit numbers consist of distinct digits and end with
2?
(d) How many 5-digit numbers are odd and consist of distinct digits?
Problem 4. One Mathematician has a spouse and three kids, and all
members of that family celebrate their birthdays on the same day. Once,
the Mathematician said:
– When our first child was born, the sum of the ages in our family was
equal to 45. A year ago, when our third child was born, it was equal to 70.
And now the sum of the ages of our 3 kids is equal to 14.
Determine the ages of the Mathematician’s kids.
Problem 5.
(a) A 2×2 square is divided into 4 1×1 squares. We would like to cover
it with 8 right triangles (2 triangles per square) that are either black or white.
A “right” covering is the one where two neighboring triangles never have the
same color. (Two examples of “right” coverings are presented below.) How
many “right” coverings are there?
O
M M
O
O O B O O
O
M M
O
Problem 3. In how many different ways can you trace the word BOOGIE
in the table below? (You can move from cell to cell if they share a side or a
corner.)
E I G I E
I G O G I
G O B O G
I G O G I
E I G I E
Problem 5. You are in the robot-selling business on the Tau Ceti planet,
where you own a small store. You just received a big shipment of household
robots and nanny robots. You also have 1 medical robot and 1 supervisor
robot—you would like to sell them as well. Your store window display has
space for 6 robots. In how many different ways can you arrange this display
if:
(a) you plan to display household and nanny robots only?
(b) you plan to display 5 household and nanny robots, and the medical
robot?
(c) you plan to display 5 household and nanny robots, and 1 robot of
another type?
108 Session 12: Combinatorics I. Review
P R I
We can start solving this problem by trying to list all of the different
meal options that Nancy’s children have now. If we list the sets correctly,
we get 10 different combinations of letters:
“P, R, I”, “P, R, M”, “P, R, E”, “P, I, M”, “P, I, E”, “P, M, E”, “R, I, M”,
“R, I, E”, “R, M, E”, “I, M, E”.
(One way to create this list in an orderly fashion would be to start from
writing down all of the combinations that include the letter P, then to follow
up with all the combinations that include R, but not P. After that, there’s
just one combination left: IME.)
What would be a more efficient way to get to the same answer?
Let’s take a look at 1 of these 10 sets of letters—“P, R, I,” for example.
Out of these 3 letters, 6 different meals for unspoiled children can be made.
You can get this number by listing all the possibilities (see the picture below)
or by using the permutations formula for the number of ways to arrange 3
letters: P (3, 3) = 3 × 2 × 1 = 6.
The same approach would work for the entire collection of similar prob-
lems about the letter-eating bird.
Problem 3. Suppose that Nancy goes to a store that sells the letters A,
B, C, D, E, F. In how many different ways can Nancy choose 4 letters for
her spoiled children at this store?
Problem 3 Discussion. Let’s use the same approach: if the children were
unspoiled and the order of the letters mattered to them, then Nancy would
have been able to buy P (6, 4) = 6 × 5 × 4 × 3 different 4-letter words.
However, the order does not matter; therefore, all that Nancy cares about
is the set of 4 letters. Thus, she has much fewer choices: each unique set
of letters (“A, D, E, F,” for example) corresponds to 4 × 3 × 2 × 1 = 24
words that can be made from these letters. Therefore, there are 24 times
112 Session 13: Combinatorics II. Combinations
as many words made up of 4 letters than 4-letter sets. Thus, the answer is
P (6, 4)/P (4, 4) = 6 × 5 × 4 × 3/(4 × 3 × 2 × 1) = 15. Poor Nancy can buy
only 15 different meals at this store!
Combinations Generalized
We do understand that the bird and the letters were just an example. Now,
we are going to generalize the problem to objects of any kind. First, let’s
emphasize the important difference between two ways of counting the number
of variants.
- Suppose that our process goes as follows: as we are selecting the objects,
we are placing them in a neat row, one next to another, in the same order
as we pick them. In this case, if the same collection of objects is selected
in 2 different ways, we end up with 2 distinct rows of objects. This model
describes the selection when order matters. This process, which we already
studied, describes a permutations model.
- Assume now that we use a different process: as we are selecting the
objects, we are tossing them into a big bag. Therefore, while it matters for
us which objects end up in the bag, it is not important in which order these
objects were tossed in. Such a model describes the selection when order
does not matter .
This type of problem reappears in a wide variety of different real-life
scenarios. It is so important that it has a name of its own—it’s called
combinations.
Combination problem: From a set of n different objects (letters, in
our case), we would like to choose k objects in such a way that the order
does not matter. In how many ways can this be done?
Notation: Combinations problems have their unique notation as well.
If we want to choose k objects out of n, we write
C(n, k). It is often called
n
“n choose k ”. The other popular notations are and n Ck
k
For Teachers: If your students are ready to use the generalized com-
binations formula, you are welcome to introduce it:
n!
C(n, k) = .
k! × (n − k)!
We are not going to use it here since we want the material to be
accessible for younger readers.
Problem 3. The Sunny Hill Middle School girls’ gymnastics team has 20
students, with Masha and Sasha being the only 7th graders. How many
different ways are there to choose 8 girls to participate in a meet if at least
1 of the 7th graders has to be included?
Problem 5.
(a) In how many different ways can 13 girls be seated in a row?
(b) In how many different ways can 13 girls be seated in a row if 3 of
these girls—Ashley, Betty, and Cindy—would like to sit next to each other?
(They can sit next to each other in any order.)
(c) In how many different ways can 13 girls be seated in a row if 2 of
these girls—Masha and Dasha—do not want to sit next to each other?
For Teachers: Make sure that you spend enough time familiarizing
yourself with the Auction rules. The game has some turns and twists,
and it is not a good idea to get lost in the middle.
117
118 Session 14: Mathematical Auction
The Contest
After the rules have been explained and the children have been split into 2
teams, the game starts. The teams receive problems, and the students start
working on them.
When problem-solving time is over, team names are announced, and
team captains are introduced. The teacher fills in the headers of the score
table with the team names.
For Teachers: A mathematical auction is a contest. Moreover, auc-
tion problems are open-ended. Therefore, the solutions to the auction
problems are not published in this book.
14.3. Mathematical Auction Problems 119
For Teachers: You can set the price of each problem in this Auction
to 100 shmollars. In this case, each team should have 200 shmollars at
the start of the game.
A team has a stronger solution for this problem if it can fit more brackets.
Problem 3. Sixteen points are located at the vertices of a square grid
(see the picture). What is the smallest number of points that can be erased
from this picture in such a way that no 4 of those that are left would form
a square?
. . . .
. . . .
. . . .
. . . .
A team has a stronger solution for this problem if it has a solution with
fewer points erased.
Problem 4. On an infinite chessboard, draw a shape of the biggest possible
area such that:
- The shape is bounded by a line that follows grid lines and does not
cross itself.
- The shape contains not more than 9 black squares.
120 Session 14: Mathematical Auction
A team has a stronger solution for this problem if it can draw a shape
with a bigger area.
Warm-up 1. Move exactly 3 matches to get 4 squares (no loose ends and
no overlapping matches).
121
122 Session 15: Combinatorics III. Complements. Snake Pit Game
Warm-up 2. Move exactly 2 matches to get 4 squares (no loose ends and
no overlapping matches).
However, this formula looks clumsy, and the numerical answer is not easy
to calculate.
The good news is that there is a better way of solving this problem. Let’s
start by calculating the following 2 quantities:
- the number of all 5-employee teams, which is C(15, 5),
- the number of 5-employee teams that include no roofers, which is
C(10, 5).
Do you see how these 2 quantities could help? Their difference is equal
to the number of teams that have at least 1 roofer! (See the picture.) It is
precisely the quantity that we are looking for!
All Teams
Thus, the alternative formula for the same answer is C(15, 5) − C(10, 5).
This formula is not only more compact, but it is also much easier to
compute:
Problem 2. In how many ways can one choose 4 cards out of a deck of 52
in such a way that at least 1 ace would be chosen?
Problem 2 Discussion. We introduce two solutions: the first one does not
use complements, and the second one does.
Solution without complements: “At least 1 ace” means either 1 or 2
or 3 or 4 aces. Let’s count the number of ways to choose cards for each of
these options and sum up all the answers:
- four cards, 1 ace included : C(4, 1) × C(48, 3),
- four cards, 2 aces included: C(4, 2) × C(48, 2),
- four cards, 3 aces included: C(4, 3) × C(48, 1),
- four cards, 4 aces included: C(4, 4) × C(48, 0).
The total is
Instead of computing the value of this formula, let’s get to the second
solution.
The solution that uses the complements principle: To count the
sets of cards with 1 ace, we:
- count the total number of sets,
- count the number of sets without any aces.
The difference between these 2 quantities will be the number of sets with
at least 1 ace:
Problem 8. How many 5-letter words are there in Foma’s language that
include at least 1 letter A?
Problem 6. There are 12 kids who would like to stand in a circle for a
Maypole Dance. In how many ways can they do it if 2 of them, Abigail and
Fiona, would like to stand next to each other?
Problem 7. There are 10 merchants in the city of Burgerhoff. Two of them
belong to the Bakers Guild, 5 are members of the Goldsmith Guild, and the
rest are Traders. The Burgerhoff town council has 5 open positions—3 senior
counselors and 2 junior counselors. In how many ways can these positions
be filled if every guild plans to claim 1 senior position?
Problem 8. How many ways are there to split 9 kids into 3 teams of 3?
Problem 6. Several segments have been marked on a line. The left half
of each segment has been colored red, the right half—blue. It turns out that
15.4. Take-Home Problem Set 127
all the left halves form 1 continuous red segment, and all the right halves
form 1 continuous blue segment. The red segment is 20 cm longer than the
blue one. Prove that out of the original segments it is possible to find 2 such
that 1 will be at least 40 cm longer than the other.
Session 16:
Combinatorics IV.
Combinatorial Conundrum
During the past several lessons, we have been learning combinatorial rules
and principles. We learned a couple of formulas as well; however, our primary
goal was not to memorize the formulas but to develop an understanding of
where these formulas came from.
By now, the students have had enough practice to understand that a
variety of techniques can be applied to the same combinatorics problem.
The real art is to be able to construct the best combinatorial model of the
problem, the one that would generate an efficient and elegant solution. Thus,
our goal was to teach them meaningful problem solving and to develop their
combinatorial reasoning and intuition.
The topic of today’s lesson is closely aligned with this goal. We will
discuss several combinatorial problems of the types we have not seen before.
We will demonstrate how an insightful way of thinking about a problem
would allow us to restate it as a different (yet familiar) problem that we
know how to solve.
129
130 Session 16: Combinatorics IV. Combinatorial Conundrum
Warm-up 3. Move two matches so that this cow is looking to the left.
S P Y F B I
DOG DOG DOG DOG DOG DOG DOG
F B I S P Y DOG
Now, the original problem can be restated as follows: “In how many ways
can these 7 tokens be rearranged?” This new problem is easier: 7 objects can
be rearranged in 7! different ways. (And, yes, we get the same correct
answer!)
Would this new approach work for Problem 3 as well? Yes, it would!
Suppose that we have 5 tokens: the first 3 with the letters F, B, I, and the
last 2 with the words SPY and DOG. Then all we need is to find the number
of ways to rearrange these 5 tokens—the answer is 5!.
F B I SPY DOG
Problem 4. The school gymnastics team has 8 girls. In how many ways
can we choose 3 girls to be a team treasurer, a team coordinator, and a team
captain?
Problem 5. The school gymnastics team has 8 girls. In how many ways
can we choose 3 of these girls to participate in a meet?
✔ ✘ ✘ ✔ ✔ ✘ ✘ ✘
A student asks if applying the combinations formula would prove that
these two quantities are equal? Thus, we run a short calculation: the number
of ways to choose 5 girls out of 8 is (8 × 7 × 6 × 5 × 4)/(5 × 4 × 3 × 2 × 1).
Canceling 5 × 4, we get (8 × 7 × 6)/(3 × 2 × 1), which is exactly the number
of ways to choose 3 girls out of 8. Thus, indeed, the formula also proves that
these numbers are the same.
by 3 orange circles, and replace 5 crosses by 5 blue circles. Next, I invite the
kids to take a good look at the drawing.
B O B O O B B B
Problem 8 Discussion. Max points out that this problem can be solved
step by step. We could gradually calculate the number of ways to reach every
intersection, starting from the closest to corner A. This approach is correct;
however, it would be nice for us to find a shortcut. Suppose, for example,
that the grid is 100 × 100; in this case, it would take us forever to solve the
problem in this way.
Let’s attack this problem by answering the following series of questions:
- How long would a route from A to B be (we measure it by the number
of blocks)?
134 Session 16: Combinatorics IV. Combinatorial Conundrum
The answers to these questions are going to help us to find the solution.
First, let’s observe that any route from A to B has length 8 and is composed
of 5 horizontal and 3 vertical segments. Next, let’s decide that we are going to
describe a route using two letters: U for “up” and R for “right”. In this case,
the black and dotted routes in the picture would correspond to the strings
URURURRR and RRURRURU. Do these strings remind us of something?
Yes, this is a reincarnation of the problem about all possible patterns from
8 beads with 5 beads of one color and 3 of another. In the MathHattan
problem, we have to find all possible patterns made up from 3 letter U’s and
5 letter R’s. Thus, the answer to this problem is C(8, 3) = 8×7×6/(3×2×1).
Problem 9. Your goal is to get from point A to point B. However, this time
you want to visit the corner where your favorite ice cream shop is located
(see the picture). How many different routes can you take?
Ice
Cream
Problem 10. Your goal is to get from point A to point B. However, you
would like to avoid the corner where your enemy, Rowdy Rick, usually hangs
out (see the picture). How many different routes can you take?
16.3. Take-Home Problem Set 135
Rowdy
Rick
Problem 2.
(a) How many different patterns can you make from 10 precious stones—
4 sapphires and 6 rubies? (A pattern is a distinct sequence of stones.)
(b) How many different patterns can you make from 4 sapphires, 4
rubies, and 2 emeralds?
(c) How many different patterns can you make from 4 sapphires, 3
emeralds, 4 rubies, and 1 onyx?
Problem 4. Tim the Ant lives on a 3D cubical grid (lattice) with dimen-
sions 4 × 4 × 1 (see the picture). In how many ways can Tim crawl from the
lower left front corner (Point A) to the upper right back corner (Point B) of
the lattice if he wants to take the shortest route possible?
136 Session 16: Combinatorics IV. Combinatorial Conundrum
Point B
Point A
Problem 5.
(a) A coin is tossed 20 times. How many different outputs (sequences
of heads and tails) can you get?
(b) A hoppy rook stands at the leftmost square of a 20-square-long strip.
In a single hop, the rook can jump to the right over any number of squares.
In how many different ways can the rook hop to the last square of the strip?
(Examples: The rook can get there in one 19-square-long hop, or in one
2-square-long hop followed by one 15-square hop, and by one 2-squares hop,
and so on ....)
Downtown Mathhattan
Movie
Theater
Lucky
Corner
Unlucky
Corner
Your
House
Problem 2.
(a) In how many ways can you place 7 different coins into 3 pockets?
(b) In how many ways can you place 7 identical coins into 3 pockets?
Session 17:
Magic Squares and Related Problems
1
This lesson follows Mark Saul’s presentation on magic squares [15].
139
140 Session 17: Magic Squares and Related Problems
To figure out the correct answer, we ask the kids to solve several easier
versions of the same puzzle: the sum of the digits that is equal to 2, to 3,
and to 4.
Working on these easier problems, the students start seeing the pattern
in the answers. However, it takes us some time to explain and justify this
pattern. For the answer and the explanation, check the “Solutions” section.
History: For hundreds and hundreds of years, magic squares have been
considered a fascinating and entertaining outlet for creating mathematical
knowledge—as well as a source of divination and magic. The first record
of magic squares dates back to ancient China, more than 3,000 years ago.
From China, magic squares most likely traveled to India, the Arab countries,
and Europe. In all these countries, magic squares were used in philosophy,
alchemy, astrology, and art.
For example, this 4×4 magic square appears in the 15th-century painting
of Albrecht Durer, the famous German artist. (The magic constant of this
square is equal to 34. The numbers 15 and 14 in the bottom row indicate
the year the painting was created—1514 AD.)
At the same time, mathematicians took a serious
interest in researching the properties of magic squares.
16 3 2 13
They extended magic squares to 3 dimensions, came up
5 10 11 8 with a series of rules that could be used to construct
magic squares, and so on. Today, magic squares are
9 6 7 12
studied in relation to several branches of mathematics.
4 15 14 1 A lot of math hobbyists have treated and still treat
magic squares as a source of both enlightenment and
amusement. Young Benjamin Franklin, the future president of United States,
entertained himself by devising 8×8 and 16×16 magic squares.
as the number 1.) The final goal for each group is to arrange its set of cards
into a magic square. We will be moving toward this goal in gradual steps.
The first challenge is to construct a square with equal sums
across all rows. As these squares are being constructed, we discover that
row sums are the same in all groups—they are equal to 15. When asked why,
the children come up with the explanation: the sum of the numbers in all 3
rows is equal to the total sum of all the numbers in the squares, which is 45
(45 = 1 + · · · + 9). Since all 3 sums must be the same, the sum across each
row should be equal to one-third of the total, which is 15.
Thus, we just learned how to calculate the magic constant of any square:
we simply divide the total sum of all the numbers by the number of rows (or
columns)!
The next challenge is to modify the square to set all column
sums to be equal as well. Since by this time the children already know
what the magic constant is, this task does not take long.
The last challenge is to fix the sums on the diagonals. This part
is the most difficult one. Therefore, you may need to help the students by
pointing out which card needs to be placed in the most strategic position—in
the central cell.
After each group finishes constructing its square, I invite the group
representatives to draw them on the board. (Some of the possible squares are
shown below.) This collection of squares immediately triggers a discussion.
4 9 2 6 1 8 6 7 2
3 5 7 7 5 3 1 5 9
8 1 6 2 9 4 8 3 4
Question 1. Why do all the squares on the board have the same number
in the center?
Discussion. We will provide two explanations of this fact, each demon-
strating a very important idea. The first one will be using the constructive
trial and error approach to eliminate all possible candidates, except the
number 5. The second explanation, which is shorter and more elegant, will
illustrate an extremely useful double-counting technique.
- Constructive trial and error. Once we check all possible candidates
for the number in the center, we will prove that nothing but 5 works.
Suppose that the number 9 is in the center. Where can the number 8
go then? If we place 8 in a corner, it will share a diagonal with 9; if we put
it on a side—it will share a row or a column with it. Then the sum across
this diagonal (or row or column) will be at least 8 + 9 = 17, which is way
more than the magic constant of 15. Therefore, 9 cannot be in the center.
Can 8 be in the center? No, since it will have to share a row, a column, or a
diagonal with 9. For the same reason, neither 7 nor 6 can be in the center.
(Both 7 + 9 and 6 + 9 are greater than 15.)
142 Session 17: Magic Squares and Related Problems
Using this knowledge, let’s see how many different magic squares we
can construct. We start by drawing a blank 3 × 3 square and placing 5
in the central cell. Next, we start filling the rest of the cells. Suppose
that we decide to start from the upper-right corner. Suppose that out of
4 candidates, the numbers 2, 4, 6, and 8, we picked number 2. Number
8 has to go in the opposite corner. We are now left with 2 empty corners
and with 2 numbers—4 and 6. We can position 6 in 2 ways—clockwise or
counterclockwise from 2. After that, we have no choice in where to place 4,
1, 3, 7, and 9. This process is reflected in the picture below:
2 2 6 2 6 2 6 7 2
5 5 5 5 1 5 9
8 8 8 4 8 3 4
Also, we can add magic squares to each other, and we can even multiply
these squares by various numbers before adding them—the squares that we
get will all be magic.
Problem 2. Prove that in any 3 × 3 magic square the sum of the numbers
in the corner cells is equal to the sum of the numbers in the side cells. (In the
picture, the side cells are marked by dots, and the corner cells—by crosses.)
X O X
O O
X O X
17.5. Take-Home Problem Set 145
Problem 7. The 4 × 4 magic square was filled with the numbers from 1
to 16. Some of these numbers were erased. Restore the square.
4 15 5
8
7
Session 18:
Double Counting, or There Is More
than One Way to Cut a Cake
separate the coins into 2 groups so that both groups have the same number
of coins heads up. (In the dark, you cannot see or feel if a coin is heads up
or tails up. However, you may move the coins and turn them over.)
Problem 1.
(a) Orcs and goblins, 40 creatures altogether, are standing in a rect-
angular formation of 4 rows and 10 columns. Is it possible that the total
number of orcs in each row is 7, and in every column 3?
(b) A group of Girl Scouts is standing in a rectangular formation of 12
rows. Each girl is wearing several badges. It is known that the total number
of badges in every row is 10, and in every column it is 8. How many columns
of girls are there?
Problem 1 Discussion.
(a) Let’s calculate the total number of orcs in 2 ways —row by row and
column by column. When counting row by row, the total number should be
equal to 4 × 7 = 28. However, when counting column by column, the same
number should be equal to 10 × 3 = 30. Therefore, such an arrangement is
impossible.
7 goblins in
each row
3 in every
column
(b) The total number of badges worn by all the girls can be counted
column by column or row by row. Since there are 10 badges in every row,
this total is 12 × 10 = 120. However, the same quantity should be equal to
the sum of the badges counted column by column. Since there are 8 badges
in each column, the number of columns must be 120/8 = 15.
Before moving on, we bring the technique that we just used to the
students’ attention: in each of the problems above, we found two different
ways to calculate the same quantity. Since the results must be identical, we
ended up with an equation that allowed us to solve the problem.
Let’s solve several more problems that demonstrate the power of this
double-counting approach.
18.2. Double Counting 149
Problem 4. This is a map of a castle. The 8 circles stand for the 8 towers,
with a prisoner being held in every tower. The towers are connected by 12
walls. Soldiers, which are positioned on each wall, are guarding the prisoners.
Every prisoner is guarded by all soldiers positioned on all 3 walls connected
to his tower. Twelve groups of guards, containing 1, 2, 3, . . . , 11, and 12
people each are to take guard on the castle walls, 1 group per wall. Can you
position these 12 groups in such a way that every prisoner would be guarded
by the same number of guards?
example, the balance of D1 is included in (D4, D5, D1), (D5, D1, D2), and
(D1, D2, D3) combinations. Thus, if we add all 5 totals, we get a number
that includes 3 copies of a balance of every bank. Thus, this sum of these 5
totals is equal to 3 times the total balance of all the banks: 3 × (D1 + D2 +
D3+D4+D5). Since each of these next-to-each-other totals is positive, their
sum is positive. It follows that the sum of the balances of all the banks is
positive as well.
D1
D5 D2
D4 D3
We finish with the classic problem about the number of black and white
patches on a soccer ball.
Problem 6. A soccer ball is stitched together from several black pentagons
and white hexagons. These are arranged in such a way that at the sides of
each black pentagon there are 5 white hexagons. Also, at the sides of each
white hexagon, there are alternating black pentagons and white hexagons.
How many pentagons and how many hexagons make a soccer ball if there
are 32 polygons (panels) altogether?
First, let’s find a way to count these edges via black panels. Suppose
that we have x black panels. Each black panel borders 5 white panels; thus
the total number of black-white edges is 5x. Next, let’s concentrate on the
152 Session 18: Double Counting
white panels. The number of white panels is 32 − x, and each white panel
has 3 black panels on its sides. Therefore, the number of white-black edges
is 3(32 − x).
We counted the same quantity in 2 different ways, and we have an
equation!
5x = 3(32 − x),
8x = 96,
x = 12.
Therefore, the number of black pentagons is 12, and the number of white
hexagons is 20.
For Teachers: Unless you are teaching an advanced group, you will not
get to the soccer ball problem during a single lecture. Also, this problem
may be too difficult for younger students. However, the problem is such
a classic example of double counting that it would have been unfair not
to mention it. Use this problem at your discretion.
Now, it’s time for independent problem solving. It takes experience and
intuition to recognize a double-counting problem and to figure out which
quantity should be double counted. Therefore, to get on a solid footing
with the double-counting method, students need a lot of practice. Double-
counting problems make up the majority of today’s problem set. Also, the
follow-up section contains a list of additional problems.
(c) Would you be able to solve this puzzle for a number other than 12?
Problem 4. Sixty people were riding a tram. Out of this group, there
were several conductors and several fake conductors (people who were im-
personating conductors), several inspectors and several fake inspectors, and
perhaps some regular passengers as well. The total number of impersonators
(fake conductors and fake inspectors) was 4 times smaller than the total
number of real conductors and inspectors. The total number of inspectors
(real and fake ones) was 7 times greater than the total number of conductors
(real and fake ones). How many of the tram riders were regular passengers?
Problem 5. Several films were nominated for the “Best Math Movie”
award. Each of the 10 judges secretly picked the top movie of his or her
choice. It is known that out of any 4 judges, at least 2 voted for the same
film. Prove that there exists a film that was picked by at least 4 judges.
A B
dandelion flowers and 14 white ones; today it has 15 yellow ones and 11
white ones.
(a) How many yellow flowers were there the day before yesterday?
(b) How many white flowers will be there tomorrow?
Problem 4. Can you place all the integer numbers from 1 to 6 at the
edges of a tetrahedron in such a way that the sums of the numbers at all the
vertices will be the same?
Problem 6. An eating contest lasted for 2 days. During the first day, each
participant ate as many hot dogs as all other participants combined ate on
the second day. Prove that each participant ate the same number of hot
dogs.
Problem 8. Count Dracula has 100 golden thalers, and he wants to distrib-
ute them between 3 charitable causes: Necromancy Legalization, Defense of
Cannibalism, and Blood Drives. He always gives a whole number of thalers,
and he wants to make sure each organization is supported. In how many
ways can Dracula make his donation?
It’s now time to approach a really important topic: divisibility and re-
mainders. This topic, while interesting and important on its own, is also
a gateway to a branch of mathematics called number theory. Number theory
was developed to study the general properties of numbers, especially integers.
This branch of mathematics, which was originally researched for its own sake,
turned out to be indispensable for computer science, software engineering,
cryptography, and a broad spectrum of other theoretical and applied disci-
plines. Divisibility and remainders also make a great math circle subject, as
they can be taught for several years in a row at increasing complexity levels.
Today’s lesson is a review of the material that we studied during Year 1
of our circle. (See [1].)
1
When we talk about divisibility, we imply that we are working with integer numbers
only. Therefore, for the sake of brevity, we may occasionally omit the word “integer” if it
is indicated by the context.
20.2. Divisibility 163
Divisibility of a sum
Suppose that two integers, A and B, are divisible by integer K. In this case,
the sum and the difference of these numbers, A + B and A − B, are divisible
by K as well. (We can write this property using the divisibility notation: if
K|A and K|B, then K|(A + B) and K|(A − B).)
Proof . Since A is divisible by K, then A = K × X, and B = K × Y ,
where X and Y are some integers. Therefore, A + B = K × X + K × Y =
K × (X + Y ).
The same proof would work for subtraction.
Divisibility of a product
Suppose that at least one of the numbers A and B is divisible by K. Then
their product A × B is divisible by K as well.
Proof . Suppose that A is divisible by K. Then A = K × X, and
A × B = K × X × B = K × (X × B). Thus, A × B is divisible by K.
These two simple properties are surprisingly useful.
Example: Is the number 111,222,333,444,555 divisible by 111?
The answer is positive. One way to prove this fact would be to do the
long division. However, being lazy, we would prefer to find a shortcut. Thus,
let’s notice that the numbers 111, 222, 333, 444, 555 are all multiples of 111.
Thus, any combination of these numbers (multiplied by integer coefficients)
will be a multiple of 111 as well.
Next, let’s observe that
111,222,333,444,555 = 111 × 1012 + 222 × 109 + 333 × 106 + 444 × 103 + 555.
Therefore, it is divisible by 111.
Prime Factorization
The next topics on our review list are prime numbers and prime factorization.
Notation
If we do not know the prime factorization of a number, we could use variables.
For example, we can express a generic number and its prime factors as A =
p1 × p2 × · · · × pn . In this formula, the variables pk are used to represent
unknown prime factors. (Since we do not know how many prime factors the
number has, we use the variable n.)
If exponential form matters for a problem, we can employ more advanced
notation: A = pk11 × pk22 × · · · × pkmm . Here, we use variables for both the
distinct prime factors of the number and their exponentials.
Often, younger students tend to shy away from such a notation. It is not
a big deal, and there is no need to force it on them—eventually, they will
learn it. Since we would like this material to be accessible for this younger
group, we will stick to graphical models, which are more intuitive. We will
be visualizing the prime factors of a number as a “bag” filled with these
factors. Such a visualization emphasizes the role of the prime factors as the
building blocks of a number. It also allows us to produce mathematically
rigorous explanations, with the additional benefit of providing a visual way
of thinking about divisibility.
The picture below has three examples that illustrate this model: the first
drawing represents the number 920 and its entire collection of prime factors;
the second drawing—some number A, with prime factorization unknown;
and the third one—some number B that has prime factor 2,017.
920 A B
2
2 p1 ... ...
2
5 ... pn 2017
23
20.2. Divisibility 165
AxB
A B
The factors in the first group multiply to B; in the second group, they
multiply to a number K such that A = B × K. Thus, A is divisible by B.
A = 2 × 2 × 3 × 3 × 3 × 7 × 11 × 37.
The answer to the first question is positive because the entire collection
of prime factors of B is contained in the collection of prime factors of A.
The second answer is negative because C has three copies of prime factor
2 and A has just two copies.
Practice problems
Let’s solve a couple more practice problems. While the problems themselves
are not that challenging, the students usually have difficulty explaining their
solutions with mathematical rigor.
Problem 2 Discussion. The answer is negative, and the reason is that for
2A to be divisible by 3, one of its prime factors has to be 3. Where would this
3 come from? Since 2A is a product of 2 and A, then the prime factors of 2A
are the union of the prime factors of 2 and A. However, 3 does not belong
to the set of prime factors of either of these numbers. Therefore, 3 does not
belong to the union either. The picture below visualizes this explanation.
2xA
A
Does not have factor 3 2 Does not have factor 3
prime factors of A2 = A × A are the union of two sets, each being the set
of prime factors of A. The three copies of factor 2 are distributed between
these two sets; thus, at least two factors 2 belong to one of these sets. Then,
A is divisible by 2 × 2 = 4. Therefore, A2 is divisible by 4 × 4 = 16.
AxA AxA
A A A A
2 2 2 2 2 2
A B
C D
170 Session 20: Divisibility I. Review
1
This warm-up was inspired by the article on the bounded gap between primes in the
New Yorker Magazine [16].
171
172 Session 21: Divisibility II. Relatively Prime Numbers; GCF and LCM
There also exist permutable primes, which are numbers that remain
prime regardless of how their digits are arranged (for example, 337, 373, and
733 are all prime), palindromic primes (primes that read the same forward
and backward), holey primes (the ones which have only digits with holes),
and many other special types of primes.
Of all the baffling questions about prime numbers, the most
important have always been about the distribution of primes:
- Is there a formula for prime numbers?
- How frequently do prime numbers occur?
- As prime numbers get bigger, what happens with the gaps between
them? Do they get bigger as well?
While the answers for some of these questions are already known, others
remain a mystery.
It was proved many years ago that there are infinitely many prime
numbers. (This fact was established by Euclid around 300 BC.) However,
prime numbers appear at random—no formula for generating prime numbers
has been discovered so far.
As numbers get larger, the primes occur less and less frequently. For
example, we all know that many more primes are clustered around 10 than
around 1,000. And, indeed, there are 5 primes between 1 and 10, 25 primes
between 1 and 100, 168 between 1 and 1,000, and 1,229 between 1 and 10,000.
As prime numbers become more and more dispersed, the gaps between
them grow wider. It fact, for any width, it is possible to come up with a
stretch of consecutive numbers that are all composite. (The challenge of
pinpointing such a set is not that difficult.)
At the same time, a conjecture (a hypothesis) was proposed in the 19th
century. It states that, no matter how far you get on the number line, you
will always be able to find a pair of prime numbers that are twins (two
apart). For more than a hundred years, mathematicians have not able to
prove this fact; however, these days they are getting close. A groundbreaking
theorem was proved several years ago that paves the way for the “twin primes”
conjecture.2
Another famous theorem, the Goldbach Conjecture, asserts that every
even integer greater than 2 can be expressed as a sum of 2 primes. For
example, 6 = 3 + 3, 8 = 3 + 5, 24 = 11 + 13, 100 = 53 + 47. This conjecture
is more than 250 years old, and it has not been proved yet!!!
Thus, after centuries of studies, prime numbers still hold plenty of mys-
teries and secrets for us and plenty of challenges for the greatest modern-day
mathematicians.
2
The “Bounded Gap Between Primes” theorem pinpoints a number, a gap bound,
such that as you go further out along the number line, you will occasionally be finding
pairs of primes that are closer than this bound. In the original theorem, proved by Yitang
Zhang in 2012, this bound is equal to 70 million. These days, mathematicians are working
on bringing it down to 2.
21.2. Relatively Prime Numbers 173
This useful rule can be generalized even further. Suppose that we would
like to test divisibility by some number. If we can split this number (the
divisor) into the product of several factors that are all relatively prime to
each other, the problem can be simplified: if the dividend is divisible by each
factor, then it is divisible by the entire product.
174 Session 21: Divisibility II. Relatively Prime Numbers; GCF and LCM
Example:
- To check divisibility by 60, it is sufficient to test divisibility by 3, 4,
and 5.
- To check divisibility by 180, it is sufficient to test divisibility by 9, 4,
and 5.
3 2
3 3 2
2 2
Next, let’s reformulate the same idea in terms of the generic numbers A
and B. The greatest common factor of A and B consists of all prime factors
that are shared by these numbers. (See the picture.)
B
A
GCF(A, B)
All common
prime factors of
A and B
21.4. Least Common Multiple (LCM) 175
Problem 1 Discussion. Suppose that the numbers are A and B and that
their GCF is K. Since both A and B are divisible by K, then their difference
should be divisive by K as well. Therefore, 6 is divisible by K. Thus, K
could be 1, 2, 3, or 6. It is easy to come up with the examples for each of
these values: 7 and 13, 8 and 14, 9 and 15, 12 and 18.
This problem illustrates the important fact that the difference (or sum)
of a pair of numbers is always divisible by their GCF.
270 = 2 33 5
144 = 24 32
Another way of visualizing the same process uses the “bag of prime
factors” model. The drawing below helps us to realize that, to construct
the LCM, we need to take:
- 1 copy of every factor in the prime factorizations of the numbers 270
and 144 that they share in common (factors 2, 3, and 3),
- and 1 copy of every factor that is unique to each number (factors 3 and
5; factors 2, 2, and 2).
270 144
3 2
33
2
5 2 2
You are probably already able to see why this relationship is true. If not,
read through the previous sections one more time and take another look at
the pictures that illustrate how GCF and LCM can be assembled from the
prime factors of the numbers A and B. Can you prove this fact now?
We are done with the core properties of GCF and LCM; it’s problem-
solving time now.
In addition to the main problem set, this lesson includes one practice
set that is composed of simple GCF and LCF problems that emphasize
understanding of how GCF, LCM, and factorization are related.
Problem 2. Little Shmuel has several aunties who live in the town called
Chelm. When Shmuel visited Chelm on January 1st, each auntie cooked
a dish for him: Auntie Edis made pancakes; Auntie Yetta baked pot pies;
Auntie Malka cooked borscht soup; and Auntie Sonia made stuffed cabbage.
How soon should Shmuel visit Chelm next time if he wants to sample all the
dishes again and if Auntie Edis makes pancakes every 2nd day, Auntie Yetta
bakes pot pies every 3rd day, Auntie Malka cooks borsch every 4th day, and
Auntie Sonia makes stuffed cabbage every 7th day?
178 Session 21: Divisibility II. Relatively Prime Numbers; GCF and LCM
Problem 3.
(a) Two numbers x and y are relatively prime, and their product is
equal to 23 × 52 . What could these numbers be? Find all the answers.
(b) The GCF of the numbers x and y is 6, and their product is equal
to 28 × 35 . What could the numbers x and y be? Find all the answers.
Problem 4.
(a) Emma says that since 24 = 4 × 6, divisibility by 24 should follow
from divisibility by 4 and by 6. Rachel says that since 24 = 8 × 3, divisibility
by 24 should follow from divisibility by 8 and by 3? Which girl is right and
why?
(b) Joseph says that since 60 = 3 × 4 × 5, divisibility by 60 follows
from divisibility by 3, by 4, and by 5. Milo says that since 60 = 2 × 3 × 10,
divisibility by 60 follows from divisibility by 3, by 2, and by 10. Which boy
is right?
(c) Come up with an easy test for divisibility by 180.
Problem 5.
(a) Can you find a pair of numbers such that their difference is 24 and
their greatest common factor is 12?
(b) Can you find a pair of numbers such that their difference is 12 and
their greatest common factor is 24?
(c) Can you find a pair of numbers such that their difference is 24 and
their greatest common factor is 7?
Problem 6.
(a) While visiting Cape Verde, Pirate Jim and Pirate Bob bought several
chocolate chip cookies each. Jim paid 93 copper coins for his cookies, and
Bob paid 102 copper coins. What could the price of a single cookie be if it
is an integer?
(b) Pirates Lisa and Elsa bought several barrels of gunpowder each.
Elsa paid one gold coin more than Lisa. What could the price of a single
barrel be if it is an integer?
(c) Captain Hook and Captain Kid bought several tricorn hats each.
Captain Hook paid 6 silver coins more than Captain Kid. What could the
price of a tricorn hat be if it is an integer?
Problem 2. There are horses and cows on a farm. The number of horses
is half of the number of cows plus 10 more. The number of cows is 20 more
than the number of horses. How many horses and how many cows are there
on the farm?
Problem 3. Michael has a wooden triangle with one of its angles equal to
40 degrees. Using this triangle, how can he measure the following:
(a) a 160-degree angle?
(b) a 20-degree angle?
(The sizes of the other angles are unknown.)
Problem 4.
(a) King Haggard has a velvet pouch filled with diamonds. He can
divide these diamonds into 3 equal piles, 4 equal piles, or 5 equal piles. How
many diamonds does he have if it is known that his collection contains less
than 100 diamonds in total?
(b) King Haggard has a stash of gold coins. He is 1 coin short of being
able to divide these coins into 4 equal piles or 5 equal piles or 6 equal piles
or 7 equal piles. How many coins does he have if he has fewer than 500?
Problem 5. What is the smallest integer number n such that 1,000! is not
divisible by 38n ?
Problem 6. For each shape below, place integer numbers at the nodes in
such a way that:
- If two nodes are connected by an edge, then the numbers at these nodes
are not relatively prime.
- If two nodes are not connected, then the numbers at these nodes are
relatively prime.
181
182 Session 22: Divisibility III. Mathematical Race Game
Problem 2. Two numbers are relatively prime, and their product is equal
to 23 × 52 × 133 . What could these numbers be? Find all the answers.
22.3. Take-Home Problem Set 183
Problem 7. There are 101 wise men standing in a circle. Each one of
them believes that either the Earth is flat or the Earth is round. Every five
minutes, all at once, the wise men voice out their opinions on this matter.
Immediately after that, each wise man for whom both neighbors disagree
with him changes his opinion. Prove that after several iterations the wise
men will stop changing their points of view.
Session 24:
Divisibility IV.
Divisibility by 3 and Remainders
Since the topic of divisibility and remainders is relatively heavy with alge-
braic proofs, we will be approaching it gradually. Today, we will start with
a special case: we will be exploring divisibility by 3. This approach will
help us to pave our way into divisibility theory. The ideas and techniques
that we discuss today will fully illustrate the general model; however, our
proofs will be more “lightweight” than “generic” divisibility proofs. Besides,
remainders-by-3 problems are interesting in their own right and have their
unique place in the collection of divisibility problems.
X + Y = 3K + 2 + 3M + 2
= 3K + 3M + 2 + 2
= 3K + 3M + 3 + 1
= 3(K + M + 1) + 1.
the same way, filling the rest of the cells one by one. The complete table is
below:
+
0 0 1 2
0 0 1 2
1 1 2 0
2 2 0 1
Now, it’s time to formulate the generic rule for how division-by-3 remain-
ders behave under addition.
It would be tempting to say that the remainder of the sum of two numbers
is equal to the sum of their remainders. Unfortunately, this statement is
not quite right: take a look at the pair of remainders (2, 2). While their sum
is 4, the remainder of their sum is 1.
Thus, the correct rule is: the sum of two numbers has the same
remainder as the sum of their remainders.
Let’s also point out another important idea that follows: if we need
to calculate the remainder of a combination of additions and
subtractions, we can simplify the task by working with the remainders
instead of the original numbers.
3
3
1
Now suppose that each of the two numbers has remainder 2. What
would the remainder of their product be?
Again, let’s start with the visual proof. The picture below illustrates
the multiplication of two numbers that have remainders 2. Similarly to the
previous proof, every gray 3 × 3 square is a multiple of 3, and every light
gray 2 × 3 rectangle is a multiple of 3 as well. Therefore, the remainder is
defined by the 2 × 2 white square. Three 1 × 1 white squares make a multiple
of 3 (L-shaped in the picture). Thus, the actual remainder is the 1 × 1 white
square, which has an area of 1.
3 3 3 2
3
3
2
Similarly, the product of the two numbers with remainders 1 and 2 will
have remainder 2.
Finally, we can fill the entire multiplication table.
× 0 1 2
0 0 0 0
1 0 1 2
2 0 2 1
Modulo notation
The phrase “remainder when divided by ...” is a rather long one. Mathemati-
cians, a lazy bunch, came up with a way to shorten things—the “modulo”
notation, which stands for “the remainder when dividing”. For example, the
phrase “remainder of 10, when divided by 3" can be replaced by “10 modulo
3”, and the phrase “5 has remainder 2 when divided by 3” can be replaced
by “5 is equal to 2 modulo 3”.
Let’s practice:
- “19 modulo 3” stands for “remainder of 19 when divided by 3”.
- “19 is equal to 1 modulo 3” means “19 divided by 3 has remainder 1”.
- “20 is equal to 0 modulo 2” means “20 divided by 2 has remainder 0”.
- “17 is equal to 2 modulo 5” means “17 divided by 5 has remainder 2”.
196 Session 24: Divisibility IV. Divisibility by 3 and Remainders
The special congruence symbol “≡” can be used to shorten things further.
For example: “5 is equal to 2 modulo 3” can be written as “5 ≡ 2 mod 3”.
For Teachers: In our book, we will keep using "remainders" instead
of modulo terminology because this is way more descriptive for younger
students. You are welcome to use the modulo notation if it is suitable
for the level of your group.
Warm-up 2. When can you add 2 to 11 and get 1 for the correct answer?
should land at 0, instead of 141 it should land at 1, and so on. Now, suppose
that the character has made a long jump; now, it has to land far off the
screen, at x = 183. How could you find out the “wraparound” coordinate of
its landing spot? What if it has to land at x = 301? What if it has jumped
left and has to land at x = −10?
You have probably already figured out the answer! The rule is very easy
to describe in terms of integer division and remainders: the “wraparound” x-
coordinate is equal to the remainder of the actual x-coordinate when divided
by the screen width (in our case, by 140).
Now, let’s get to the definition.
Definition. An integer A has the remainder R when divided by a positive
integer B if A = B × K + R, where K and R are integers and 0 ≤ R < B.
B B B
R remainder
objects objects objects
Let’s get to the properties of remainders. Since all our proofs will work
along the lines of the “divisibility by 3” proofs, we will be brief.
A2 objects
B B R2
objects objects
B B
objects objects R2
It is important to highlight one more time the fact that the remainder
of the sum is not always equal to the direct sum of the remainders. For
example, 15 and 16 have the remainders 5 and 6 when divided by 10, and
their sum of 31 has the remainder 1. It is easy to see that the sum of the
remainders, which is 5 + 6 = 11, is not equal the remainder of the sum.
Instead, the numbers 11 and 1 have the same remainder when divided by 10.
Applying the same reasoning, we can come up with а similar rule for
several numbers: the sum of several numbers has the same remainder as the
sum of their remainders.
Moreover, we can apply the same rule when we subtract numbers or
when we have a combination of additions and subtractions.
B
R2
The algebraic proof illustrates the same idea, expressed more compactly:
A1 × A2 = (B × k1 + R1) × (B × k2 + R1)
= B × k1 × B × k2 + B × R1 + B × R2 + R1 × R2
= B(B × k1 × k2 + R1 + R1) + R1 × R2.
powers 31 32 33 34 35 36 37 38 ...
remainders 3 2 6 4 5 1 3 2
Therefore, 396 has the remainder 1, and 3100 has the remainder 4 when
divided by 7.
Problem 4. Prove that n3 + 5n is always divisible by 6.
Problem 4 Discussion. Let’s start by splitting 6 into the product of two
coprime numbers, 6 = 2 × 3. Next, if we could prove that the expression is
divisible by 2 and by 3, we would know that it is divisible by 6. It is easy to
justify divisibility by 2: whether we choose an odd or even value for n, the
expression n3 + 5n would always end up being even. To prove divisibility by
3, the easiest approach would be to construct a table of remainders for this
expression. Three possible remainders when n is divided by 3 are 0, 1, and
2.
n n2 n3 5n n3 + 5n
0
1
2
Let’s demonstrate how to fill this table using the last row as an example.
If n has the remainder 2, then n2 has the same remainder as 2 × 2 = 4,
which is 1. Then n3 has the remainder 1 × 2 = 2; and 5n has the same
remainder as 5 × 2 = 10, which is 1. Thus, the expression n2 + 5n has the
same remainder as 2 + 1 = 3, which is 0.
The completed table is below.
n n2 n3 5n n3 + 5n
0 0 0 0 0
1 1 1 2 0
2 1 2 1 0
Since all the remainders in the last column are 0’s, the expression n3 +5n
is always divisible by 3.
Let’s continue the lesson by asking the children to solve several problems
on remainders.
as possible. She added the remaining money to the piggy bank as well. The
third week, she bought as many 9-dollar books as possible and added the
leftovers to the piggy bank, too. Altogether, in three weeks the piggy bank
received 15 dollars. If Erica decides to spend her next allowance on 18-dollar
board games, how much money will she deposit to the piggy bank?
Problem 2. How many numbers between 1 and 2,015 have the sum of
digits that is divisible by 5?
Problem 3. Find the smallest number that has remainder 2 when divided
by 3, remainder 3 when divided by 4, and remainder 4 when divided by 5.
Problem 4. Prove that if a − b is divisible 7 and c − d is divisible by 7,
then ac − bd is divisible by 7.
Problem 5. Find a number n such that 30n − 45 is divisible by 239. (You
don’t need to calculate the number, just write it as a formula.)
Session 26:
Graph Theory I.
Graphs and Their Applications
Today, we are approaching the topic of graph theory, which is a beautiful and
useful area of mathematics. It provides a common foundation for problems in
a wide variety of subjects, ranging from computer science and engineering to
chemistry, biology, linguistics, and sociology. Proficiency with graph theory
is a must for a broad range of modern professions.
Warm-up 2. Link each house to its storage shed with paths so that these
paths do not cross and do not leave the frame. (A shed is always marked by
the same number as its house.)
2 3 2 3
207
208 Session 26: Graph Theory I. Graphs and Their Applications
by links called edges. For example, in the first problem, computers serve
as vertices and cable are edges; in the second one—towns are vertices and
roads are edges; in the thirds one—employees are vertices and friendships
are edges; finally, in the last one, vertices are vertices and, well, edges are
edges.
Can we come up with other problems that can be modeled in the same
way? Plenty. For example, we can talk about infrastructure and transporta-
tion: electrical grids, or airports and airline routes. Social networks are
another example of graphs; even the entire World Wide Web is a graph. The
next example comes from molecular chemistry and biology: atoms (vertices)
are held together by chemical bonds (edges) to form molecules (graphs).
It’s time to get back to the very first problem about 9 computers, each
connected to 3 others by cables. Is there a way to calculate the total number
of cables that will be needed for such a configuration?
In fact, there is. Each cable has 2 ends; therefore, if we calculate the
total number of cable ends and divide the answer by 2, we will get the total
number of cables. And the good news is that it is easy to calculate the total
number of cable ends. Each computer has 3 cables; thus, the total number
of cable ends is 3 × 9 = 27. So, the total number of cables is 27/2 = 13.5.
Wow! Since the number of cables must be an integer, it is not possible to
have half-a-cable! Therefore, such a configuration of computers is impossible!
We were able to solve this problem without making a single attempt at
constructing the network! The same approach will work for the rest of the
problems as well. For example, take a look at Problem 3, about the company
with 9 employees. We could count the total number of friendships similarly:
we will sum up the number of friends person by person and divide the total
by 2. We will end up with half a friendship, which is impossible.
For Teachers: There is a lot more about graphs that we did not have
time to discuss during this lesson. For example, we did not introduce the
“degree of a vertex” terminology, and we did not convert our algorithm
for calculating the number of edges into a full-blown “number of odd
vertices” theorem. We will be working on these during the next lesson.
Problem 2. There are 15 planets that circle the star called Aldebaran.
Some of these planets have signed trade agreements with each other. Could
it be possible that:
- 4 of these planets have exactly 4 trade partners each,
- 8 of these planets have exactly 5 trade partners each,
- the rest of these planets have exactly 3 trade partners each?
Problem 6. The 99 greatest scientists of Mars and Venus are seated evenly
around a circular table. If any scientist sees 2 colleagues from his own planet
sitting an equal number of seats to his left and right, he waves to them. For
example, if you are from Mars and the scientists sitting 2 seats to your left
and right are also from Mars, you will wave to them. Prove that at least 1
of the 99 scientists will be waving, no matter how they are seated around
the table.
Session 27:
Graph Theory II.
Handshaking Theorem
During this session, we will keep working on graph theory. We will introduce
several new definitions and discuss the “Even Number of Odd Vertices”
theorem. Also, we will do plenty of problem solving.
213
214 Session 27: Graph Theory II. Handshaking Theorem
In the image below, we have a graph with the degrees of the vertices
clearly shown.
2 2
2 0
3 1
Take another look at this picture: one of the vertices has degree 0. Is
such a vertex still part of the graph? It definitely is. For plenty of real-time
scenarios, we can end up with vertices that have no links with any others.
It could be a person at a party who does not know anyone else or a town
without an airport. Such a vertex would still be a part of its graph.
The picture above also illustrates that a graph can consist of several
“pieces” that are not linked to each other. Such pieces are called com-
ponents. (In the graph above, the first component contains 5 vertices,
and the second contains just 1 vertex.)
B C D
G
A F E
Take a look at the pictures below. The graph on the left has 3 compo-
nents. How many components does the graph on the right have?
In the picture below, the graph on the left is not complete, while the one
on the right is.
Capital Smallville
Let’s take a look at all the cities that are accessible from Smallville.
The Capital does not belong to this group. That means this component has
several towns with 10 roads each and 1 town with 1 road. So, the total
number of road ends in this component must be an odd number. (It is equal
to the sum of several 10’s and of a single 1.) However, we know that the
27.3. In-Class Problem Set 217
The Handshaking Theorem tells us that certain graphs (the ones with
odd numbers of odd vertices) are impossible. It is very easy for children to
fall into the logical fallacy of assuming that the opposite is equally true: if
a graph does not contradict the Handshaking Theorem, then it does exist.
This is incorrect: there might be other reasons that could make such a graph
impossible. The next problem explores this idea.
Problem 2.
(a) Can you draw a graph that has 8 vertices, each of degree 3?
(b) Can you draw a graph that has 21 vertices, each of degree 3?
(c) Can you draw a graph that has 20 edges, with all of its vertices
having a degree of 3?
For each part, either draw such a graph or explain why such a graph is
impossible.
218 Session 27: Graph Theory II. Handshaking Theorem
Problem 3. This year, 15 students registered for the summer “Hiking with
Llamas” backcountry trip. It is known that every participant is acquainted
with at least 7 more students from his school who registered for the same
trip. Show that all the children are, in fact, from the same school.
Problem 4. There are 12 towns on the Island of Knights and Liars; roads
connect some of them. Mr. X claims that a different number of roads start
in each town. Prove that Mr. X is a Liar.
Problem 5. Amoeba People from the planet Al-Dabra can grow any
numbers of arms they like. During the New Year fireworks, they all grabbed
each other’s hands in such a way that there were no extra hands left. Prove
that the number of odd-handed Al-Dabrian Amoeba People is even.
F B
E C
Problem 5. Every person from the Knights and Liars Island said 2 phrases:
- “I have an odd number of knight friends.”
- “I have an even number of liar friends.”
Is the total number of Islanders odd or even?
Problem 6. The remote country of Booroodoo has 2 airlines, Royal and
Republican. Each Booroodoo airport is served by 4 flights, 2 of which are
Royal and 2 are Republican. Out of all these flights, only 2 are international.
Prove that these 2 flights belong to the same airline.
During this session, we will introduce several more examples that illustrate
how graphs can be used for representing relationships and modeling problems
from different domains. The lesson is organized as a collection of problems
that demonstrate a wide variety of ways graphs can be applied to problem
solving.
Teaching supplies for this session:
- Printouts of the take-home problem set (one per student).
Directed Graphs
Problem 1. Bella is younger than Anna; Daniel is younger than Bella;
Anna is older than Cindy; Bella is older than Katie; Cindy is older than
Bella; Maria is older than Anna; Cindy is younger than Maria; Anna is older
than Cindy. Can you tell who is the youngest and who is the oldest?
221
222 Session 28: Graph Theory III. Solving Problems with Graphs
For this problem we definitely need directed edges; let’s assume that an
edge arrow points to a younger person. The directed graph will look like
this:
A
K
B
M D
C
edges to represent the doors. The result is a graph that corresponds to this
floor plan:
Such an approach would work not only for a small house but also for
something larger, such as a maze. The vertices of a graph could represent
maze junctions; if there exists a path that leads from one junction to another,
then the corresponding vertices would be connected.
With such an approach, a problem about a maze can be reformulated
in terms of a graph. The good news is that mathematicians and computer
scientists have come up with plenty of useful algorithms and problem-solving
techniques that work on graphs. For example, to discover a path that
connects points A and B in a maze, a computer can use a “find the path
between two vertices” algorithm.
It works the other way around as well: if we need to generate a maze,
we can start by using an appropriate graph generation algorithm to create a
graph. Afterwards, we can convert this graph into a maze.
our graph keeps growing. For example, from the beginning state is it possible
to get to these states: both boys and the boat on the other bank, the soldier
and the boat on the other bank, a boy and a boat on the other bank. Out
of all these new states, only the “both boys and a boat” state has a potential
to generate any new states.
(S, B2) (B1, BT)
(S) (B1, B2, BT)
Our goal is to keep building the graph until we get to the “game end”
vertex:
(B1, B2, BT)(S)
of edges: solid black lines would be connecting friends, and dashed black
lines—foes. (Alternatively, we can use markers of two colors.) This way, we
get a complete 6-vertex graph with each edge being either solid or dashed.
frie
nd K2 K3
s
K1 K4
s
foe K6 K5
Our goal is to prove that we can find a triangle made up of all solid edges
or all dashed edges. Let’s start by choosing 1 knight (K1). He is linked to
5 others; moreover, at least 3 of these links must be of the same type. Let’s
concentrate on these 3 identical links. Suppose that these are friendships:
Knight 1 is friendly with Knights 2, 4, and 5.
K2 K3
K1 K4
K6 K5
In this case, could Knights 2 and 4 be friends? If they are, then the
problem is solved: Knights 1, 2, and 4 form a group of 3 friends. Similarly,
if Knights 4 and 5 or Knights 2 and 5 are friends, the problem is solved as
well. If not, then Knights 2, 4, and 5 must all be foes. In this case, the
problem is solved as well: we found 3 knights who are all foes!
K2 K3
K1 K4
K6 K5
For Teachers: This is the final contest of the year. How can we make
it memorable for the students? Diplomas and prizes are one way to go.
A small after-circle party could be another option.
For Teachers: This is the last lesson of the year. You would prob-
ably like to collect feedback about the class from your students and
parents. An online survey could be one option, a “pen and paper”
survey—another.
At the start of the Olympiad, everybody gets the first set of problems.
A student who solves any four of these problems receives the set with the
remaining problems.
Problem 3. It would take 6 hours for an old wizard and his apprentice to
transform all the frogs in the aquarium into beautiful princesses. (Each of
the magicians transforms 1 frog at a time, and each of them works at his own
pace.) The wizard and the apprentice worked together for some time. During
this time, the wizard transformed 1/3, and the apprentice transformed 1/6
of the frogs. After that, the old wizard fell asleep, and the apprentice had
to finish transforming all the remaining frogs. How long did it take for the
apprentice to finish the job?
Problem 4. On Monday, the noble knight Sir Lancelot wrote in his diary:
“Today, I did more good deeds than 1 day ago, but less than 4 days ago.” On
Tuesday, he wrote the same text. The same happened on Wednesday. For
how many days at most will it be possible for Sir Lancelot to fill his diary
with entries like this? (Remember that noble knights never lie.)
Problem 9. Prince Badam seeks the hand of Princess Lilly. Her father,
King Dodon, puts him to the test. There are 5 doors in front of the
prince, numbered from 1 to 5, left to right. Some of these doors hide tigers,
others—ladies. (There is 1 creature behind each door.) The Prince can point
to any 3 of these doors, and the King tells the total number of tigers behind
these doors. After 3 questions like this, the prince has to guess whether the
rightmost door hides a lady or a tiger. If the guess is correct, he marries
Lilly. If not—he is fed to the tigers. Help the Prince to find a surefire way
to survive.
Problem 10. Mathew took a black marker and wrote down all the dates of
the last month like this: 12345678910111213.... Then he took a red marker
and crossed out those 3 dates when he had quarrels with his sister. (All the
quarrels were at least a day apart from one another.) As a result, this string
of numbers broke up into several shorter strings of black digits separated by
red crosses. It turned out that every black string had the same number of
digits. Prove that Mathew quarreled with his sister on the first day of the
month.
Problem 11. All the numbers from 1 to 10 were divided into 2 groups in
such a way that the product of all the numbers in the first group is divisible
by the product of all the numbers in the second. What is the smallest possible
quotient of the first and second products?
Let’s suppose I erase all the mines and then put new mines on all the
squares that previously did not have a mine. Can the sum of all the numbers
on the board decrease, increase, stay the same?
1
1 1 2 1
1 1 1
2 2 1 2 1
3
3
Part 2
Mathematical Contests
and Competitions
Mathematical Contests
233
Mathematical Auction
We will start with the discussion of the nature of the game and will follow
by presenting the detailed rules.
At the start of the game, both teams receive the same list of problems.
The teams are allocated a certain amount of time to work on these problems.
After this time is over, the teams get together and the auction begins.
Both teams start the game with the same amount of money in some
fictional currency. Every problem on the list has a price (expressed in
this currency). For example, each team may get an initial capital of 200
shmollars, and each problem may have a value of 100 shmollars (shmollars
are the currency used in our circle).
One by one, the problems are put up for auction by a teacher. The
teams place bids for the right to present a solution to the auctioned
problem.
The team that placed the highest bid for a problem presents its solution
in front of the class. If the solution is correct, the team has a chance to
receive the money—the price of this problem. If the team actually gets this
money, then it will earn a profit: the difference between the price of the
problem and the bid money.
There is a special zest in the Mathematical Auction game. At a regular
auction, once you place the winning bid, the item is unconditionally yours.
However, Mathematical Auctions are different. A team that competes in a
mathematical auction could lose its bid money even if it presents the correct
solution to a problem. How can this happen?
The Mathematical Auction problems are unusual. The trick is that
every Mathematical Auction problem has intermediate solutions that can
be improved upon. Therefore, it can happen that another team believes
that it has a stronger solution than the one that was just presented. If this
is the case, the problem is put up for auctioning again. The next buyer
attempts to present a better solution. A problem is put up for auction again
and again until the teams run out of solutions.
Finally, the team that came up with the best answer collects the money
(the price of the problem). This team gains the difference between the
problem price and the money it spent bidding for this problem. The rest
of the teams lose the bids they paid for the presentation rights. (For an
example of how the system of bids and prices works, check the section “A
Sample Round” in this chapter.)
This option of reselling a problem adds to the game a strategic element
that the students enjoy. Also, it helps to keep the children actively involved
in problem solving throughout the game. The students are encouraged by
the ideas of other teams and by the mutual desire to win. It happens quite
often in a Mathematical Auction that a team creates a better answer “on the
fly”, sometimes even buying the same problem a few times in a row as the
team members generate better solutions.
After all the problems have been auctioned off, the teacher counts the
teams’ riches. The team with the most money wins the game.
A Sample Round 237
Money matters
All teams start the game with the same amount of money. It is recommended
to set the amount equal to approximately half of the total price of all the
problems. (If the teams have too much money, they get involved in reckless
trading. If they have too little, they run out of money and can no longer
participate in the bidding.)
Since it is not profitable for a team to place a bid that is higher than the
price of a problem, the problem price serves as a natural upper bound for a
bid.
In our circles, we price the problems in the hundreds range and set the
minimum bid increment to 5 shmollars.
A Sample Round
This section contains an example of an imaginary fight between two teams
(Team A and Team B) around a single (simplified) Mathematical Auction
problem:
Team Work
Mathematical Auction can be played both as a team game and as an indi-
vidual contest. In our math circles, we usually play it as a two-team game.
There are several important aspects related to the team game.
• Each team should have a captain. The function of the captain is to
do the bidding during the contest. (The team discusses the bidding
strategy together; however, the captain is the one who actually places
the bids and decides which member of the team presents the solution.)
• Different problems should be presented by different team members.
This rule can be broken only if a team size is too small or if the problem
is being re-auctioned.
• The number of teams is determined by a number of students playing.
The optimal size of an auction team is between 4 and 8 students. If
there are too many students in the circle, an auction can be played
between three teams, and even between four teams.
Examples of Mathematical Auction Problems 239
For this problem, a team that has a better solution should present at least
one answer to the puzzle that was not presented by the previous teams.
Problem 3. Using the digits 1, 2, 3, 4, 5, 6, represent as many consecutive
natural numbers as possible (starting from 1). You can use four arithmetic
operations (+, −, ×, ÷) and parentheses. The same operation can be used
several times, and it is not required to use all four operations. Do not modify
the order of the numbers.
A team has a stronger solution for this problem if it can continue the list
starting with the number that the previous team failed to represent.
For more examples of Mathematical Action problems, see [2].
Mathematical Dominoes
5:3
“problem” “points”
side of a that can be split side of a
domino into 5 triangles with domino
card one straight cut. card
At the start of the game, cards are placed on a judge’s table dominoes-
side up. (This way, the problems are hidden from the students.) The teams
start working on the problems at their own pace, selecting cards one by one
from the pool of cards on the table. (The pair of domino points serves as a
predictor of the level of difficulty of a problem.)
A team earns (or loses) points depending on whether it was able to solve
the selected problem. The system works as follows:
• The team has up to 2 tries to present an answer to a problem. (For
dominoes problems, only answers matter, not the solutions.)
1
We discovered the game on the website of the Kirov Summer Math School [20].
241
242 Mathematical Dominoes
• If a team presents the correct answer on the first try, the team is
awarded the full score for the problem. The full score is equal to the
sum of the two numbers on the domino side of the card. For example,
if the card shows [ 5:3 ] then the team gets 5 + 3 = 8 points.
• If a team solves the problem on the second try, it is awarded a partial
score, which is equal to the larger of the two domino numbers. For
example, for the [ 5:3 ] card, the team gets 5 points.
• If this second answer is also incorrect, the team loses points. The
penalty for an incorrect answer is equal to the smaller of the two domino
numbers. For example, a team receives a 3-points fine if it fails to solve
a [ 5:3 ] problem.
• The [ 0:0 ] card is special. A team can present the answer for this card
just once. The correct solution brings 10 points, while an incorrect
answer is not penalized. (Sometimes, when we deem the [ 0:0 ] problem
to be very challenging, we raise its value to 15 points.)
After the team finishes a problem, it returns the card to the pool and chooses
the next problem to work on. The game stops at a prearranged time. The
team that collects the most points wins the game.
Useful Details
– Mathematical Dominoes can be played as an individual or a team game. We
recommend playing it with 2-student teams. (It’s fine to have an occasional
team of 3 or 1.)
– A team should be formed with students of similar abilities. (In an
unbalanced team, the faster kid will take the lead in problem solving.)
– Before a game, each team gets a scorecard (described below) for keeping
track of its progress. During the game, all answers should be entered onto
this card. If an answer to a problem requires a lot of space (a drawing, for
example), the team presents it on a separate piece of paper. After the game,
the scorecard is used to calculate the team’s total.
– A team cannot drop a problem that it is working on without a penalty.
The penalty is the smallest of the two dominoes points.
– Depending on the goal of a game (a strict competition or a fun edu-
cational tournament), the teacher may choose to provide limited help to a
team that is stuck on a difficult problem. (Walk around the room. If you
see that a team is struggling, stop by its table, and steer them in the right
direction.)
244 Mathematical Dominoes
Scorecards
At the start of a game, each team receives a blank scorecard to be used for
tracking the progress of the team. The scorecard has an entry for the team
name and a blank table with five columns:
Team name:
Problem Dominoes Answer, Answer, Points
Number Points First Try Second Try Earned
5:3
Draw a polygon with 10 vertices
7 that can be split into 5 triangles 7
with one straight cut.
Fold line
Useful Details
Mathematical Snake Pit is a game that is perfect for practicing specific sets
of problem-solving skills.
Combinatorics makes a great example. In a combinatorics Snake, stu-
dents can practice permutations, combinations, complements, etc., with each
“snake” being devoted to a certain type of problems.
Usually, we play Mathematical Snake Pit in small teams (2 students). In
such a team, both students are able to help each other and stay engaged.
The duration of the game is defined by the set of problems being used—
both the difficulty and the number of problems play a role.
247
248 Mathematical Snake Pit
For Teachers: Depending on the goal of the game, you may tweak
the rules a bit. For example, if the goal is to make sure that students
master a certain set of skills, you may decide to give them occasional
hints. (A half-point could be awarded for a problem solved with a hint,
and such a problem may not be eligible for the bonus.)
Score Table
To play the game, you need:
- The printouts of the problems sets.
- Answer keys (one for every instructor).
- Score tables (one per team).
During the game, teams enter their answers into an answer table. Below
is a sample table for a Snake Pit game with 2 sets of problems (2 snakes)
with 3 problems in each.
Problem 1 Problem 2 Problem 3 Row bonus Total
Snake 1 0 2 3 5
Snake 2 1 2 3 5 11
Column Bonus 2 3
The team scores 5 + 11 + 2 + 3 = 21 points.
Mathematical Race
Useful Details
Mathematical Race is another game that is perfect for practicing specific
problem-solving skills. Usually, we play in small teams (2–4 students). In a
team of this size, every emmber has a chance to contribute and stay engaged.
Score Table
During the game, teams keep track of their standing using a score table.
Such a table is very easy to make: it has a row for problem numbers and
249
250 Mathematical Race
To add more zest to the game, it is possible to draw a big table on the
board that would reflect each team’s standing:
Olympiads are individual math contests. While it is not a good idea to run
all circle sessions as contests, holding an occasional Olympiad has a lot of
benefits. Some of them are:
- All of the class time is devoted to intense problem solving. Unsurpris-
ingly, the students concentrate and work much more efficiently in a contest
setting than in a regular session.
- Children usually love to compete and enjoy receiving awards. Thus,
Olympiads provide both the entertainment and the motivation to study.
- An Olympiad is a great tool for a teacher to learn about the strengths
and weaknesses of individual students and to assess the overall performance
of the circle.
Types of Olympiads
An Olympiad can be organized in several different ways. First of all, an
Olympiad could be oral or written. A written Olympiad could be classified
as short-answer (or multiple-choice) or long-answer ones. Every type has its
advantages and disadvantages:
• For a multiple-choice (or short-answer) Olympiad, the teacher has a
difficult task. She needs to come up with problems that are in line with
math circle ideas and at the same time can be formulated as multiple-
choice questions. The positive side of such an Olympiad is that it is not
difficult to run and the answers to multiple-choice problems are easy to
check. Therefore, the students’ work can be graded on the spot, and
the winners can be announced right after the contest.
• A long-answer (write-down-a-complete-solution) Olympiad emphasizes
the solution, not the answer. Therefore, it allows for a much more
interesting selection of problems. A disadvantage of such an Olympiad
is that it can be challenging for young students to write down their
ideas in an organized fashion. Moreover, it is not easy for the teacher
to read through these solutions and grade them.
• An oral Olympiad allows for a lot of teacher-student interaction. Fur-
thermore, it is an excellent opportunity for the students to practice
their math reasoning skills. Another advantage of an oral competition
251
252 Mathematical Olympiad
is that the results of such a contest are available right away. However,
oral Olympiads have drawbacks of their own. Since the students need to
present their solutions orally, extra judges are needed to staff the event.
These judges should be competent enough to judge the correctness of
the solutions and to point out to the students the mistakes in their
reasoning.
In our math circles, we prefer to have oral Olympiads. Usually, we ask our
qualified friends, parents, and older students for help in judging. Somehow,
we are always able to find enough volunteers for a once-in-a-semester event.
If we do not completely trust the qualifications of a volunteer, we designate
him or her to be in charge of the first few easier problems.
Olympiad Problems
A well-prepared set of problems is the key to a successful Olympiad. An
Olympiad should be challenging to all of the students, and at the same time,
everybody should finish the competition with a sense of accomplishment.
Listed below are several tips that could help you reach this goal:
• Include a combination of problems of different levels of difficulty: a
few difficult problems for the stronger students and several easy and
interesting ones for the less-prepared and the newcomers. A reasonable
guideline for a 10-problem set would be to have 5 problems that are
likely to be solved by everybody in the circle, 4 challenging ones, and
1 difficult problem.
• Include a few problems that use the techniques recently learned in
the circle. These problems will serve a double purpose: to refresh a
recent topic and to reward those who studied hard during the year. At
the same time, add some problems that require nothing but logic and
creativity to come up with the solution.
• Include only problems that have relatively short solutions. This is
important both for oral and written Olympiads. Otherwise, you, the
teacher, will be overwhelmed with the students’ presentations during
the contest or with reading long manuscripts after the competition.
• Make sure that the statements of the problems are interesting and
easy to understand. If a problem is boring or too long, it is better
to reformulate it or select a different problem.
• Place the problems in the order of increasing difficulty. This way, it
is easier for the students to prioritize while working their way through
the set.
• We usually split the oral Olympiad problems into two sets and print
them out on separate pages. Overall, the problems in the first set
are less difficult than the ones in the second set. At the start of an
Olympiad, the students are handed the first set of problems. Those
who solve a certain number of problems from the first set are given
the second set. This approach is beneficial because at any moment the
Running an Olympiad 253
Running an Olympiad
Start the Olympiad by reminding the students about the rules and the
timeframe of the contest. It is better to run this reminder before the students
receive the problems; otherwise, they will be too busy with problem solving
to pay attention to your words.
This chapter contains short math games that you can play with your stu-
dents. These games are perfect for these last 10 minutes of the session, as a
reward for students for all the hard work they did.
1
The book Camp Logic by Mark Saul and S. Zelbo [15] includes an entertaining and
educational lesson that analyses the mathematics of the game.
255
256 Short Entertaining Math Games
Nim
Nim is a 2-player game of strategy with very simple rules.
The game board consists of 3 heaps of stones. The players take turns
removing stones from the heaps: on each turn, a player takes any number of
stones from a single heap. (A player has to take at least 1 stone.) A player
who takes the last stone wins the game. While the rules are very simple, the
game itself is very entertaining.
The children play on the board or a piece of paper. Three heaps of stones
can be represented as 3 rows of dots (or other marks). The players claim the
stones by crossing the dots out.
The size of the heaps can be chosen at random. However, it is better
to stick to the numbers that are no more than 10. For example, the heaps
of the sizes 3, 5, and 7 provide enough complexity and challenge for several
players in a row to play the game not even getting close to the idea of a
winning strategy for this initial position.
Nim can be played as an individual game, or as a team game. Individual
games can be organized as a circle championship, for example. One possible
way to play the team game would be to organize it Math-Hockey style: to
split children into two teams and to invite deputies from both teams to play
against each other.
Black Box
The game leader (a teacher) comes up with some rule for the “black box”
machine. The machine works as follows: it takes certain data as an input,
processes this data according to the rule, and comes up with some output.
The goal of the game is to figure out what the black box rule is. The
players take turns at suggesting the input values for the black box. For every
input, the game leader responds with the value of the output. If a player
believes that he discovered the secret rule, he requests a test. The leader
offers several input values; the player comes back with the outputs according
to his rule. If the player’s guess turns out to be right, the player tells the
others the rule. Otherwise, the leader tells the correct output, and the game
goes on. (It is possible to wait until several players pass the test before
uncovering the rule.)
A black box input data can be either numbers or words. The rules are
usually created in such a way as to generate numbers as outputs. The game
leader lets the students know what type of input is accepted by the black
box: integers, real numbers, words, etc. If a player suggests some specific
number that cannot be used with the rule, the teacher should reply with
some predefined phrase. (For example, x = 0 cannot be used with the rule
1/x. The predefined phrase can be “Cannot be used with this number.”)
Black Box 257
Teaching Style
• An open-ended and interactive teaching style is the key to math circle
learning. I would like to start with a piece of advice that comes from
Tom Davis, a coordinator of several math circles in the San Francisco
Bay area. “Try not to lecture. Even though introducing new theory and
techniques is an integral part of math circles, your sessions should be as
interactive as possible. Score yourself: 1 point per minute you talk; 5
points per minute a student talks; 10 points per minute you argue with
a student; 50 points per minute the students argue among themselves.”
• I will continue with a quote from Rick Garlikov, a philosopher and an
educator. He says that the teacher’s questions “should be used to arouse
curiosity, and at the same time serve as a logical, incremental, step-wise
guide that enables students to figure out about a complex topic or issue
with their own thinking and insights.”
• Be a creative teacher. Mathematical circle questions and problems are
not always easy to answer. “If the kids cannot answer your question
immediately, don’t just tell them the answer; let them think. If they’re
still stuck, give hints, not solutions” (Tom Davis).
261
262 How to Be a Great Math Circle Teacher
• Remember that the ultimate goal is to teach the students how to reason
about math correctly. Tom Davis: “Be encouraging, even about wrong
answers. Find something positive in any attempt, but don’t be satisfied
until there is a rigorous solution. Wrap up each problem by reviewing
the key steps and techniques used.”
• Always use problems to reinforce new concepts and ideas. Most of the
learning in a math circle comes from problem solving. Therefore, every
lesson should be accompanied by a challenging and captivating problem
set. This problem set should be balanced and optimized in several ways:
– Difficulty. You may have students of different abilities and prepa-
ration levels. Still, everyone in your group who is ready to put the
effort and energy into his work should be able to progress. How
does this work? About half of the problems should be interesting
and creative, but not too difficult to solve. At the same time,
a couple of problems should be challenging even for advanced
students.
– Topic choice. Include a variety of problems in every set to prevent
it from becoming boring. Several problems should be related to
new material, some should review a previous topic, and others
should require nothing but brain power and common sense. It is
always a good idea if problems come in series—sets of problems of
gradually increasing difficulty that illustrate or review a topic or
problem-solving approach.
– Size. Problem sets should be of reasonable length—otherwise, they
stop being exciting and fun.
• Remember that you are ahead of your students in abstract thinking and
analytical reasoning. Certain concepts and principles that seem easy to
you still need to be learned by them.
– Before you assign a problem, ask yourself how many new or com-
plicated ideas are required for the solution. If the answer is “more
than one”, then this is at least one too many. Either postpone
this problem until next time, precede it by a couple of one-step
problems that explore these new ideas separately, or add it to the
end of the list to challenge your strongest students.
– Follow the same approach when you introduce a new topic or
explain a problem. Make sure that you present the material in
incremental steps that are easy to follow; do not skip steps just
because something is easy for you and for the brightest pupil in
class. The main idea is to teach more than most of your circle
students can easily digest—yet, to teach it in steps. Overall, your
students have a great learning potential. The teacher’s art is to
choose the right topics, the right presentation style, and the right
pace.
Your Target Group 263
• When you first assemble your math circle, you can expect all kinds of
kids to join. Some will not be interested and will leave the circle. Some
had never experienced anything like what you are going to teach and
may appear to be slow starters. These kids may catch up quickly or
with time. To the contrary, some children have been exposed to logical
puzzles and simple word problems by their parents and may do very
well in the beginning. Only time will tell who will succeed in the long
run.
• Therefore, when everyone is new, it makes sense to teach in such a way
that no one is left behind, taking time to make sure that every child
understands the topic. This approach often pays off when such a child
gets excited about math and turns out to be one of the best performers.
264 How to Be a Great Math Circle Teacher
• The situation starts to change during the second year. The kids have
grown up. They have been exposed to math, they have seen and felt
what a math circle can offer, and by this time they probably know
whether they like it or not. Moreover, as the circle progresses, the
material becomes more complicated, both theoretically and technically.
Therefore, those who do not put the energy and effort into practicing
and problem solving start lagging behind.
• So, what is your target audience in a second-year circle? A couple of
the brightest students, the top half of the class, or the rest of the group?
It definitely cannot be just a few of the strongest kids—you don’t want
to end up with a circle of two or three. On the other hand, experience
shows that children who attend only out of inertia will not be getting
much out of your teaching anyway, no matter how much time is spent
on them. It is a trait of a good teacher to see where the boundaries lie.
The only advice I can give is to look primarily at the child’s interest in
the subject. Teaching those who are interested and motivated makes
the most sense in the long run since these are the students who will
benefit the most from being in a circle.
What Comes Next?
This book covers a lot of ground, but you may still have questions left. In
this section, I would like to list resources and give tips on where to get
additional materials for your classes. Also, I would like to discuss how to
move on with your circle in the third year: which topics to teach and where
to get the materials.
Almost all the topics presented in this book can be expanded and taught
on a new level of complexity in the third year. Therefore, my first recommen-
dation is the book Mathematical Circles (Russian Experience) [2]. In this
book, you will find more expanded and advanced presentations of most of the
topics that we covered this year: divisibility, graph theory, combinatorics,
invariants, colors, etc. You will also find a variety of topics we have not
discussed yet: induction, strategy games, triangular inequality, Pascal’s tri-
angle, etc. The book contains excellent theoretical discussions accompanied
by a rich collection of problems. Some of the “lighter” topics from this
book, such as construction and strategic games, would be appropriate for
the curriculum of a second-year circle. The more advanced topics would
work great for year 3.
265
266 What Comes Next?
If you are planning to include a unit on geometry into your math circle
curriculum, I highly suggest taking a look at the Geometry in Problems book
by Alexander Shen [9]. The book contains a collection of easy but nontrivial
problems in all areas of plane geometry. It focuses on proofs and problem-
solving techniques that create a “feel” for geometry and develop the ability
to see and understand geometric problems.
As a textbook on Euclidian geometry, I recommend Kiselev’s Geometry,
Book I, Planimetry [10]. This rigorous and consistent book introduces the
reader to the world of 2D geometry, starting with axioms and going all the
way up. It contains many proofs and plenty of problems and exercises of
different degrees of difficulty.
On a lighter side...
If you are looking for more detailed or easier versions of some of the topics
presented in this book, my Mathematical Circle Diaries, Year 1 [1] could be
a good place to start. For younger students, I would recommend Camp Logic
by Mark Saul and Sian Zelbo [15]. It provides the reader with cryptarithms,
logical problems, Lewis Carroll-style puzzles, and game analysis that can
be used for warm-ups or entertaining lessons. Also, the already-mentioned
Circle in a Box contains a special section on warm-ups.
The Farewell
I wish you great success in your teaching journey and I hope that it will
be a happy and rewarding experience. As you go, you will make a lot of
fascinating discoveries about mathematics, children, the world around you,
and yourself. Good luck!
P.S. I would always be happy to get a note from you! Send me an email,
tell me a story about your circle, ask me a question. You are welcome to
use my Prime Factor email annab@pfmathcircle.org or my personal email:
ania_burago@hotmail.com.
Part 4
Solutions
Problem Set 1. Checkerboard Problems 271
Warm-up 1 Solution. At first, there were 2 pears on the tree. After the
wind had blown, 1 of the pears fell on the ground. So there were no pears
(plural) left on the tree, and there were no pears (plural) on the ground.
Problem 3 Solution. Let’s color the rooms of the castle black and white,
as shown in the picture below. You can see that there are 15 black rooms
and only 10 white rooms. Since black and white rooms alternate along any
route, one can’t visit more than 11 black rooms, so 4 rooms will always be
left unvisited. It is easy to plot a route that visits all rooms except 4. (See
the picture below on the right.)
Integral Pi Cantina
Square
Problem 4 Solution. Color the table black and white. Suppose the card
is on white. If you flip it around the edge, it will be face up and on black.
If you flip it one more time, it will be on white and face down, and so on.
Thus, whenever the card is face up, it is on black, and whenever the card is
face down, it is on white. Therefore, it cannot end up sitting face up on the
original spot.
Problem Set 2: Review: Math Logic and Other Problem-Solving Strategies 275
Problem 2 Solution. Yes, he can. Example: Suppose now that the CEO
has salary X and the VPs’ salaries are Y 1, Y 2, Y 3.
Vote CEO VP1 VP2 VP3
1 2X Y 1/10 − 2 Y2+1 Y3+1
2 5X Y 1/10 − 1 Y 2/10 − 1 Y 3 + 2
3 10X Y 1/10 Y 2/10 Y 3/10
Problem 3 Solution. Assume that the point where the grasshopper starts
jumping has coordinate 0. Then he will end up at a point expressed as a
sum/difference of all the numbers from 1 to 10: 1 ± 2 ± · · · ± 9 ± 10. (A
“plus” corresponds to jumping right, “minus”—left.) This expression contains
5 even and 5 odd numbers. Since the number of odd numbers is odd, the
value of the expression would always be an odd number. Therefore, the
grasshopper cannot end up on an even coordinate.
Problem 4 Solution. To solve this problem, we either have to prove that
a smaller rectangle always fits into a bigger rectangle or we have to come up
with an example that would convince us that Michael is not correct. Such
an example is surprisingly easy to find: take a look at a 5 × 5 square and at
a 9 × 0.5 rectangle. The second shape is so long that it would not fit into
this square, even if we place it diagonally.
Problem 5 Solution.
(a) Answer: 2 pencils.
- We cannot take more than 2. Indeed, if we take more, we may end up
taking 3 blue pencils and leaving 5.
- Also, if we take 2, we take no more than 2 blue pencils; therefore, at
least 6 blue pencils will be left.
(b) Answer: 3 pencils.
- We cannot take more than 3. Indeed, if we take 4, we may end up
taking all 4 yellow pencils.
276 Solutions
Session 3. Invariants
Solutions to Take-Home Problems
Problem 1 Solution. Denote by x, y, and z the number of chocolates in
the first, second, and third boxes. Then, we have
x + 6 = y + z,
y + 10 = x + z.
The goal is to find z. Adding these two equations together, x+6+y+10 =
y + z + x + z.
Thus, 16 = 2z, and 8 = z.
Problem 2 Solution. The answer is negative. You always add an even
number of pieces of candy. Therefore, the parity of the total number of
candy does not change. Since you start with 9 pieces of candy, you cannot
end up with 900.
Problem 3 Solution. Impossible. Whenever a sequence of such operations
results in an integer number, this number would contain prime factors 2, 3,
and 5 only.
Problem 4 Solution. Invariant: After each operation, the sum of all
numbers on the board become 1 smaller. Initially, it is 78. Therefore, after
11 operations it is 78 − 11 = 67.
Problem 5 Solution. The birds cannot gather in the same tree. Let’s
number the trees: 1, 2, 3, 4, 5, and 6. Then the parity of the total number
of birds on the odd-numbered trees does not change.
Problem 6 Solution. No, he cannot. Invariant: The total number of
animals can never become divisible by 3. Indeed, the magician starts with
1 animal and each time he performs his trick, the total number of animals
grows by 3.
Problem 7 Solution. These numbers are equal. Indeed, we started with
the same volume of milk and coffee, and we end up with the two mixtures
that have the same volume. Since the amount of liquid in the coffee cup
has not changed, exactly as much milk was added to this cup as coffee was
removed from this cup. However, this coffee ended up in the milk cup.
Therefore, the amounts of coffee in the milk cup and milk in the coffee cup
are equal.
Problem Set 4: Proof by Contradiction 279
(b) Assume that none of the rectangles are congruent. Let’s list them
from the smallest to the largest. There could be not more than 1 rectangle
of each of these areas: 1, 2, 3, 5, and 7. (Indeed, these are prime numbers.
Therefore, there is just 1 way to represent each of them as a product of
factors.) Also, there could be no more than 2 rectangles of each of these
areas: 4, 6, 8. (Indeed, a rectangle of area 4 could be 1 × 4 or 2 × 2, and
so on.) Thus, the total area of the 10 rectangles must be not less than
1 + 2 + 3 + 4 + 4 + 5 + 6 + 6 + 7 + 8 = 46. Contradiction.
Problem 6 Solution. Suppose that no 3 gnomes are standing next to each
other and no 3 elves are standing next to each other. Then gnomes and elves
should stand in groups of 1 or 2, and these groups should be separated from
each other by humans. Here is an example that clarifies this statement:
eeHggHeHHgHggHe. (“H” stands for a human, “e”—for an elf, “g”—for a
gnome.)
Since each group of elves is not bigger than 2, there should be at least
16 groups of elves. Similarly, there should be at least 16 groups of gnomes.
Therefore, at least 32 groups of creatures must be separated from each other
by humans. So, there must be at least 31 humans. Contradiction: We have
30 humans only.
Problem 7 Solution. Let’s consider the sum of the values of all the cards.
If we assume that all players had different last digits for their sums, then all
10 digits would be present, and the sum of them all would end with a 5. On
the other hand, the sum of the values of all cards in play ends with a 0, a
contradiction.
Problem 8 Solution. Suppose that this is not true. Choose any column—it
must contain more than 2 types of creatures. So, there will be 3 squares next
to each other that are occupied by 3 different creatures. Suppose these are
a frog (F), a bunny(B), and a hamster (H).
Take a look at the square marked with “?”. What type of creature should
it contain?
F
B ?
H
F ?
B M
H ?
We can keep filling these three rows column by column; we get the
pattern:
F H F H
B M B M
H F H F
Therefore, we can see that the center row is occupied by bunnies and
mice only and that the two other rows are occupied by frogs and hamsters
only.
282 Solutions
Problem 1 Solution. Let’s prove that Winnie’s age is 45. (So, the house
number is 99,999.) Indeed, since Winnie can talk, he is definitely at least 2
years old. Any number between 2 and 44 can be represented as a sum of 5
1-digit numbers in several different ways. For example, 2 = 1+0+0+0+1 =
1 + 0 + 0 + 1 + 0; 43 = 8 + 9 + 9 + 9 + 8 = 8 + 9 + 9 + 8 + 9.
Problem 4 Solution. Shmerlin should choose the numbers 100, 10, and 1.
The expression A × 100 + B × 10 + C × 1 is equal to a 3-digit number, the
digits of which indicate the digits of the secret code.
Problem 6 Solution. Let’s start with drawing two central lines of the
square (they split the square into 4 5 × 5 squares).
If the 2 marked squares end up in different 5 × 5 squares, then 1 of these
central lines separated the 10 × 10 square into 2 halves with marked squares
in different halves. (See the picture on the left.)
HE × (HE − 1) = S × 5 × 5 × 2 × 2.
The product on the left should have the same set of prime factors as the
product on the right. Therefore, the numbers HE and HE − 1 combined
should contain factors 5, 5, 2, and 2. Can both HE and HE − 1 have
factors 5? No. Only one of two consecutive numbers can be divisible by 5.
Therefore, one of the numbers should be a multiple of 25. The same is true
for the factor 2: one of the numbers should be a multiple of 4. Therefore,
we do not have too many choices: HE = 25 or HE = 50 or HE = 75 or
HE − 1 = 25 or HE − 1 = 50 or HE − 1 = 75. However, 50 × 50 = 2,500
is a 4-digit number, while we are looking for a 3-digit product. So, either
HE = 25 or HE − 1 = 25. Trying both options, we see that HE = 25,
S = 6.
Problem Set 5: Decimal Number System and Problems on Digits 285
Problem 5 Solution. Let’s try to figure out how many digits each of
these numbers can possibly have. First, let’s prove that there are no 3-
digit numbers on the list. Indeed, if we had a 3-digit number on the list,
then the rest of the numbers would be not more than 4 digits long. Then we
would have not more than 500 × 4 = 2,000 digits. Therefore, the list should
be made of 4-digit numbers followed by 5-digit numbers. So, each of these
500 numbers on the list contributes 4 digits to the total, with each 5-digit
number contributing an extra digit each. 500 × 4 = 2,000. Therefore, to
get to 2,006 there should be 6 5-digit numbers. (Each 5-digit number would
add 1 digit to the total.) Therefore, the 5-digit numbers must be 10,000,
10,001, 10,002, 10,003, 10,004, 10,005. The leftover 494 numbers are the
4-digit numbers: 9,506, . . . , 9,999.
Problem Set 6: Binary Numbers I 287
Problem 1 Solution.
(a) 102 = 2
(b) 1012 = 4 + 1 = 5
(c) 1112 = 4 + 2 + 1 = 5
(d) 10002 = 8
(e) 11012 = 8 + 4 + 1 = 13
(f ) 100000002 = 128
(g) 11111112 = 64 + 32 + 16 + 8 + 4 + 2 + 1 = 127
Problem 2 Solution.
(a) 3 = 112
(b) 8 = 10002
(c) 15 = 11112
(d) 32 = 1000002
(e) 31 = 111112
(f ) 40 = 1010002 (32 and 8)
(g) 53 = 1010112 (32 and 8 and 2 and 1)
Problem 3 Solution.
(a) The number that is 1 bigger is 1000000012 . The number that is one
smaller is 111111112 .
(b) One smaller: 11111111102 ; two smaller: 11111111012 . To calculate
the number that is 2 bigger, it is easier to start with calculating a number
that is 1 bigger: 100000000002 Next, we can calculate a number that is 2
bigger: 100000000002 + 1 = 100000000012 .
Problem 4 Solution.
(a) A binary number is odd if it ends with 1; it is even if it ends with 0.
(b) Any binary number is composed of powers of 2. All powers of 2
except 2 = 21 and 1 = 20 are divisible by 4. Thus, any binary number that is
composed of 22 and higher powers of 2 is divisible by 4. So, any binary that
ends with 00 is divisible by 4. Examples: 1002 , 1111011002 . Also, it is easy
to see that a binary number that ends with 01, 10, and 11 is not divisible by
4.
(c) The remainder is 102 = 2.
Problem 5 Solution. Joe should take 1, 2, 4, 8, 16. There are the powers
of 2: any number from 1 to 31 can be expressed through them.
Problem 6 Solution. Suppose that the price of the laptop is x. Her dad
pays 1/2 × x; her brother pays 1/4 × x; her sister pays 1/8 × x; Julia pays 260.
288 Solutions
- The dragon is heading west if the spheres are set into one of the two
states 001 or 110.
Let’s prove that the code works. Indeed, suppose that we have a random
three-digit string of 0’s and 1’s and a pair of codes for a direction.
If this three-digit string matches one of the codes for this direction, the
problem is solved. If the difference between the string and the first code is
exactly 1 symbol, then we can change the sphere that corresponds to this
symbol. If the difference between the string and the first code is 2 symbols,
then the difference with the second code must be 1 symbol. (Indeed, the
two codes are opposites of each other.) If the difference between the string
and the first code is 3 symbols, then the string is a perfect match with the
second code.
290 Solutions
Problem 1 Solution.
(a) 11012
(b) 10110102
(c) 11100012
(d) 10111110102
Some of these problems can be calculated without using the binary
addition algorithm. For others, the algorithm comes in handy.
Problem 2 Solution.
(a) Add one zero: 100102 , 1111111110102 .
(b) Add two zeroes: 111000111002 .
(c) 64 = 26 . So, 6 zeroes should be added: 1110000002 .
Problem 3 Solution.
(a) 80 = 64 + 16 = 26 + 24 = 10100002 .
(b) 152 = 128 + 24 = 128 + 16 + 8 = 27 + 24 + 23 = 100110002 .
(c) 401 = 256 + 145 = 256 + 128 + 17 = 256 + 128 + 16 + 1 = 28 + 27 +
2 + 20 = 1100100012 .
4
Problem 5 Solution. Take a look at the cuts in the picture below: any
rectangle can be assembled from these pieces. First, we express the width of
the rectangle as a combination of 1, 2, 4 and select corresponding columns.
Next, we express the height of the rectangle as a combination of 1, 2, 4 and
choose corresponding rows. For example, for a 5 × 3 rectangle, 5 = 4 + 1,
3 = 2 + 1; therefore, we need the pieces 4 × 2, 4 × 1, 1 × 2, 1 × 1.
Problem Set 7: Binary Numbers II 291
A
292 Solutions
# Answer Score
1. 4 large 3:0
2. 150, 15 5:2
3. 3:3
26 4:2
27 (b) 5:4
28 6 AM 0:0
29 60 8:1
30 Laura oldest, Angela youngest 3:2
31 280 4:3
32 36, 37 7:6
Problem Set 8: Mathematical Dominoes Tournament 293
33 5 kg 4:4
34 41 word 8:0
35 7 + 6 = 13 3:1
36 1,005th digit 6:5
37 0 knights 6:1
38 5 teams 5:5
39 between floors 27 and 28 6:3
Problem 1 Solution. It’s not hard to see that the number of times each
brother has crossed the road has the same parity. Since they started together,
they will also end on the same side of the road.
The table makes it easy to see that the difference between dolls and
animals always remains even. For example, initially the difference between
dolls and animals is 2. After each transaction, it can either remain the same
or be changed by 2. Therefore, it remains even. Thus, we cannot be left
with 1 doll and 0 animals or with 0 dolls and 1 animal. Therefore, we’ll be
left with 0 dolls, 0 animals, and 1 car.
Problem 4 Solution. The total sum of all faces is equal to 21. With
12 being the sum of four lateral sides, we are left with 9, which can be
represented as 6 + 3 or 4 + 5. Thus, we know that either 6 and 3 are on
opposite sides or 4 and 5 are on opposite sides.
Having 15 on the sides leaves us with 6, which is either 2 + 4 or 1 + 5.
Both possibilities rule out having 4 + 5 on two opposite sides, so we must
choose 3 + 6 in the first case. Thus, 6 is opposite 3.
294 Solutions
Problem 5 Solution. First, observe that neither side can have the number
59 since the sum of the digits of 59 is 14. Therefore, the distance from a post
to either village cannot exceed 58. Next, take a look at a milepost with 9 at
one of the sides. The number on the other side is less than 59, and the sum
of its digits is 4. If it were number 4, then the next milepost would have
the numbers 10 and 3, which would not work. Therefore, it is either 40 or
31 or 22 or 13. The set (9, 13) does not work since the next milepost would
be (10, 12). The set (9, 22) does not work since the next milepost would be
(10, 21). The set (9, 31) does not work since next milepost would be (10,
30).
However, (9, 40) may work: the next milepost, (10, 39), has the same
sum of digits. Let’s prove that the distance 10 + 39 = 49 works indeed. A
case-by-case analysis is, probably, the easiest approach.
For mileposts with numbers 1 to 9 the matching numbers are 48 to 40.
The sums of the digits for each of the combinations (1, 48), ..., (9, 40) is 13.
For the milepost that has the number 10, the matching number 39 works as
well. For the mileposts from 11 to 19 the matching numbers from 38 to 30
work. For the milepost that has the number 20, the matching number is 29;
etc. . . . .
Problem Set 9: Pigeonhole Principle 295
Problem 6 Solution. Each route passes through 7 rooms; each room would
yield 0 or 3 or 6 coins. Therefore, the smallest sum a child could have when
exiting the labyrinth is 0 coins, the largest—42 coins; moreover, the number
of coins must be a multiple of 3. Therefore, we have 15 possibilities: 0, 3,
6, ..., 42. Since there are 12 kids, then, apparently, the Pigeonhole Principle
cannot be used. However, let’s take another look: everyone passes through
the entrance and exit rooms. Therefore, in these 2 rooms, each child receives
the same amount of coins. Thus, only 5 rooms matter for the problem.
Therefore, the number of possibilities is defined by the number of possible
totals when passing through 5 rooms. These possible totals are 0, 3, 6, ...,
27, 30 coins—11 options altogether. Since we have 12 kids, we can apply the
Pigeonhole Principle.
Problem 7 Solution. If Ashley saw 2 red hats, she would know that she
is not wearing red. If Ashley saw 2 yellow hats, she would know that she is
not wearing yellow. Otherwise, she would not know for sure.
Since Ashley chose to keep silent, Betty knows that she and Cindy do
not have 2 red hats or 2 yellow hats.
Therefore, if Betty saw that Cindy is wearings red, she would know that
she does not wear red. If Betty saw that Cindy is wearing yellow, she would
know that she is not wearing yellow. Since Betty chooses to remain silent,
Cindy can deduce that she is wearing green.
Problem 5 Solution. Let’s sort the 5 red points into 4 groups as follows:
The first group—points with both x- and y-coordinates even.
The second group—points with both x- and y-coordinates odd.
The third group—points with x-coordinate odd and y-coordinates even.
The fourth group—points with x-coordinate even and y-coordinates odd.
Problem Set 9: Pigeonhole Principle 297
Out of 5 red points, at least 2 should belong to the same group. Then the
difference of the x-coordinates of these 2 points is even, and the difference
of the y-coordinates of these 2 points is even. Then both the x- and y-
coordinates of their midpoint are integers.
Problem 6 Solution. By the Pigeonhole Principle, two of these numbers
would have the same reminders when divisible by 19. The difference of these
numbers has to be divisible by 19. Such a difference is a number that is
composed of a bunch of 1’s trailed by several 0’s: 11...10...0. It can be
expressed as 11...1 × 10...0. The second term of this product, the number
10...0, cannot be divisible by 19. Therefore, the first term 11...1 must be a
multiple of 19.
298 Solutions
Warm-up 1 Solution. Burn the first rope from one end, and the second
rope from both ends. As soon as the second rope is burnt completely, we
have 1 hour gone. At this moment, we still have 1 hour left in the first rope.
Burn the other side of the first rope. In 30 minutes, the first rope will be
burnt completely. Therefore, the total burning time of the first rope will be
1 hour 30 minutes.
Warm-up 2 Solution. Burn the first two ropes as in the previous problem.
When the second rope is burnt completely (in 1 hour), burn the third rope
from one side. In 30 minutes, when the first rope is burnt completely, burn
the third rope from the other side. In 45 minutes, the third rope will be
burnt completely.
Problem 4 Solution. Let’s sort the numbers between 1 and 98 into groups
as follows: 2 numbers belong to the same group if their sum is 99. Thus, 1
and 98 belong to the same group, 2 and 97 belong to the same group, ..., 49
and 50 belong to the same group. There are 49 groups altogether. Applying
the Pigeonhole Principle, we claim that out of 50 numbers at least 2 will
belong to the same group. Since these 2 numbers must be different, their
sum must be 99.
Problem 5 Solution. First, let’s prove that we need no less than 16 shots.
Indeed, let’s divide the 8 × 8 field into 16 4 × 1 horizontal strips. If the
Problem Set 10: Geometric Pigeonhole Principle 299
number of shots is less than 16, then 1 of the strips is not hit. But it is
possible that Sam hid his battleship exactly in that strip. This proves that
Brendon needs at least 16 shots.
On the other hand, it is easy to show that with 16 shots Brendon can
make sure no battleship is left undamaged. In the picture below, crosses
mark the 16 squares that Brendon should hit. One can see that a ship of
length 4 cannot fit anywhere, either horizontally or vertically.
x x
x x
x x
x x
x x
x x
x x
x x
Problem 6 Solution. Let’s assume there are 2 flies, A and B, that are
more than 1 foot apart. Then, every other fly is either in a 1-foot radius of
A or in a 1-foot radius of B. Out of the 23 remaining flies either at least 12
will be in the 1-foot radius of A or we’ll have 12 in the 1-foot radius of B.
Swatting that fly with the center of the swatter kills 13 total. Now, if no 2
flies are further than 1 foot from each other, we can kill them all in 1 strike
by aiming the center of the swatter at any fly.
the parts would contain at least 2, and they would not tolerate each other.
Placing 4 scorpions is possible as shown in the same picture.
Problem Set 11: Mathematical Olympiad I 301
It is easy to see that the rooks attack all but the 4 corner squares.
However, in each of those squares, the knight itself would be attacking one
of the rooks.
Problem 9 Solution. Let’s consider which number in each pair of neigh-
bors is greater. One can see that if we have three numbers next to each
other in increasing order, a < b < c, then b is a multiple of a and c is
a multiple of b. Therefore c is a multiple of a, and we found a required
pair. The same is true with decreasing order. Therefore, the only case that
remains to be considered is when the order always alternates around the
circle: · · · > a < b > c < d > · · · . But since 99 is an odd number that
cannot continue all the way around.
Problem 10 Solution.
1111...1 = 111,111,111 × 100,000,000,100,000,000...100,000,000.
In the product on the right, the first term is composed of 9 ones and is
divisible by 9. The second term is composed of 9 ones, separated by zeroes.
Therefore, it is also divisible by 9. Then, the product is divisible by 81.
Problem 11 Solution. Note that each 100’s number is definitely not un-
breakable since it can be represented as a multiple of 100. So we cannot have
more than 99 unbreakable numbers in a row. On the other hand, 10,001,
10,002, . . . , 10,099 are all unbreakable because the next smallest product
of two 3-digit numbers is 100 × 101 = 10,100. So, having 99 numbers is
possible.
Problem Set 12: Combinatorics I. Review 303
Warm-up 2 Solution.
- 10! = 10 × 9 × · · · × 2 × 1; n! = n × (n − 1) × · · · × 2 × 1.
9! = 10; 95! = 100 × 99 × · · · × 96; (n−2)! = n × (n − 1).
- 10! 100! n!
- 10 × 9 × 8 × 7 × 6 = 10!5! ; 100 × 99 × · · · × 45 =
100!
44! .
n × (n − 1) × · · · × (n − 7) × (n − 8) = (n−9)!n!
.
(g) Start by selecting the letter in the center: it can be done in 2 ways.
After that, the first letter can be selected in 3 ways, the third letter—in 2
ways. The answer is 3 × 2 × 2 = 12.
Problem 4 Solution. The colors of 12 balloons are predefined (4 red, 4
green, 4 blue). Thus, we are free to choose 4 balloons.
- If all 4 are of the same color, we have 3 choices.
- If all 4 are of 2 colors, we have 3 choices for each pair of colors, and
we have 3 pairs. (Example: 1 red and 3 blue; 2 red and 2 blue; 3 red and 1
blue.)
- If all 4 are of all 3 colors, we have 3 choices only. (Example: 2 red, 1
green, 1 blue.)
Total: 3 + 3 × 3 + 3 = 15.
(d) This is very similar to the previous question, except that the last
digit can be either of 1 or 3 or 5 or 7 or 9. Thus the answer is 5 times bigger:
2,688 × 5 = 13,440.
Problem 4 Solution. A year ago, on the day when the third child was
born, the total age of the two older children was 14 − 3 = 11. Therefore,
at that time the total age of the parents was 70 − 11 = 59. The number 45
accounts for the total age of the parents when the first child was born. Thus,
the total age of the parents grew by 59 − 45 = 14. So, the third child was
born 7 years after the first one. At that time the second child was 11−7 = 4.
Thus, the children are 8, 5, and 1.
Problem 5 Solution. For both (a) and (b) notice that once we have decided
what happens to the diagonal squares, the rest of the covering is determined
uniquely. Each diagonal square can have 4 different states, so the answers
are
(a) 16 and (b) 64.
There are many alternative ways of counting the “right “ coverings.
Problem 2 Solution.
(a) 25 × 24 = 600.
(b) (25 × 24)/2 = 300.
Problem 4 Solution.
(a) 3 × 6 × 5 × 4 = 360.
(b) Start filling the slots from right to left: 4 × 6 × 5 × 4 = 480.
Problem 5 Solution.
(a) Six slots, two types of robots for each: 2×2×2×2×2×2 = 26 = 64.
(b) Start by choosing a slot for the medical robot; follow by filling 5
slots: 6 × 2 × 2 × 2 × 2 × 2 = 6 × 25 = 192.
(c) There are twice as many as in the previous part, since the medical
robot can be replaced by the supervisor: 2 × 180 = 360.
306 Solutions
Problem 6 Solution.
(a) 38 .
(b) For every lowercase password, she can choose a letter to capitalize
in 8 ways. Thus, there are 8 × 38 passwords. This is 8 times as many as in
(a).
(c) She can choose a position for a digit in 9 ways; then she can choose
a digit in 10 ways. Next, she can fill the leftover 8 slots with 3 options per
slot, and after that, she can choose 1 letter to capitalize (8 options). The
answer is 9 × 10 × 38 × 8. This is 8 × 10 × 9 = 720 times as many as in (a).
Problem Set 13: Combinatorics II. Combinations 307
Problem 2 Solution.
(a) 3 × 3 × 3 × 3 = 81.
(b) There are 2 × 2 × 2 ways if the 2nd board is red, the same for the
4th, 6th, and 8th boards. Thus we have 4 × 2 × 2 × 2 = 32 ways.
(c) Because of symmetry the middle board should be red, and we should
choose the color for boards 1 through 4 (the rest is determined according to
the symmetry). Out of boards 1–4 we should have exactly 1 red board.
Similarly to (b) above, the answer is 4 × 2 × 2 × 2 = 32.
Problem 3 Solution.
Solution 1. Choose M and no S. Then there are 18×17×16×· · ·×12/7!
ways to choose 7 girls for the leftover spots. Choose S and not M, Then there
are 18 × 17 × 16 × · · · × 12/7! ways to choose 7 girls for the leftover spots.
Choose M and S. Then there are 18 × · · · × 13/6! ways to choose the girls for
the leftover spots. The answer is 2×18×17×· · ·×12/7!+18×17×· · ·×13/6! =
2 × C(18, 7) + C(18, 6).
Solution 2. This is the total number of teams possible minus the
number of teams with no 7th graders. The answer is 20 × 19 × ... × 13/8! −
18 × . . . . × 11/8! = C(20, 8) − C(18, 8)
Problem 4 Solution. Any 3 points form a triangle. We can choose 3 points
in 10 × 9 × 8/6 ways because there are 10 ways to choose the first point, 9
ways to choose the second and 8 ways to choose the third. Since each triangle
was listed 3 × 2 × 1 times, we divide by 6.
308 Solutions
Problem 5 Solution.
(a) 13!.
(b) First, let’s find the number of ways to sit the 10 other girls; it is
10!. For each of these arrangements, we can choose a spot for the 3 girls in
11 different ways. For each way we choose the spot, we can arrange A, B, C
in 3! ways. Therefore, the answer is 10! × 11 × 3! = 11! × 6.
(c) Solution 1. First, let’s calculate the number of ways we can arrange
the girls if M and D sit next to each other. That is 11! × 12 × 2 = 12! × 2.
Next, we already know the total number of ways for 13 girls to sit in a row.
Then the number of ways for M and D NOT to be next to each other equals
the total number of ways for 13 girls minus the number of ways for M and
D to be next to each other. That is 13! − 12! × 2 = (13 − 2) × 12! = 11 × 12!.
Solution 2. Let’s calculate the number of ways we can arrange 11 girls
without M and D. That is 11!. Next, let’s find spots for M and D that are
not next to each other. Prove that for any spot we choose for M, there will
be 11 spots left for D. Indeed, suppose that M sits to the left of all the girls.
Then there are 11 spots for D. The same is true if M sits to the right of all
the girls or if M sits between the girls (not at the edge). Altogether, we can
add M in 12 ways. After that, we always can add D in 11 ways. The answer
is 11! × 12 × 11 = 12! × 11.
Problem 6 Solution. Notice that each angle of this triangle is at least 60°
because it contains an angle of an equilateral triangle inside it. But the sum
of the angles of a triangle is 180°, so all three angles must be equal to 60°
exactly. Then, the triangle is equilateral.
Problem Set 14: Mathematical Auction 309
Mathematical Auction
A comment about the 16-dots problem: Remember to take into account
squares with sides that are not grid-aligned.
Problem 3 Solution. Let t1 be the time spent by the first traveler, let t2
be the time spent by the second traveler, and let d be the distance between
A and B.
For the first traveler we have t1 = (d/2)/6 + (d/2)/4, and, multiplying
both parts by 24, 24t1 = 2d + 3d, so t1 = (5/24)d. For the second traveler,
(t2 /2) × 6 + (t2 /2) × 4 = d, so 5t2 = d and t2 = (1/5)d = (5/25)d. We can
see that the first time is a tiny bit greater.
Problem 4 Solution. No. Whatever the professor does, the leftmost
number will always be smaller than its right neighbor.
Problem 5 Solution.
(a) Yes. An example is easily constructed.
(b) No. Let’s color the little cubes black and white as on a 3D checker-
board (adjacent cubes being of different colors). Without the center cube,
there will be 12 cubes of 1 color and 14 of the other. On the other hand, a
1 × 1 × 2 brick always contains 1 black and 1 white cube. So, you can only
construct shapes that have the same number of black and white cubes in
them.
310 Solutions
Problem 6 Solution. Everyone, except for Baron Orange and the first
victim, kills somebody once and then gets killed by someone. Therefore, we
can place all the courtiers in a chain of killers, from Orange to the first guy.
The titles in this chain change in the predefined pattern: baron, duke, count,
baron, . . . , etc., with every 3rd one being a count. Thus the 99th member
of the chain is a count, and the 100th member (the first victim) is a baron.
Problem 7 Solution. Let’s suppose that it is not true. Then, for each
x, there are no more than 100/x boxes containing at least x pearls. That
allows us to come up with estimates on the total number of pearls, and
even rough estimates are good enough. For example, there are less than
100 nonempty boxes and less than 10 of them contain at least 10. Also,
no box has 100 pearls. Adding this up, we get that we have no more than
9 × 99 + 90 × 9 < 2,000 pearls, which is a contradiction.
Problem Set 15: Combinatorics III. Complements. Snake Pit Game 311
Warm-up 2 Solution.
of groups of 4 girls with both Annie and Fannie included. This is C(6, 4) −
C(4, 2) = 6 × 5 × 4 × 3/(4 × 3 × 2 × 1) − 4 × 3/2 = 15 − 6 = 9.
Here is an alternative way to count: for Annie and Fannie not to be in
this group together, the group should contain either Annie only (C(4, 3) =
4 × 3 × 2/(3 × 2 × 1) = 4 ways) or Fannie only (4 ways) or neither of them
(C(4, 4) = 1 way). 4 + 4 + 1 = 9.
We can choose the boys in C(5, 2) = 5 × 4/(2 × 1) = 10 ways.
Thus, the answer is 10 × 9 = 90.
Problem 5 Solution. A pair of vertices to serve as a base for a triangle
that points up: 5 × 4/2 = 10 ways. Thus, there are 10 × 5 = 50 triangles
that point up. The number of triangles that point is the same. Altogether
there are 100 triangles.
Problem 6 Solution. Let’s reformulate the problem: every arrangement
of the kids in a circle corresponds to an arrangement in a row such that:
- Abigail and Fiona are at the first two positions, and the rest of the kids
stand to the right of them.
Indeed, every row of kids like this, if closed into a loop, would correspond
to exactly one way to place the kids in a circle. The number of such
arrangements is 2 × (10 × 9 × 8 × · · · × 2 × 1) = 2 × 10!.
Problem 7 Solution. We start with choosing 1 senior representative from
each guild: this can be done in 2×5×3 ways. We have 2 spots left that are to
be filled with 1 baker, 4 goldsmiths, and 2 traders. There are no restrictions
on whom to choose. Therefore, we need to pick 2 people from the group of
7. It can be done in 7 × 6/2 ways. The answer is 2 × 5 × 3 × 7 × 6/2 = 630.
Problem 8 Solution. Choose 3 kids from 9 for the first team: 9 × 8 ×
7/(3 × 2) = 84 ways. Out of the 6 kids that are left, choose 3 for the second
team: 6×5×4/(3×2) = 20 ways. Altogether, there are 84×20 = 1,680 ways
to choose the kids for the first two teams. Let’s observe that we have just 3
kids left; therefore, the third team is completely defined. Answer: 1,680.
Problem 6 Solution. First, each pirate gets 1 coin; next, they have to
share 3 coins. The options are:
- One pirate gets all three coins (4 ways).
- One pirate gets 2 coins, and one gets 1 coin (4 × 3 ways).
- Three pirates get 1 coins each (4 ways).
Answer: 4 + 12 + 4 = 20.
Problem 7 Solution. Let’s start with positioning the black rook and follow
with the white rook. A black rook can be placed in 64 ways; it always blocks
one row and one column—15 squares total. Therefore, after the black rook
is placed, there will be 64 − 15 = 49 positions possible for the white rook.
Answer: 64 × 49.
Problem 8 Solution. Let’s start with positioning the black king and follow
with the white king.
- If the black king is in a corner, it blocks 4 squares, and the white king
has 64 − 4 = 60 options. Since there are 4 corners, the number of placements
is 4 × 60.
- If the black king is on a side square that is not a corner square, the king
blocks 6 squares, and the white king has 64 − 6 = 58 options. Since there
are 4 × 6 = 24 squares like this, the number of such placements is 24 × 58.
- If the black king is not on a side, then it blocks 9 squares, and the
white king has 64 − 9 = 55 options. Since there are 36 central squares, the
number of placements is 36 × 55.
Answer: 4 × 60 + 24 × 58 + 36 × 55.
Warm-up 2 Solution.
Warm-up 3 Solution.
First, we can rearrange the digits so that they would grow left to right. This
new number would have the same sum of digits, and it will be smaller than
(or equal to) the original. Next, suppose that we have two digits in this
number next to each other, A and B, such that B is not 9 and A is not 0
and B is to the right of A. Then we can replace the digits A and B with the
digits A − 1, B + 1. The new number would be smaller.
“Cutifying” a number this way, we will end up with X999...99. Thus,
the cute numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, . . . , 89, 99, 199, 299, . . . , 999,
1,999, 2,999, 3,999, . . . , etc.
Each new decimal position adds another 9 numbers. 200/9 = 22 with
remainder 2. Thus, the 200th cute number has 22 digits, and the first digit
is 2: 2999...999.
+
+
Problem 3 Solution.
(a) The gray squares are the union of the two diagonals. Therefore, the
sum of the numbers on the gray squares is equal to the sum of the numbers
Problem Set 17: Magic Squares and Related Problems 319
on two diagonals. (These two diagonals are clearly marked in the first picture
below.) Therefore, this total is twice the magic constant.
(b) Take another look at the picture on the left: the sum of the numbers
in all the white squares (checkmarked) must be equal to twice the magic
constant as well. Indeed, these white squares complement the gray squares.
From part (a) we know that the sum of all the gray squares is twice the
magic constant. Also, the total in the entire table is 4 times the constant.
Take a look at the picture on the right. The sum of the two central rows
and the two central columns is 4 times the constant. However, the total sum
of the eight checkmarked squares (see the first picture below) is twice the
constant. Therefore, the double total of the 4 central squares is twice the
constant as well.
a) b)
Problem 5 Solution.
(a) The minute hand rotates 6 degrees per minute, and an hour hand
is 12 times slower. Therefore, it rotates 0.5 degrees per minute.
(b) In one minute, the difference grows by 5.5 degrees. Therefore, in 5
minutes it is 5.5 × 5 = 27.5 degrees.
(c) We are looking for the difference 180. It’ll be in 180/5.5 = 1,800/55
= 360/11 minutes, that is, 32 and 8/11 minutes.
(d) To get an angle of 360 degrees we need to double the time required
for 180: 64 and 16/11 minutes. This is 1 hour plus 5 and 5/11 minutes.
Problem 6 Solution. Prove that each knight ate an even number of raisins.
Indeed, choose the knight who ate the smallest number of raisins. (If there
are a few of them, choose one.) His neighbor on the left ate either 10 less
or twice more. Since the knight we chose ate the smallest number of raisins,
then the neighbor on the left ate twice as many. Therefore, the neighbor on
the left ate an even number of raisins. His neighbor on the left ate an even
number of raisins as well. Making the full circle, we’ll end us with the first
knight, who must have eaten an even number of raisins as well. Therefore,
the total number of raisins must be an even number.
320 Solutions
(b) Add the 3 sums along the lines. We get 3 × 12 = 36. Also, we get
the sum of all 7 numbers, which is 28, plus 2 extra copies of the number in
the center. Thus, 36 = 28 + 2x. Thus, x = 4.
(c) Suppose that the sum is different. Call it Y . The sum of the numbers
on 2 circles is less than the total sum of numbers because we do not count
the number in the center. Therefore, 2 × Y < 28. Thus, Y ≤ 13. The
sum of the numbers on all 3 lines is greater than the total sum of numbers
because the center is counted 3 times. Therefore, 3 × Y > 28. Thus, Y ≥ 10.
Also, 3 × Y − 28 is equal to twice the number in the center, which is even;
322 Solutions
so, Y must be even. If Y were 10, then the number in the center would be
(3 × 10 − 28)/2 = 1. However, the number is the center must be even as
well. Indeed, the total sum of all the numbers, 28, is equal to the sum of the
numbers on 2 circles and the number in the center. Thus, Y must be 12.
Problem 4 Solution. Let’s prove that the total number of conductors and
inspectors (fake and not fake together) should be a factor of 5 and a factor of
8 at the same time. First, since the number of fakers is 4 times smaller than
the number of real conductors and inspectors, then the total number of all
kinds of conductors and inspectors together is a multiple of 5. Second, since
the number of conductors is 7 times smaller than the number of inspectors,
then altogether the number of conductors and inspectors is a multiple of 8.
Since 40 is the only number that is a factor of both 5 and 8 and that is
smaller than 60, there are therefore 60 − 40 = 20 passengers.
Problem 5 Solution. First, we can observe that there were no more than 3
films picked. Otherwise, we would have 4 judges voting for 4 different films.
Now, we have 10 judges and no more than 3 top picks. If each top pick were
voted by not more than 3 judges, we would end up with not more 9 votes.
Contradiction.
Problem 1 Solution.
(a) Since each round was played by 2 students, the total number of
rounds is 10 × 3/2 = 15.
(b) Suppose that Lorenzo played x rounds with Isabella and y with
Francesca. Then Isabella played 10−x rounds with Francesca, and Francesca
played 10 − y rounds with Isabella. This can be possible only when x = y.
Problem 2 Solution. If each toddler takes home 3 toys of the same kind,
then the total numbers of toys of every kind should be a multiple of 3.
However, it is 13. Contradiction.
Problem 3 Solution. Counting daggers row by row we get that this num-
ber is greater than 6 × 50 = 300. Counting the same quantity column by
column, we get that it must be less than 6 × 50 = 300.
Problem Set 18: Double Counting, or There Is More than One Way . . . 323
Problem 4 Solution.
(a) Split the pigs into two groups: P1, P2, P3, P4 and P5, P6, P7, P8.
Each group weighs at least 1,000 pounds.
(b) We have pigs P1, P2, P3, P4, P5, P6. We know that
P1 + P2 + P3 + P4 > 1,000,
P3 + P4 + P5 + P6 > 1,000,
P5 + P6 + P1 + P2 > 1,000.
Adding these three inequalities together, we get
2 × (P1 + P2 + P3 + P4 + P5 + P6) > 1,000 × 3.
Problem 5 Solution. Suppose that X is the number of orcs and Y is
the number of goblins. Then the number of orc-goblin quarrels is equal to
X × 10, and the number of goblin-orc quarrels is equal to Y × 9. Since these
two numbers are equal, X × 10 = Y × 9. Therefore, X < Y .
Problem 6 Solution. Denote the price of a single pie by x.
Then the amount she has in $10 bills is equal to 4x − 60. The amount
she has in $20 bills is 5x − 60.
The total amount she has in 10’s and 20’s is 6x − 60.
The sum of the first two quantities must be equal to the third one.
Thus, we have the equation
6x − 60 = 5x − 60 + 4x − 60,
6x = 9x − 60,
3x = 60,
x = 20.
Problem 7 Solution. Suppose that for each course a student participated
at she was receiving a token. Let’s count the total number of tokens in 2
different ways. First, each course gave out an odd number of tokens, and
there were 7 courses total. A sum of 7 odd numbers is odd. Next, we can
count the same quantity student by student. Each student received an odd
number of tokens. For the total sum to be odd, the number of students must
be odd.
Problem 8 Solution.
(a) If we add coins in 3 small triangles marked by solid black lines, we
get a total value of 30. (See picture A.) This value is composed of all 6 coins
of the big triangle with 3 coins in the center counted twice. (Each central
coin belongs to 2 small triangles.) The 3 coins in the center form a triangle
(marked by the dotted line); therefore, their total value is 10. Thus, the
value of all 6 coins is 30 − 10 = 20.
(b) We cannot determine the total value of all the coins. One possible
solution would be to observe several patterns in the values of the coins and
then to come up with 2 different examples. First, let’s notice that any 2
324 Solutions
coins located in the outer vertices of 2 triangles that share a pair of coins,
should have the same value. (A pair like that is shown at B1—2 white coins.)
Therefore, all the white coins in the picture B2 should be equal, all the gray
coins should be equal, and all the dark coins should be equal. Moreover, it is
easy to see that any set of 3 values that add up to 10 would make a solution.
Now, let’s construct 2 solutions with different totals.
Example 1. Each dark coin weights 1, gray—1, white—8. The total value
of all the coins is 4 × 1 + 3 × (1 + 8) = 31.
Example 2. Each dark coin weights 8, gray—1, white—1. The total value
of all the coins is 4 × 8 + 3 × (1 + 1) = 38.
A B1 B2
Problem 10 Solution. Suppose that we can do it. Then the total sum over
all 6 segments must be a multiple of 6: 6 × Y . This total sum is composed
of 3 copies of the “vertex” numbers (the numbers at the endpoints of the
segments) and 1 copy of the “central” numbers. This is the same as the sum
over all circles plus double the “vertices” sum. The total over all circles is
0 + 1 + 2 + · · · + 9 = 45. Therefore, 45 + 2 × (total over 4 vertices) = 6 × Y .
However, the sum of an odd and an even must be odd.
Problem 12 Solution. For every grid line, let’s calculate the number of
dominoes this grid line cuts through. Next, let’s calculate the sum of these
numbers. Since exactly 1 grid line goes through every domino piece, this
sum is equal to the total number of dominoes in the rectangle. Thus, the
total number of dominoes is a multiple of 4. Since the area of each domino
piece is 2, the total area of the rectangle is a multiple of 8. Therefore, at
least 1 side of the rectangle must be a multiple of 4.
Problem 13 Solution. Let’s split this table into two:
1 2 3 4 0 0 0 0
1 2 3 4 4 4 4 4
1 2 3 4 8 8 8 8
1 2 3 4 12 12 12 12
Since these two tables add up to the original one, then we can calculate
the sum over each table separately and add these two sums together.
The sum of all the numbers in the first table is 0 since each column has
2 pluses and 2 minuses. The sum of all the numbers in the second table is 0
since each row has 2 pluses and 2 minuses.
Problem 14 Solution. Take two gentlemen, A and B. Call the club that
they belong to Club X. If all others belong to Club X, the problem is solved.
If not, there must be a gentleman, call him C, who does not belong to Club
X. Still, he has to be at the same club with A. So, he has to belong to some
club, call it Y, that he shares with A (see the first picture below).
Let’s prove that every other gentleman should belong to X, to Y, or
to both. Suppose that there exists a gentleman who does not belong to X
and Y. Then he cannot share a club with A because A already belongs to 2
clubs—X and Y.
Next, since B and C do not belong to the common part of X and Y,
there must be some club (call it Z) that they both belong to. We will prove
that all the gentlemen who do not belong to both X and Y must belong to
Z. Indeed, suppose that a gentleman, call him D, belongs to X but not to Y.
Then, to be in the same club with C, he must belong to Z.
Now, all the gentlemen are split into 3 sets—those who are in X and Y,
in Y and Z, in X and Z. Remove the smallest set, which must be not greater
than 9. Then the total of the 2 sets that are left is at least 18.
Club X Club X
A A
B B
Club Y C Club Y C
Club Z
326 Solutions
Problem 1 Solution. It takes Mob as much time to get from the midpoint
down to the bottom as it takes Bob to walk all the way. Since Mob also
spent some time skiing, she will arrive late.
Problem 2 Solution. Each person who approached the rack changed the
number of hats either from odd to even or from even to odd. In the beginning,
the number of hats was even; it changed an odd number of times and became
odd. So, it cannot be 10 since 10 is an even number.
Problem 3 Solution.
(a) A flower that opens on day 1 becomes white on day 3. Therefore we
know that 3 days ago 14 flowers opened and 2 days ago 11 flowers opened.
That gives us 11 + 14 = 25 yellow flowers the day before yesterday.
(b) A flower that turns white tomorrow had to be yellow yesterday. Out
of 20 yellow flowers yesterday, 11 became white today. The rest will be white
tomorrow, which gives us 9 white flowers. (Of course, this problem can be
solved with equations.)
Problem 5 Solution. Each of the 3rd, 4th, and 5th segments are to in-
tersect all remaining 5 segments. Therefore, the 1st segment intersects with
the 3rd, 4th, and 5th only. Thus, the 2nd segment intersects the 3rd, 4th,
5th, and 6th. Thus, the 6th must intersect the 3rd, 4th, 5th, and 2nd.
Problem 6 Solution. Suppose that the first participant ate x hot dogs and
that altogether the participants ate T hot dogs on the second day. Then all
others except the first one ate x on the second day, and the first ate T − x.
Then in two days, the first ate x + (T − x) = T hot dogs. The same is true
for any other participants.
the time that the white rabbits who came before 7 had waited, and the arches
on the right indicate the time the gray rabbits had waited for those white
rabbits who came after 8.
Therefore, if all the gray rabbits arrive at 7 PM, the total waiting time
would be the sum of all intervals above. If all the gray rabbits arrive at 8
PM, the total waiting time would be the sum of all intervals below.
Thus, our goal is to prove that the total sum of intervals above cannot
be equal to the total sum of intervals below. Let’s notice that to the left of
the dotted vertical line (total waiting time before 7) there is a perfect match
of the lengths of segments above and below, and to the right of the dotted
vertical line (after 8) there is a perfect match of the lengths of segments
above and below. Thus, the total difference is equal to the difference of
lengths of gray and black segments between 7 and 8. Each such segment is
1 hour long. However, since the number of white rabbits is odd, the number
of segments “above” is not equal to the number of segments “below”. Thus,
the difference cannot be 0.
7 time
8
Problem Set 20: Divisibility I. Review 329
Problem 1 Solution.
(a) The smallest common factor is 1. The greatest common factor is
2 × 52 × 11.
(b) The least common multiple is 24 × 32 × 54 × 7 × 11 × 13.
Problem 3 Solution.
(a) The prime factors of the product 23 ×52 should be distributed among
the two numbers. Since the two numbers are relatively prime, the entire set
of prime factors 2 should belong to one of the numbers. The same is true
with 5. Thus, the two answers are: 23 and 52 ; 1 and 23 × 52 .
(b) The factors of 28 × 35 should be distributed among x and y. Since
the common factor is 6, each number should contain at least one copy of
2 and of 3. However, if both numbers contained more than one factor 2;
the common factor would be at least 2 × 2 × 3. Therefore, one number
must contain one factor 2; the other number must contain 27 . Similarly, one
number must contain 3; the other must contain 34 . Thus, the answers are:
2 × 3 and 27 × 34 ; 27 × 3 and 2 × 34 ; 2 × 34 and 27 × 3.
Problem 4 Solution.
(a) Emma is not right. For example, 36 is divisible by 6 and 4, but not
by 24. However, since 8 and 3 are relatively prime, divisibility by 24 follows
from divisibility by 8 and by 3.
(b) Milo is not right. For example, 30 is divisible by 2, 3, and 10, but
not by 60. However, since 3, 4, and 5 are all relatively prime, divisibility by
60 follows from divisibility by 3, by 4, and by 5.
(c) Since 180 = 9 × 4 × 5 and since 9, 4, and 5 are all relatively prime,
divisibility by 180 follows from divisibility by 9, by 4, and by 5.
Problem 5 Solution.
(a) Example: 12 and 36.
(b) If the GCF of two numbers is 24, then each must be a multiple of
24. So, their difference must be a multiple of 24 as well. Thus, it cannot be
12.
(c) If the GCF of two numbers is 7, then each must be a multiple of 7.
So, their difference must be a multiple of 7 as well. Thus, it cannot be 24.
Problem 6 Solution.
(a) Both 93 and 102 are multiples of a price of a cookie. 93 = 3 × 31
and 102 = 3 × 34 = 3 × 2 × 17. So, a cookie could cost 1 or 3 copper coins.
Problem Set 21: Divisibility II. Relatively Prime Numbers; GCF and LCM 333
There are 52 multiples of 19 that are smaller than 1,000; out of them 2
are multiples of 192 . Thus, 1,000! contains 52 + 2 = 54 prime factors 19.
Therefore, n = 55.
Problem 6 Solution.
3*5
2*3 3*5 2*3 3*5
2*3 5*7
2*3*5*7*
2*3*5*7 11*13
Problem 7 Solution.
(a) Suppose that we have a number smaller than p. Then, since p is
prime, it cannot share any common factor with it. Therefore, 2, 3, . . . , p − 1
are all relatively prime to p. This is p − 2 numbers altogether.
(b) The only numbers less than p2 that are not relatively prime to p2
are 1 × p, 2 × p, 3 × p,. . . , (p − 1) × p. Therefore, to get all relatively prime
numbers, we are to exclude this set from the list 2, 3, . . . , p2 − 1. That makes
p2 − 2 − (p − 1) = p2 − 2 − p + 1 = p2 − p − 1 numbers altogether.
P L
Problem 14 Solution.
(a) The smallest multiple of 9 with the sum of its digits adding up to
81 is composed of nine 9’s. Thus, it will be in the column 111111111.
(b) Four consecutive number 27’s come first. For example, they will be
under the numbers 9,369, 9,378, 9,387, 9,396.
338 Solutions
Problem 2 Solution.
(a) Since the number of vertices is odd, there will be 2 vertices of the
same color next to each other. Name these vertices 1 and 2. Suppose that
their color is black. Then the vertices on both sides of 1 and 2 (vertices 7
and 3) should be white. (Otherwise, we would have 3 black vertices in a
row forming an isosceles triangle.). What color should the vertex opposite
vertices 1 and 2 be (vertex 5)? If it is black, then 1, 2, and 5 form an isosceles
triangle. If it is white, then 7, 3, and 5 form an isosceles triangle.
(b) No, it is not. Suppose that vertices 1, 2, 5, and 6 are black and
vertices 3, 4, 7, and 8 are white. Then no isosceles triangle can be found.
Problem 3 Solution. 15! has the factors 5, 10, 15. Therefore, it must end
with 3 zeroes: 15! = 130 ∗ 674,368,000. Also, it is divisible by 9. Thus, the
sum of the digits must be a multiple of 9: 1+3+∗+6+7+4+3+6+8 = 38+∗.
Thus, the unknown digit must be equal to 7.
To calculate the remainder of 1211 , let’s start with writing the remainders
of the low powers of 12:
The remainder of 121 is 5.
The remainder of 122 is the same as that of 5 × 12 = 60, which is 4.
The remainder of 123 is the same as that of 4 × 12 = 48, which is 6.
The remainder of 124 is the same as that of 6 × 12 = 72, which is 2.
The remainder of 125 is the same as that of 2 × 12 = 24, which is 3.
The remainder of 126 is the same as that of 3 × 12 = 36, which is 1.
Now, since 1211 = 125 × 126 , we can calculate the remainder of 1211 . It
is 3 × 1 = 3.
(Alternatively, we can observe that remainders repeat with period 6.)
So, the final answer is the remainder of 0 − 3, which is 4.
Problem 1 Solution. It follows from the first condition that Tim had 3
times as many nuts as Tom. Therefore, the number of nuts he had is divisible
by 3. Since it is still divisible by 3 after Tim gave some nuts to Tom, the
number of nuts he gave also should be divisible by 3. Therefore, Tim gave
Tom 3 nuts, the only number divisible by 3 that is not greater than 5.
Problem Set 25: Divisibility V. Divisibility and Remainders 345
Warm-up 2 Solution.
1
2 3 2 3
Warm-up 1 Solution.
Problem 2 Solution.
(a) Yes, an easy example is a polygon with 8 vertices, each connected
to two neighbors and the opposite vertex.
(b) No, this would mean an odd number of odd vertices.
(c) Suppose that the graph has x vertices. Then the number of edge
ends, if counted vertex by vertex, must be x × 3. Thus, the number of edges
is x × 3/2 = 20. However, this equation has no integer solutions. Therefore,
such a graph is impossible.
Problem 3 Solution. Suppose that we have two kids from different schools.
Then the first child knows at least 7 kids from her school; the second child
knows at least 7 kids from her school. Thus, there are at least 8 kids from
each school. So, at least 16 kids should participate in the trip. Contradiction.
(b) The number of cable ends would be 30 × 5 = 150. Thus, the number
of cables would be 75.
(c) Suppose that the number of computers is x. In this case, the number
of cables is x × 5/2. We have an equation to solve: x × 5 = 56 × 2. It is
easy to see that such an equation does not have an integer solution. (The
left-hand side is divisible by 5, and the right-hand side is not.)
Problem 5 Solution. Even. If the person is a knight, then the total number
of his friends is odd; if he is a liar, then it is odd as well. Thus, everyone on
the island has an odd number of friends. We have a graph whose vertices are
odd. But we know that in each graph the number of odd vertices is even.
For such a graphs to exist, it should have an even number of vertices.
Problem 6 Solution. Let’s suppose that these 2 flights belong to different
airlines. Temporarily erase all flight of 1 airline (Royal, for example) from
the map. In this case, we will be left with a map where all the airports have
Problem Set 27: Graph Theory II. Handshaking Theorem 351
2 lines starting at them and 1 airport (the airport where Republican flies
abroad) with 1 line. Such a graph is not possible since it would have only 1
“odd” vertex.
Since only one arrow comes from every vertex, no other loops can be
connected to the same group of points. However, it is possible that more
“tails” are connected to the same loop. (See the picture below.)
Now, let’s demonstrate how to split the pirates in each component into
3 groups.
Let’s start with the actual loop. In such a loop, it is easy to split the
pirates into groups: we can alternate group 1 and group 2 assignments. Also,
if the number of pirates in the loop happens to be odd, the last pirate can be
assigned to group 3. Next, let’s assign the pirates that belong to the “tails”.
Starting from the pirate (point) that is in the main loop and moving away
from the loop, we can alternate assigning pirates to groups 1, 2, and 3.
Problem 7 Solution. Let’s represent players with dots. Connect those who
played on the first day with a red line and those who played on the second
day with a blue line. We get 10 dots, each connected with 2 others by 1
blue and 1 red line. Note that these lines form loops. (If you start following
these lines, your route can only end when you “arrive” at the starting dot!)
Every loop has an even number of dots since the red and blue lines in a loop
alternate. If we take every other dot in every cycle, we get 5 players that
are not connected to each other. So, these 5 players did not play among
themselves.
Problem 8 Solution. Let’s model this problem through graphs: planets are
vertices, and shuttle routes are edges. This graph is complete—every vertex
is connected to every other. Since we have two different shuttle companies,
we will use two types of lines to mark these edges: solid lines for Royal routes
and dashed lines for Spacehound.
Now, we are going to prove that if Royal does not span the entire galaxy,
then Spacehound does.
Suppose that there exist two planets, call them A and B, such that it is
not possible to get from A to B using Royal routes only. First, let’s take a
look at all the planets that can be reached from A by Royal shuttles; let’s
call this group of planets “A-orbit”, and the rest of the planets in Galaxy
M31 – “not-A-orbit”.
We are going to prove that:
- Any A-orbit planet is connected to any not-A-orbit planet by a direct
route that is served by Spacehound. Indeed, suppose that X is an A-orbit
354 Solutions
planet and Y is not. If the direct route that connects X and Y were Royal,
then Y would be reachable from A via Royal shuttles. Then Y would be in
A-orbit. (See the picture below.)
A-orbit (reachable by Royal)
A X Y Royal routes
Spacehound routes
- From any A-orbit planet, we can get to any A-orbit planet by Space-
hound shuttles. Indeed, suppose that X and Z are both A-orbit planets.
Then X and Z must be connected to B by direct Spacehound routes. Then
one can travel from X to Z by Spacehound with one transfer in B. (See the
picture below.)
A X
B
- From any not-A-orbit planet, we can get to any other not-A-orbit planet
by Spacehound shuttles. Indeed, suppose that C and D are both not-A-orbit
planets. Then C and D must be connected to A by direct Spacehound routes.
Then one can travel from C to D by Spacehound shuttles with one transfer
in A.
C D
A
This proves that each pair of planets can be reached via Spacehound
routes only. So, if Royal does not span an entire galaxy, then Spacehound
does. Thus, one of the companies can be eliminated.
Problem Set 29: Mathematical Olympiad III 355
Problem 3 Solution. First, we can observe that the wizard works twice
as fast as the apprentice (1/3 of all and 1/6 of all). Next, note that by
the time the wizard went to bed, 1/6 of all the frogs were not transformed
yet. If the two work together, they transform 1/6 of all the frogs in 1 hour.
However, since the magician is twice as fast, the apprentice transforms 1/3
of this amount in 1 hour, and the magician transforms 2/3 of this amount.
Thus, the apprentice transforms 1/18 of all the frogs in 1 hour. Since the
apprentice is left with 1/6 of all the frogs, it will take him 3 hours to finish.
Problem 4 Solution. Notation:
x1 x2 x3 x4 x5 x6 x7
We can see that x3, x4, x5, x6, x7, x8 make a loop that can be traced
in the direction of the arrows, which is impossible. Thus, he has to stop no
later than on Wednesday.
Example that shows that Wednesday is possible: x1 = 100, x2 = 99,
x3 = 98, x4 = 50, x5 = 51, x6 = 52, x7 = 53.
Problem 5 Solution. The possible charges for a face are −4, −2, 0, 2,
and 4 (you cannot get an odd number by adding four +1 or −1 charges).
Therefore, by the Pigeonhole Principle, out of 6 cells, we’ll have at least 2
with the same charge.
Problem 6 Solution. Denote the wealth of the bosses by W 1, W 2, ..., W 9.
Let’s use the first 3 questions to find W 1 + W 2, W 3 + W 4, W 5 + W 6. Now,
we are left with 3 unknown weights W 7, W 8, and W 9—and 3 questions.
Let’s use up these 3 questions to find out the sums W 7 + W 8, W 8 + W 9,
and W 9 + W 7. Then, if we add these 3 sums and divide the total by 2, we
get W 7 + W 8 + W 9.
359
Bibliography
[1] A. Burago, Mathematical Circle Diaries, Year 1: Complete Curriculum for Grades 5
to 7, American Mathematical Society, 2012.
[2] D. Fomin, S. Genkin, and I. Itenberg, Mathematical Circles (Russian Experience),
American Mathematical Society, 1996.
[3] Moscow Center for Continuing Math Education (MCCME), Internet-project
Problems, http://www.problems.ru. Accessed April 30, 2017.
[4] Z. Stankova and T. Rike, A Decade of the Berkeley Math Circle: The American
Experience, Volume I, American Mathematical Society, 2008.
[5] D. Vandervelde, Circle in a Box, American Mathematical Society, 2009.
[6] S. Dorichenko, A Moscow Math Circle: Week-by-week Problem Sets, American
Mathematical Society, 2012.
[7] I. Yashchenko, Invitation to a Mathematical Festival, American Mathematical Society,
2013.
[8] Z. Stankova and T. Rike, A Decade of the Berkeley Math Circle: The American
Experience, Volume II, American Mathematical Society, 2014.
[9] A. Shen, Geometry in Problems, American Mathematical Society, 2016.
[10] A. P. Kiselev and A. Givental, Kiselev’s Geometry, Book I. Planimetry, Sumizdat,
2006.
[11] D. Faires, First Steps for Math Olympians: Using the American Mathematics
Competitions, Mathematical Association of America, 2006.
[12] D. Faires and D. Wells, AMC Contest Problem Books, Mathematical Association of
America, 2006.
[13] S. Lehoczky and R. Rusczyk, The Art of Problem Solving, Volume 1: The Basics, Art
of Problem Solving.
[14] S. Lehoczky and R. Rusczyk, The Art of Problem Solving, Volume 2: And Beyond,
Art of Problem Solving.
[15] M. Saul and S. Zelbo, Camp Logic: A Week of Logic Games and Activities for Young
People, Natural Math, 2014.
[16] Alec Wilkinson, The pursuit of beauty, New Yorker Magazine, February 10, 2015.
[17] A. Kordemsky. The Moscow puzzles, Dover, 1992.
[18] Math Department of Moscow State University, Math Circles Archives, http://mmmf.
msu.ru/archive/. Accessed April 30, 2017.
[19] “Mathematical Festival” tournament, Russia, http://olympiads.mccme.ru/
matprazdnik/. Accessed April 30, 2017.
[20] Center for Complimentary Education of Gifted Schoolchildren, Kirov, Russia,
http://cdoosh.ru/. Accessed April 30, 2017.
[21] Club “Mathematical Guru”, Samara, Russia, http://mathguru.ru/. Accessed April 30,
2017.
[22] “Turlom” tournament, Russia, http://turlom.olimpiada.ru/ Accessed April 30, 2017.
361
362 Bibliography
MCL/20