Four of a Kind For the Love of Math and Computer Science Allen - - PowerPoint PPT Presentation

four of a kind
SMART_READER_LITE
LIVE PREVIEW

Four of a Kind For the Love of Math and Computer Science Allen - - PowerPoint PPT Presentation

Four of a Kind For the Love of Math and Computer Science Allen OHara For the Love of Math and Computer Science Four of a Kind Problem 1 Multiplication takes two numbers and produces a third number. For the Love of Math and Computer Science


slide-1
SLIDE 1

Four of a Kind

For the Love of Math and Computer Science Allen O’Hara

For the Love of Math and Computer Science Four of a Kind

slide-2
SLIDE 2

Problem 1

Multiplication takes two numbers and produces a third number.

For the Love of Math and Computer Science Four of a Kind

slide-3
SLIDE 3

Problem 1

Multiplication takes two numbers and produces a third number. 2 × 3 = 6

For the Love of Math and Computer Science Four of a Kind

slide-4
SLIDE 4

Problem 1

When we do repeated multiplications, we have choices as to what pairs of numbers we multiply first. 2 × 3 × 5 2 × 3 × 5

For the Love of Math and Computer Science Four of a Kind

slide-5
SLIDE 5

Problem 1

When we do repeated multiplications, we have choices as to what pairs of numbers we multiply first. 2 × 3 × 5 2 × 3 × 5 = (2 × 3) × 5 = 2 × (3 × 5)

For the Love of Math and Computer Science Four of a Kind

slide-6
SLIDE 6

Problem 1

When we do repeated multiplications, we have choices as to what pairs of numbers we multiply first. 2 × 3 × 5 2 × 3 × 5 = (2 × 3) × 5 = 2 × (3 × 5) = 6 × 5 = 2 × 15

For the Love of Math and Computer Science Four of a Kind

slide-7
SLIDE 7

Problem 1

When we do repeated multiplications, we have choices as to what pairs of numbers we multiply first. 2 × 3 × 5 2 × 3 × 5 = (2 × 3) × 5 = 2 × (3 × 5) = 6 × 5 = 2 × 15 = 30 = 30

For the Love of Math and Computer Science Four of a Kind

slide-8
SLIDE 8

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17

For the Love of Math and Computer Science Four of a Kind

slide-9
SLIDE 9

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17

For the Love of Math and Computer Science Four of a Kind

slide-10
SLIDE 10

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17

For the Love of Math and Computer Science Four of a Kind

slide-11
SLIDE 11

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17)

For the Love of Math and Computer Science Four of a Kind

slide-12
SLIDE 12

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221

For the Love of Math and Computer Science Four of a Kind

slide-13
SLIDE 13

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221

For the Love of Math and Computer Science Four of a Kind

slide-14
SLIDE 14

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221

For the Love of Math and Computer Science Four of a Kind

slide-15
SLIDE 15

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221 = 6 × (385 × 13) × 17 = (6 × 35) × 11 × 221

For the Love of Math and Computer Science Four of a Kind

slide-16
SLIDE 16

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221 = 6 × (385 × 13) × 17 = (6 × 35) × 11 × 221 = 6 × 5005 × 17 = 210 × 11 × 221

For the Love of Math and Computer Science Four of a Kind

slide-17
SLIDE 17

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221 = 6 × (385 × 13) × 17 = (6 × 35) × 11 × 221 = 6 × 5005 × 17 = 210 × 11 × 221 = 6 × (5005 × 17) = (210 × 11) × 221

For the Love of Math and Computer Science Four of a Kind

slide-18
SLIDE 18

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221 = 6 × (385 × 13) × 17 = (6 × 35) × 11 × 221 = 6 × 5005 × 17 = 210 × 11 × 221 = 6 × (5005 × 17) = (210 × 11) × 221 = 6 × 85085 = 2310 × 221

For the Love of Math and Computer Science Four of a Kind

slide-19
SLIDE 19

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221 = 6 × (385 × 13) × 17 = (6 × 35) × 11 × 221 = 6 × 5005 × 17 = 210 × 11 × 221 = 6 × (5005 × 17) = (210 × 11) × 221 = 6 × 85085 = 2310 × 221 = (6 × 85085) = (2310 × 221)

For the Love of Math and Computer Science Four of a Kind

slide-20
SLIDE 20

Problem 1

