1 of 56

Counting lots of things!

A Math Circle session by Aditya and Nart

2 of 56

Permutations

Number of ways to pick teams with numbering

3 of 56

Permutations

  • Alice wants to make a three-layered cake for her friend's birthday but she is undecided on how to color each layer. She has three colors available:

4 of 56

How many ways can Alice color her cake?

5 of 56

How many ways can Alice color her cake?

First layer is Red:

Second layer is Blue:

Third layer is Green:

Second layer is Green:

Third layer is Blue:

6 of 56

How many ways can Alice color her cake?

First layer is Red:

First layer is Blue:

Second layer is Blue:

Third layer is Green:

Second layer is Green:

Third layer is Blue:

Second layer is Red:

Third layer is Green:

Second layer is Green:

Third layer is Red:

7 of 56

How many ways can Alice color her cake?

First layer is Red:

First layer is Blue:

First layer is Green:

Second layer is Blue:

Third layer is Green:

Second layer is Green:

Third layer is Blue:

Second layer is Red:

Third layer is Green:

Second layer is Green:

Third layer is Red:

Second layer is Red:

Third layer is Blue:

Second layer is Blue:

Third layer is Red:

8 of 56

How many ways can Alice color her cake?

First layer is Red:

First layer is Blue:

First layer is Green:

Second layer is Blue:

Third layer is Green:

Second layer is Green:

Third layer is Blue:

Second layer is Red:

Third layer is Green:

Second layer is Green:

Third layer is Red:

Second layer is Red:

Third layer is Blue:

Second layer is Blue:

Third layer is Red:

2

2

2

+

+

9 of 56

Permutations

Note that Alice has two options once she colors the first layer. Hence, Alice can color

 

Color choices for the first layer

10 of 56

Permutations

Note that Alice has two options once she colors the first layer. Hence, Alice can color

 

Color choices for the first layer

Color choices for the second layer

11 of 56

Permutations

Note that Alice has two options once she colors the first layer. Hence, Alice can color

 

Color choices for the first layer

Color choices for the second layer

Color choices for the third layer

12 of 56

Factorial

We call this number the factorial of 3. We write this as 3!

6 = 3  x 2 x 1

So, 4! = 4 x 3 x 2 x 1 = 24

And 5! = 5 x 4 x 3 x 2 x 1= 

13 of 56

Factorial

We call this number the factorial of 3. We write this as 3!

6 = 3  x 2 x 1

So, 4! = 4 x 3 x 2 x 1 = 24

And 5! = 5 x 4 x 3 x 2 x 1= 120

14 of 56

What if we had more colors?

We had three colors and three layers. What happens if these numbers don't match?

Say we started with 5 colors: Red, Blue, Green, Orange and Purple, and we have to color three layers.

15 of 56

What if we had more colors?

Say we started with 5 colors: Red, Blue, Green, Orange and Purple, and we have to color three layers.

Color choices for the first layer

Color choices for the second layer

Color choices for the third layer

5 x 4 x 3   

16 of 56

What if we had more colors?

Say we started with 5 colors: Red, Blue, Green, Orange and Purple, and we have to color three layers.

Color choices for the first layer

Color choices for the second layer

Color choices for the third layer

5 x 4 x 3 = 60   

17 of 56

Let us now make teams and play rock, paper and scissors!

We will pick out names and form teams.

18 of 56

Combinations

Number of ways to pick teams without numbering

19 of 56

Combinations

We will pick teams now but everyone is allowed to work together.

It doesn't matter who gets chosen at what point, the team remains the same.

20 of 56

Combinations

Examples:

  1. Treat bag during Halloween

Let us think of more examples!

21 of 56

Combinations

How to count number of combinations? Suppose, we want to pick 3 donuts out of 10 possible flavors.

22 of 56

Combinations

How to count number of combinations? Suppose, we want to pick 3 donuts out of 9 possible flavors.

