Lecture 1, CS 2050, Intro Discrete Math for Computer Science

Similar documents
MATHEMATICS ON THE CHESSBOARD

arxiv: v1 [math.co] 24 Nov 2018

2005 Galois Contest Wednesday, April 20, 2005

BMT 2018 Combinatorics Test Solutions March 18, 2018

Solutions to Exercises Chapter 6: Latin squares and SDRs

Solution Algorithm to the Sam Loyd (n 2 1) Puzzle

Week 1. 1 What Is Combinatorics?

Tilings with T and Skew Tetrominoes

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Bramble Patch. windhamfabrics.com Designed by Diane Nagle Featuring by FREE PROJECT

Colouring tiles. Paul Hunter. June 2010

A few chessboards pieces: 2 for each student, to play the role of knights.

I.M.O. Winter Training Camp 2008: Invariants and Monovariants

Rubik's Magic Transforms

Minimal tilings of a unit square

Final Practice Problems: Dynamic Programming and Max Flow Problems (I) Dynamic Programming Practice Problems

Grade 6 Math Circles March 7/8, Magic and Latin Squares

Asymptotic Results for the Queen Packing Problem

YGB #2: Aren t You a Square?

N-Queens Problem. Latin Squares Duncan Prince, Tamara Gomez February

2.1 inductive reasoning and conjecture ink.notebook. September 07, Page 55. Ch 2. Reasoning. Page 56. and Proofs. 2.1 Inductive.

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Characterization of Domino Tilings of. Squares with Prescribed Number of. Nonoverlapping 2 2 Squares. Evangelos Kranakis y.

2-1 Inductive Reasoning and Conjecture

Foundations of Multiplication and Division

Graphs of Tilings. Patrick Callahan, University of California Office of the President, Oakland, CA

37 Game Theory. Bebe b1 b2 b3. a Abe a a A Two-Person Zero-Sum Game

Lecture 2: Sum rule, partition method, difference method, bijection method, product rules

Square Roots and the Pythagorean Theorem

3.5 Marginal Distributions

Permutation group and determinants. (Dated: September 19, 2018)

Lecture 6: Latin Squares and the n-queens Problem

Senior Math Circles February 10, 2010 Game Theory II

Determinants, Part 1

1st Grade Math. Please complete the activity below for the day indicated. Day 1: Double Trouble. Day 2: Greatest Sum. Day 3: Make a Number

Permutation Tableaux and the Dashed Permutation Pattern 32 1

Twenty-sixth Annual UNC Math Contest First Round Fall, 2017

LESSON 2: THE INCLUSION-EXCLUSION PRINCIPLE

Symmetric Permutations Avoiding Two Patterns

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST

Work: The converse of the statement If p, then q is If q, then p. Thus choice C is correct.

Ideas beyond Number. Teacher s guide to Activity worksheets

The Four Numbers Game

THE ASSOCIATION OF MATHEMATICS TEACHERS OF NEW JERSEY 2018 ANNUAL WINTER CONFERENCE FOSTERING GROWTH MINDSETS IN EVERY MATH CLASSROOM

To Your Hearts Content

Math236 Discrete Maths with Applications

MATH CIRCLE, 10/13/2018

PROOFS OF SOME BINOMIAL IDENTITIES USING THE METHOD OF LAST SQUARES

Optimal Results in Staged Self-Assembly of Wang Tiles

CSCI3390-Lecture 8: Undecidability of a special case of the tiling problem

Permutations. = f 1 f = I A

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

Some forbidden rectangular chessboards with an (a, b)-knight s move

TROMPING GAMES: TILING WITH TROMINOES. Saúl A. Blanco 1 Department of Mathematics, Cornell University, Ithaca, NY 14853, USA

Staircase Rook Polynomials and Cayley s Game of Mousetrap

Introduction to Pentominoes. Pentominoes

Some results on Su Doku

Dyck paths, standard Young tableaux, and pattern avoiding permutations

Reflections on the N + k Queens Problem

Magic Squares. Lia Malato Leite Victoria Jacquemin Noemie Boillot

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

Pennies vs Paperclips

12th Bay Area Mathematical Olympiad

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter.

A GRAPH THEORETICAL APPROACH TO SOLVING SCRAMBLE SQUARES PUZZLES. 1. Introduction

The number of mates of latin squares of sizes 7 and 8

Mistilings with Dominoes

FAU Math Circle 10/3/2015

NON-OVERLAPPING PERMUTATION PATTERNS. To Doron Zeilberger, for his Sixtieth Birthday

Ivan Guo. Broken bridges There are thirteen bridges connecting the banks of River Pluvia and its six piers, as shown in the diagram below:

Edge-disjoint tree representation of three tree degree sequences

Two Parity Puzzles Related to Generalized Space-Filling Peano Curve Constructions and Some Beautiful Silk Scarves

Chapter 4: Patterns and Relationships

Aesthetically Pleasing Azulejo Patterns

A theorem on the cores of partitions

Shuli s Math Problem Solving Column

! Denver, CO! Demystifying Computing with Magic, continued

Midterm Examination Review Solutions MATH 210G Fall 2017

POST TEST KEY. Math in a Cultural Context*

Another Form of Matrix Nim

1 Introduction. 2 An Easy Start. KenKen. Charlotte Teachers Institute, 2015

Twenty-fourth Annual UNC Math Contest Final Round Solutions Jan 2016 [(3!)!] 4

CS1802 Week 6: Sets Operations, Product Sum Rule Pigeon Hole Principle (Ch )

Pattern Avoidance in Unimodal and V-unimodal Permutations

Chained Permutations. Dylan Heuer. North Dakota State University. July 26, 2018