2 × 3 × 5 × 7 × 11 × 13 × 17 2 × 3 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (5 × 7) × 11 × 13 × 17 = (2 × 3) × 5 × 7 × 11 × 13 × 17 = 2 × 3 × 35 × 11 × 13 × 17 = 6 × 5 × 7 × 11 × 13 × 17 = 2 × 3 × (35 × 11) × 13 × 17 = 6 × 5 × 7 × 11 × (13 × 17) = 2 × 3 × 385 × 13 × 17 = 6 × 5 × 7 × 11 × 221 = (2 × 3) × 385 × 13 × 17 = 6 × (5 × 7) × 11 × 221 = 6 × 385 × 13 × 17 = 6 × 35 × 11 × 221 = 6 × (385 × 13) × 17 = (6 × 35) × 11 × 221 = 6 × 5005 × 17 = 210 × 11 × 221 = 6 × (5005 × 17) = (210 × 11) × 221 = 6 × 85085 = 2310 × 221 = (6 × 85085) = (2310 × 221) = 510510 = 510510

For the Love of Math and Computer Science Four of a Kind

slide-21
SLIDE 21

Problem 1

Our choices lead to different ways to bracket (associate) the expression. ((2 × 3) × ((((5 × 7) × 11) × 13) × 17)) ((((2 × 3) × (5 × 7)) × 11) × (13 × 17))

For the Love of Math and Computer Science Four of a Kind

slide-22
SLIDE 22

Problem 1

Our choices lead to different ways to bracket (associate) the expression. ((2 × 3) × ((((5 × 7) × 11) × 13) × 17)) ((((2 × 3) × (5 × 7)) × 11) × (13 × 17)) Suppose we have n numbers in our product. How many ways can the expression be bracketed, without reordering the factors?

For the Love of Math and Computer Science Four of a Kind

slide-23
SLIDE 23

For the Love of Math and Computer Science Four of a Kind

slide-24
SLIDE 24

For the Love of Math and Computer Science Four of a Kind

slide-25
SLIDE 25

For the Love of Math and Computer Science Four of a Kind

slide-26
SLIDE 26

(ab) ((ab)c) (a(bc)) (((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd))) ((((ab)c)d)e) (((a(bc))d)e) (((ab)(cd))e) (((ab)c)(de)) ((a((bc)d))e) ((a(b(cd)))e) ((a(bc))(de)) ((ab)((cd)e)) ((ab)(c(de))) (a(((bc)d)e)) (a((b(cd))e)) (a((bc)(de))) (a(b((cd)e))) (a(b(c(de)))) (((((ab)c)d)e)f) ((((a(bc))d)e)f) ((((ab)(cd))e)f) ((((ab)c)(de))f) ((((ab)c)d)(ef)) (((a((bc)d))e)f) (((a(b(cd)))e)f) (((a(bc))(de))f) (((a(bc))d)(ef)) (((ab)((cd)e))f) (((ab)(c(de)))f) (((ab)(cd))(ef)) (((ab)c)((de)f)) (((ab)c)(d(ef))) ((a(((bc)d)e))f) ((a((b(cd))e))f) ((a((bc)(de)))f) ((a((bc)d))(ef)) ((a(b((cd)e)))f) ((a(b(c(de))))f) ((a(b(cd)))(ef)) ((a(bc))((de)f)) ((a(bc))(d(ef))) ((ab)(((cd)e)f)) ((ab)((c(de))f)) ((ab)((cd)(ef))) ((ab)(c((de)f))) ((ab)(c(d(ef)))) (a((((bc)d)e)f)) (a(((b(cd))e)f)) (a(((bc)(de))f)) (a(((bc)d)(ef))) (a((b((cd)e))f)) (a((b(c(de)))f)) (a((b(cd))(ef))) (a((bc)((de)f))) (a((bc)(d(ef)))) (a(b(((cd)e)f))) (a(b((c(de))f))) (a(b((cd)(ef)))) (a(b(c((de)f)))) (a(b(c(d(ef)))))

For the Love of Math and Computer Science Four of a Kind

slide-27
SLIDE 27

Problem 2

Imagine a staircase consisting of n equal steps.

For the Love of Math and Computer Science Four of a Kind

slide-28
SLIDE 28

Problem 2

Imagine a staircase consisting of n equal steps.

For the Love of Math and Computer Science Four of a Kind

slide-29
SLIDE 29

Problem 2

Imagine a staircase consisting of n equal steps. How many ways are there to tile the staircase with exactly n rectangles?

For the Love of Math and Computer Science Four of a Kind

slide-30
SLIDE 30

For the Love of Math and Computer Science Four of a Kind

slide-31
SLIDE 31

For the Love of Math and Computer Science Four of a Kind