There are 9 ways to pick the first one, 8 ways to pick the second, and 7 ways to pick the third. 

23 of 56

Combinations

But all these 6 ways are now the same

A

B

C

A

C

B

B

A

C

B

C

A

C

A

B

C

B

A

24 of 56

Combinations

So we get 9 x 8 x 7 divided by 6 which is 84 ways.

A

B

C

A

C

B

B

A

C

B

C

A

C

A

B

C

B

A

25 of 56

Combinations

A

B

C

A

C

B

B

A

C

B

C

A

C

A

B

C

B

A

Where does the number 6 come from here?

26 of 56

Combinations

A

B

C

A

C

B

B

A

C

B

C

A

C

A

B

C

B

A

Where does the number 6 come from here?

It is 3! because we have 3 things being shuffled

27 of 56

Combinations

A

B

C

A

C

B

B

A

C

B

C

A

C

A

B

C

B

A

So, the total number of ways are given by 

9 x 8 x 7 / 6 = 84

28 of 56

Pigeonhole Principle

29 of 56

Pigeonhole Principle

 

30 of 56

Pigeonhole Principle

 

31 of 56

Pigeonhole Principle

 

32 of 56

Pigeonhole Principle

 

33 of 56

The Pigeonhole principle

  •  

34 of 56

The Pigeonhole principle

  •  

35 of 56

Wonders in Wonderland

People in Wonderland speak English and the population of Wonderland is 700 people.

36 of 56

Wonders in Wonderland

People in Wonderland speak English and the population of Wonderland is 700 people.

Are there two people with the same first and last initial?

37 of 56

How many potential First and Last initials are there?

38 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

39 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

40 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

….

41 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

….

People:

42 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

….

People:

1 2 3 4 5 6 7 8 699 700

43 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

….

….

People:

1 2 3 4 5 6 7 8 699 700

44 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

….

….

Initials:

People:

1 2 3 4 5 6 7 8 699 700

45 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

AA

AB

AC

AD

AE

AF

AG

ZY

ZZ

….

….

Initials:

People:

1 2 3 4 5 6 7 8 699 700

46 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

AA

AB

AC

AD

AE

AF

AG

ZY

ZZ

….

….

Initials:

People:

1 2 3 4 5 6 7 8 699 700

47 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

AA

AB

AC

AD

AE

AF

AG

ZY

ZZ

….

….

Initials:

People:

1 2 3 4 5 6 7 8 699 700

48 of 56

How many potential First and Last initials are there?

 

Choices for first initial

Choices for last initial

What’s the number of my Pigeons and what’s the number of my holes?

AA

AB

AC

AD

AE

AF

AG

ZY

ZZ

….

….

Initials:

People:

1 2 3 4 5 6 7 8 699 700

By the Pigeonhole principle we conclude there are at least two people with the same first and last initials!

49 of 56

Let’s look at some scenarios

Are there two people with the same number of hairs on their head?

50 of 56

Let’s look at some scenarios

Are there two people with the same number of hairs on their head?

What is the average number of hairs on a person's head?

51 of 56

Let’s look at some scenarios

Are there two people with the same number of hairs on their head?

What is the average number of hairs on a person's head?

It is about 100,000

52 of 56

Let’s look at some scenarios

Are there two people with the same number of hairs on their head?

What is the average number of hairs on a person's head?

It is about 100,000

How many people are there in the world?

53 of 56

Let’s look at some scenarios

Are there two people with the same number of hairs on their head?

What is the average number of hairs on a person's head?

It is about 100,000

How many people are there in the world?

About 8 billion which is 8,000,000,000

54 of 56

Let’s look at some scenarios

Are there two people with the same number of hairs on their head?

8 billion is bigger than 100,000, so by pigeonhole principle, there are two people with the same number of hairs.

55 of 56

Chess Cheeseboard

56 of 56

Mouse moving on a cheese-board

Can the mouse get here

in exactly 25 moves?

It can only move

up, down, left, right but NOT diagonally