Notes for Recitation 3

Grade 7/8 Math Circles. Visual Group Theory

KenKen Strategies. Solution: To answer this, build the 6 6 table of values of the form ab 2 with a {1, 2, 3, 4, 5, 6}

2012 Math Day Competition

Odd king tours on even chessboards

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

Non-overlapping permutation patterns

Dragnet Abstract Test 4 Solution Booklet

KenKen Strategies 17+

In Response to Peg Jumping for Fun and Profit

The Tilings of Deficient Squares by Ribbon L-Tetrominoes Are Diagonally Cracked

Problem of the Month. Miles of Tiles. 5 in. Problem of the Month Miles of Tiles Page 1

European Journal of Combinatorics. Staircase rook polynomials and Cayley s game of Mousetrap

Suppose that two squares are cut from opposite corners of a chessboard. Can the remaining squares be completely covered by 31 dominoes?

INSTRUCTION BOOKLET SUDOKU MASTERS 2008 NATIONAL SUDOKU CHAMPIONSHIP FINALS Q&A SESSION 10:30 10:50 PART 1 CLASSICS 11:00 11:35

Transcription:

Lecture 1, 08--11 CS 050, Intro Discrete Math for Computer Science S n = 1++ 3+... +n =? Note: Recall that for the above sum we can also use the notation S n = n i. We will use a direct argument, in this case from first principles, to express S n in closed form. In general, a direct proof is a reduction to a broader and well known general truth, or a straightforward combination of already established facts without making any further assumptions. It is also called proof by placement, meaning placement to the well known general truth. It also goes by the Latin name modus ponens. This is short for modus ponendo ponens which literally means the way that affirms by affirming. Theorem. n i = n(n+1, n N. Note: Recall that means for all and N is the set of natural numbers 1,, 3,... to infinity. Proof. Let S n = n i. Consider the n n board, whose area consists of n squares. Realize that S n is the area below (and including the diagonal (leftmost picture: 1 square from the first line, squares from the second line, etc, n squares from the last line. Similarly, S n is also the area above (and including the diagonal (middle picture. If we sum these two areas (rightmost picture we get the area of the entire board, with the diagonal counted twice. We may thus write: S n + S n n = n Note: Recall that means S n = n + n if and only if or implies both ways. S n = n(n+1 S n = n(n+1. X Y means either both X and Y are true, or both X and Y are false. 1

Theorem. n i = n(n+1, n N. Proof. Let S n = n i. Consider an n n matrix, with n entries indexed (i, j, for 1 i n and 1 j n. Thus, n n j=1 1 = n (1 Note: When we have an n n matrix, it is very useful to think in terms of the indices (i, j of its entries. We can now express the sum in (1 in terms of S n as follows: Note: In the set of equalities below, make sure that you understand the use and meaning of the and corresponding ( notations. (( i ( 1 = 1 + 1 1 j=1 = = = ( j=1 ( i 1 + j=1 ( ( i + ( 1 1 j 1 n ( ( i + j n Combining (1 and ( immediately implies = S n n ( n = S n n Thus S n = n(n + 1

In Recitation, Wed 08-4-11, the following sums were also discussed: S odd = 1+3+ 5++7+... +(n 1 =? S even = +4+ 6+8+... +n =? By inspection of Figures A and B below we may immediately infer that S odd is the area of an n n square, thus S odd = n, S even is the area of an n (n + 1 rectange, thus S even = n(n + 1. If one did not observe the correspondance with areas of squares and rectangles, the above sums can be also obtained by reduction to the first Theorem concerning 1++...n = n(n+1. 3

Theorem. n (i 1 = n, n N. Proof. ( ( (i 1 = i 1 ( = i n = n(n+1 n, by the Theorem of page 1 = n(n+1 n = n(n+1 1 = n n = n. Theorem. n i = n(n+1, n N. Proof. i = i = n(n+1, by the Theorem of page 1 = n(n+1. 4

Theorem 1. We can tile the 8 8 board using 1 tiles. Proof. We can tile each row laying 4 tiles horizontally from left to right. (Alternatively, we can tile each column laying 4 tiles vertically from top to bottom. This completes the proof of the Theorem 1. Theorem. We cannot tile the 8 8 board with one corner removed using 1 tiles. Proof. Each tile covers squares. However the 8 8 board with one corner removed has 8 8 1 = 63 squares. This is an odd number of squares. Since each tile covers squares, every possible placement of tiles covers an even number of squares. Therefore, there is no placement of tiles that can cover 63 squares. This completes the proof of the Theorem. Theorem 3. We can tile the 8 8 board with the two top corners removed using 1 tiles. Proof. The top row has 6 squares. We can therefore tile the first row laying 3 tiles horizontally from left to right. We can further tile all the other rows laying 4 tiles horizontally from left to right. This completes the proof of the Theorem 3. 5

Theorem 4. We cannot tile the 8 8 board with two opposite corners removed using 1 tiles. Proof. Let us color the squares of the 8 8 board black and white, so that no two horizontally or vertically consecutive squares have the same color (like a chessboard. This results in 3 black and 3 white squares in the complete board, with opposite corners colored with the same color. Therefore, when we remove two opposite corners from the board, we are left with either 30 black and 3 white squares, or with 30 white and 3 black squares. Each tile covers squares of opposite colors, one black and one white. Therefore, any placement of tiles covers the same number of black and white squares. However, the 8 8 board with two opposite corners removed does not have the same number of black and white squares. Therefore, no placement of tiles 1 tiles can cover all 6 squares. This completes the proof of the Theorem 4. Where did the idea of chessboard-like coloring come from?? 6