slide-32
SLIDE 32

For the Love of Math and Computer Science Four of a Kind

slide-33
SLIDE 33

For the Love of Math and Computer Science Four of a Kind

slide-34
SLIDE 34

Problem 3

Consider a regular n-gon.

For the Love of Math and Computer Science Four of a Kind

slide-35
SLIDE 35

Problem 3

Consider a regular n-gon.

For the Love of Math and Computer Science Four of a Kind

slide-36
SLIDE 36

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles.

slide-37
SLIDE 37

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles.

slide-38
SLIDE 38

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles.

slide-39
SLIDE 39

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles.

slide-40
SLIDE 40

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles.

slide-41
SLIDE 41

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles.

For the Love of Math and Computer Science Four of a Kind

slide-42
SLIDE 42

Problem 3

By connecting vertices so that the lines inside the polygon don’t cross, we can break the n-gon into triangles. The end result is called a triangulation.

For the Love of Math and Computer Science Four of a Kind

slide-43
SLIDE 43

Problem 3

For a given regular n-gon, how many triangulations are there, assuming that rotations and reflections are distinct?

For the Love of Math and Computer Science Four of a Kind

slide-44
SLIDE 44

For the Love of Math and Computer Science Four of a Kind

slide-45
SLIDE 45

For the Love of Math and Computer Science Four of a Kind

slide-46
SLIDE 46

For the Love of Math and Computer Science Four of a Kind

slide-47
SLIDE 47

For the Love of Math and Computer Science Four of a Kind

slide-48
SLIDE 48

Problem 4

A binary tree is a rooted tree where each node has exactly 0, 1, or 2 children.

For the Love of Math and Computer Science Four of a Kind

slide-49
SLIDE 49

Problem 4

A binary tree is a rooted tree where each node has exactly 0, 1, or 2 children.

For the Love of Math and Computer Science Four of a Kind

slide-50
SLIDE 50

Problem 4

A binary tree is a rooted tree where each node has exactly 0, 1, or 2 children.

A node with no children is called a leaf.

For the Love of Math and Computer Science Four of a Kind

slide-51
SLIDE 51

Problem 4

A full binary tree is one where every node has either 0 or 2 children.

For the Love of Math and Computer Science Four of a Kind

slide-52
SLIDE 52

Problem 4

A full binary tree is one where every node has either 0 or 2 children. How many full binary trees are there with n leaves?

For the Love of Math and Computer Science Four of a Kind

slide-53
SLIDE 53

For the Love of Math and Computer Science Four of a Kind

slide-54
SLIDE 54

For the Love of Math and Computer Science Four of a Kind

slide-55
SLIDE 55

For the Love of Math and Computer Science Four of a Kind

slide-56
SLIDE 56

For the Love of Math and Computer Science Four of a Kind

slide-57
SLIDE 57

We may notice that the same numbers keep showing up.

For the Love of Math and Computer Science Four of a Kind

slide-58
SLIDE 58

We may notice that the same numbers keep showing up. 1, 2, 5, 14, 42,

For the Love of Math and Computer Science Four of a Kind

slide-59
SLIDE 59

We may notice that the same numbers keep showing up. 1, 2, 5, 14, 42, 132, 429, 1430, ...

For the Love of Math and Computer Science Four of a Kind

slide-60
SLIDE 60

We may notice that the same numbers keep showing up. 1, 2, 5, 14, 42, 132, 429, 1430, ... Having counted up the individual trees/triangulations/associations/tilings we can see they are the same numbers, but what does that tell us really?

For the Love of Math and Computer Science Four of a Kind

slide-61
SLIDE 61
  • 1

For the Love of Math and Computer Science Four of a Kind

slide-62
SLIDE 62
  • 1
  • 2

For the Love of Math and Computer Science Four of a Kind

slide-63
SLIDE 63
  • 1
  • 2
  • 3
  • 4
  • 5

For the Love of Math and Computer Science Four of a Kind

slide-64
SLIDE 64
  • 1
  • 2
  • 3
  • 4
  • 5

For the Love of Math and Computer Science Four of a Kind

slide-65
SLIDE 65

Is there a way to show a deeper connection? Beyond counting?

For the Love of Math and Computer Science Four of a Kind

slide-66
SLIDE 66

Is there a way to show a deeper connection? Beyond counting? What we’re looking for is a way to turn a binary tree into an association, or way to turn a staircase tiling into a triangulation.

For the Love of Math and Computer Science Four of a Kind

slide-67
SLIDE 67

Problem 1 = Problem 4

Can we match associations and binary trees in a meaningful way? ((ab)(cd)) (a((bc)d)) ((a(bc))d) (a(b(cd))) (((ab)c)d)

  • For the Love of Math and Computer Science

Four of a Kind

slide-68
SLIDE 68

For the Love of Math and Computer Science Four of a Kind

slide-69
SLIDE 69

From left to right label the leaves of the tree with the variables in the expression. Nodes which are the children of the same parent node get their expressions parenthesized.

For the Love of Math and Computer Science Four of a Kind

slide-70
SLIDE 70

For the Love of Math and Computer Science Four of a Kind

slide-71
SLIDE 71

Problem 4 = Problem 2

If we show these two problems are equivalent we have also shown Problem 1 = Problem 2.

  • For the Love of Math and Computer Science

Four of a Kind

slide-72
SLIDE 72

For the Love of Math and Computer Science Four of a Kind

slide-73
SLIDE 73

Rotate the staircase so the lower right corner is in the top middle. Remove the actual steps, revealing a binary tree.

For the Love of Math and Computer Science Four of a Kind

slide-74
SLIDE 74

For the Love of Math and Computer Science Four of a Kind

slide-75
SLIDE 75

Problem 3 = Problem 1

The final connection we need would allow us to conclude Problem 3 = Problem 4 and Problem 3 = Problem 2, as well. (((ab)c)d) ((a(bc))d) ((ab)(cd)) (a((bc)d)) (a(b(cd)))

For the Love of Math and Computer Science Four of a Kind

slide-76
SLIDE 76

For the Love of Math and Computer Science Four of a Kind

slide-77
SLIDE 77

Fix a side of the n-gon. Proceeding clockwise, label the remaining sides with the variables. Label the sides of the triangulation with the parenthesized expressions of the other two sides.

For the Love of Math and Computer Science Four of a Kind

slide-78
SLIDE 78

For the Love of Math and Computer Science Four of a Kind

slide-79
SLIDE 79

Problem 3 is the same as Problem 1 is the same as Problem 4 is the same as Problem 2.

For the Love of Math and Computer Science Four of a Kind

slide-80
SLIDE 80

Problem 3 is the same as Problem 1 is the same as Problem 4 is the same as Problem 2. All the problems are really the same, just viewed in a different way!

For the Love of Math and Computer Science Four of a Kind

slide-81
SLIDE 81

Mathematical Illusion

What we have is a sort of mathematical illusion.

For the Love of Math and Computer Science Four of a Kind

slide-82
SLIDE 82

Mathematical Illusion

What we have is a sort of mathematical illusion.

For the Love of Math and Computer Science Four of a Kind

slide-83
SLIDE 83

Mathematical Illusion

What we have is a sort of mathematical illusion. The structures change upon perspective, but the underlying connections are all there.

For the Love of Math and Computer Science Four of a Kind

slide-84
SLIDE 84

Problem 5??

Ian is travelling from the library to the math building across campus.

For the Love of Math and Computer Science Four of a Kind

slide-85
SLIDE 85

Problem 5??

Ian is travelling from the library to the math building across campus. Campus is laid out in an n × n grid with one-way paths going north and east.

For the Love of Math and Computer Science Four of a Kind

slide-86
SLIDE 86

Problem 5??

Ian is travelling from the library to the math building across campus. Campus is laid out in an n × n grid with one-way paths going north and east.

  • For the Love of Math and Computer Science

Four of a Kind

slide-87
SLIDE 87

Problem 5??

Having recently angered some engineers, Ian must be careful to not walk onto their turf! He must plan his trip so he never goes north of the demarcation line

  • For the Love of Math and Computer Science

Four of a Kind

slide-88
SLIDE 88

Problem 5??

Having recently angered some engineers, Ian must be careful to not walk onto their turf! He must plan his trip so he never goes north of the demarcation line

  • In how many ways can Ian get to the math building?

For the Love of Math and Computer Science Four of a Kind

slide-89
SLIDE 89

For the Love of Math and Computer Science Four of a Kind

slide-90
SLIDE 90

For the Love of Math and Computer Science Four of a Kind

slide-91
SLIDE 91

For the Love of Math and Computer Science Four of a Kind

slide-92
SLIDE 92

Catalan Numbers

This sequence: 1, 2, 5, 14, 42, 132, 429, ... is known as the Catalan numbers. They appear in a large number of counting problems. We’ve already seen some of them, but there are many more. Cn =

1 n+1 (2n n )

For the Love of Math and Computer Science Four of a Kind

slide-93
SLIDE 93

More Problems

A Dyck word is a string of n Xs and n Ys arranged so that if we read the string from left to right the number of Xs read is always at least as big as the number of Ys read thus far.

For the Love of Math and Computer Science Four of a Kind

slide-94
SLIDE 94

More Problems

A Dyck word is a string of n Xs and n Ys arranged so that if we read the string from left to right the number of Xs read is always at least as big as the number of Ys read thus far. XY

For the Love of Math and Computer Science Four of a Kind

slide-95
SLIDE 95

More Problems

A Dyck word is a string of n Xs and n Ys arranged so that if we read the string from left to right the number of Xs read is always at least as big as the number of Ys read thus far. XY XXY Y , XY XY

For the Love of Math and Computer Science Four of a Kind

slide-96
SLIDE 96

More Problems

A Dyck word is a string of n Xs and n Ys arranged so that if we read the string from left to right the number of Xs read is always at least as big as the number of Ys read thus far. XY XXY Y , XY XY XXXY Y Y , XXY XY Y , XXY Y XY , XY XXY Y , XY XY XY

For the Love of Math and Computer Science Four of a Kind

slide-97
SLIDE 97

More Problems

Imagine 2 chess pawns of the same colour, confined to a single column of a chess board, with n space below them.

For the Love of Math and Computer Science Four of a Kind

slide-98
SLIDE 98

For the Love of Math and Computer Science Four of a Kind

slide-99
SLIDE 99

For the Love of Math and Computer Science Four of a Kind

slide-100
SLIDE 100

For the Love of Math and Computer Science Four of a Kind

slide-101
SLIDE 101

For the Love of Math and Computer Science Four of a Kind

slide-102
SLIDE 102

For the Love of Math and Computer Science Four of a Kind

slide-103
SLIDE 103

For the Love of Math and Computer Science Four of a Kind

slide-104
SLIDE 104

More Problems

Imagine 2 chess pawns of the same colour, confined to a single column of a chess board, with n space infront of them. How many lists of valid chess instructions can be made that get both pawns to the bottom of the column.

For the Love of Math and Computer Science Four of a Kind

slide-105
SLIDE 105

More Problems

Picture a 2 × n grid.

For the Love of Math and Computer Science Four of a Kind

slide-106
SLIDE 106

More Problems

Picture a 2 × n grid. In how many ways can the numbers from 1 to 2n be placed in the grid so that every row and column is read in increasing order?

For the Love of Math and Computer Science Four of a Kind

slide-107
SLIDE 107

1 2 1 2 3 4 1 3 2 4 1 2 3 4 5 6 1 2 4 3 5 6 1 2 5 3 4 6 1 3 4 2 5 6 1 3 5 2 4 6

For the Love of Math and Computer Science Four of a Kind

slide-108
SLIDE 108

More Problems

Imagine the vertices of a regular n-gon.

  • For the Love of Math and Computer Science

Four of a Kind

slide-109
SLIDE 109

More Problems

Imagine the vertices of a regular n-gon.

  • How many ways are there to group the vertices of the n-gon so that the groups do

not overlap?

For the Love of Math and Computer Science Four of a Kind

slide-110
SLIDE 110

More Problems

For the Love of Math and Computer Science Four of a Kind

slide-111
SLIDE 111

Bell Numbers

For the Love of Math and Computer Science Four of a Kind

slide-112
SLIDE 112

Bell Numbers

Imagine the vertices of a regular n-gon. How many partitions (possibly

  • verlapping) of the vertices are there if rotations and reflections are considered

distinct? If a positive, squarefree number N has n prime factors, in how many different ways can N be written as a product of factors greater than 1? Determine the number of rhyming schemes to an n line poem.

For the Love of Math and Computer Science Four of a Kind

slide-113
SLIDE 113

Fibonacci Numbers

For the Love of Math and Computer Science Four of a Kind

slide-114
SLIDE 114

Fibonacci Numbers

Suppose a newly-born pair of rabbits, one male, one female, are put in a field. Rabbits are able to mate at the age of one month so that at the end of its second month a female can produce another pair of rabbits. Suppose that our rabbits never die and that the female always produces one new pair (one male, one female) every month from the second month on. How many pairs are there after n months? If a cow produces its first she-calf at age two years and after that produces another single she-calf every year, how many she-calves are there after n years, assuming none die? A male bee has only a mother, whereas a female bee has both a father and a

  • mother. Determine the number of bees in each ancestral generation in the family

tree of a male bee.

For the Love of Math and Computer Science Four of a Kind