Solutions to Problem Set 5

Size: px
Start display at page:

Download "Solutions to Problem Set 5"

Transcription

1 Massahusetts Institute of Tehnology 6.042J/18.062J, Fall 05: Mathematis for Computer Siene Otober 28 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised Otober 12, 2005, 909 minutes Solutions to Problem Set 5 Problem 1. Suppose that one domino an over exatly two squares on a hessboard, either vertially or horizontally. (a) Can you tile an 8 8 hessboard with 32 dominos? dominos hess board Solution. Yes. Plae 4 vertial dominos in eah olumn. (b) Can you tile an 8 8 hessboard with 31 dominos if opposite orners are removed? Solution. No! Opposing orners are the same olor. Therefore, removing opposite orners leaves an unequal number of white and blak squares. Sine every domino overs one blak square and one white square, no tiling is possible. Copyright 2005, Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld.

2 2 () Now suppose that an assortment of squares are removed from a hessboard. An example is shown below. Given a trunated hessboard, show how to onstrut a bipartite graph G that has a perfet mathing if and only if the hessboard an be tiled with dominos. Solution. Create a vertex for every white square and a vertex for every blak square. Put an edge between squares that share an edge. (This graph is bipartite, sine the oloring of the squares defines a valid 2 oloring of the verties.) If a perfet mathing exists in this graph, then a tiling exists: put a domino over eah pair of mathed verties. On the other hand, if a tiling exists, then a perfet mathing exists: math squares overed by the same domino. (d) Based on this onstrution and Hall s theorem, an you state a neessary and suffiient ondition for a trunated hessboard to be tilable with dominos? Try not to mention graphs or mathings! Solution. A board an be tiled with dominos if and only if every set of white squares is adjaent to at least as many blak squares and vie versa. Problem 2. Prove that gd(ka, kb) = k gd(a, b)for all k > 0. Solution. The smallest positive value of: k (s a + t b) (whih is equal to s(ka) + t(kb) = gd(ka, kb)) must be k times the smallest positive value of: s a + t b (whih is equal to gd(a, b)).

3 3 Problem 3. Suppose that a b (mod n) and n > 0. Prove or disprove the following assertions: (a) a b (mod n) where 0 Solution. The proof is by indution on with the hypothesis that a = 0, then the laim holds, beause 1 1 (mod n). Now suppose that: b (mod n). If a b (mod n) Multiplying both sides by a gives: a +1 ab (mod n) Sine a b (mod n), we an replaed the a on the right side by b: +1 a b +1 (mod n) Therefore, the laim holds by indution. (b) a b (mod n) where a, b, 0 Solution. The laim is false. For example: (mod 3) (1) Problem 4. An inverse of k modulo n > 1 is an integer, k 1, suh that k k 1 1 (mod n). Show that k has an inverse iff gd(k, n) = 1. Hint: We saw how to prove the above when n is prime.

4 4 Solution. If gd(k, n) = 1, then there exist integers x and y suh that kx + yn = 1. Therefore, yn = 1 kx, whih means n (1 kx) and so kx 1 (mod n). Let k 1 be x. Problem 5. Here is a long run of omposite numbers: 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126 Prove that there exist arbitrarily long runs of omposite numbers. Consider numbers a little bigger than n! where n! = n (n 1) Solution. Let k be some natural number suh that 1 < k n. We know k (n! + k) beause k n! and k k. Thus, the numbers n! + 2, n! + 3, n! + 4,..., n! + n must all be omposite. This is a run of n 1 onseutive omposite numbers. Beause we an arbitrarily hoose n, we know arbitrarily long runs of ompisite numbers exist. Problem 6. Take a big number, suh as Sum the digits, where every other one is negated: 3 + ( 7) ) ( ) ( ) ( ) ( + 1 = 11 As it turns out, the original number is a multiple of 11 if and only if this sum is a multiple of 11. (a) Use a result from elsewhere on this problem set to show that 10 k 1 k (mod 11). Solution. We know 10 1 (mod 11). From 2a, we onlude 10 k ( 1) k (mod 11). (b) Using this fat, explain why the proedure above works. Solution. A number in deimal has the form: d k 10 k + d k 1 10 k d d 0

5 5 From the observation above, we know: d k 10 k + d k 1 10 k d d 0 d k ( 1) k + d k 1 ( 1) k d 1 ( 1) 1 + d 0 ( 1) 0 (mod 11) d k d k d 1 + d 0 (mod 11) Note that the above assumes k is even. The ase where k is odd is analogous. Also, the proedure given in the problem may have us reverse all signs. Beause we are only heking for divisibility, this does not matter. Problem 7. Let S k = 1 k + 2 k (p 1) k, where p is an odd prime and k is a positive multiple of p 1. Use Fermat s theorem to prove that S k 1 (mod p). Solution. Fermat s theorem says that x p 1 1 (mod p) when 1 x p 1. Sine k is a multiple of p 1, raising eah side to a suitable power proves that x k 1 (mod p). Thus: 1 k + 2 k (p 1) k } {{ } 1 (mod p) p 1 1 p 1 terms (mod p) (mod p)

Windchimes, Hexagons, and Algebra

Windchimes, Hexagons, and Algebra University of Nebraska - Linoln DigitalCommons@University of Nebraska - Linoln ADAPT Lessons: Mathematis Lesson Plans from the ADAPT Program 1996 Windhimes, Hexagons, and Algebra Melvin C. Thornton University

More information

Not for sale or distribution

Not for sale or distribution . Whole Numbers, Frations, Deimals, and Perentages In this hapter you will learn about: multiplying and dividing negative numbers squares, ubes, and higher powers, and their roots adding and subtrating

More information

Shuli s Math Problem Solving Column

Shuli s Math Problem Solving Column Shuli s Math Problem Solving Column Volume 1, Issue 18 April 16, 009 Edited and Authored by Shuli Song Colorado Springs, Colorado shuli_song@yahooom Content 1 Math Trik: Mental Calulation: 19a19b Math

More information

A Zero-Error Source Coding Solution to the Russian Cards Problem

A Zero-Error Source Coding Solution to the Russian Cards Problem A Zero-Error Soure Coding Solution to the Russian Cards Problem ESTEBAN LANDERRECHE Institute of Logi, Language and Computation January 24, 2017 Abstrat In the Russian Cards problem, Alie wants to ommuniate

More information

Cubes in products of terms in arithmetic progression

Cubes in products of terms in arithmetic progression Publ. Math. Debreen Proof-sheets for paper Ref. no.: 4453 (2009), 1 18 Cubes in produts of terms in arithmeti progression By LAJOS HAJDU (Debreen), SZABOLCS TENGELY (Debreen) and ROBERT TIJDEMAN (Leiden)

More information

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g., Binary exponentiation An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g., What are the last two digits of the number 2 284? In the absence

More information

SOLUTIONS TO PROBLEM SET 5. Section 9.1

SOLUTIONS TO PROBLEM SET 5. Section 9.1 SOLUTIONS TO PROBLEM SET 5 Section 9.1 Exercise 2. Recall that for (a, m) = 1 we have ord m a divides φ(m). a) We have φ(11) = 10 thus ord 11 3 {1, 2, 5, 10}. We check 3 1 3 (mod 11), 3 2 9 (mod 11), 3

More information

Applications of Fermat s Little Theorem and Congruences

Applications of Fermat s Little Theorem and Congruences Applications of Fermat s Little Theorem and Congruences Definition: Let m be a positive integer. Then integers a and b are congruent modulo m, denoted by a b mod m, if m (a b). Example: 3 1 mod 2, 6 4

More information

Modular arithmetic Math 2320

Modular arithmetic Math 2320 Modular arithmetic Math 220 Fix an integer m 2, called the modulus. For any other integer a, we can use the division algorithm to write a = qm + r. The reduction of a modulo m is the remainder r resulting

More information

Modular Arithmetic and Doomsday

Modular Arithmetic and Doomsday Modular Arithmetic and Doomsday Blake Thornton Much of this is due directly to Joshua Zucker and Paul Zeitz. 1. Subtraction Magic Trick. While blindfolded, a magician asks a member from the audience to

More information

MATH 135 Algebra, Solutions to Assignment 7

MATH 135 Algebra, Solutions to Assignment 7 MATH 135 Algebra, Solutions to Assignment 7 1: (a Find the smallest non-negative integer x such that x 41 (mod 9. Solution: The smallest such x is the remainder when 41 is divided by 9. We have 41 = 9

More information

Massachusetts Institute of Technology 6.042J/18.062J, Spring 04: Mathematics for Computer Science April 16 Prof. Albert R. Meyer and Dr.

Massachusetts Institute of Technology 6.042J/18.062J, Spring 04: Mathematics for Computer Science April 16 Prof. Albert R. Meyer and Dr. Massachusetts Institute of Technology 6.042J/18.062J, Spring 04: Mathematics for Computer Science April 16 Prof. Albert R. Meyer and Dr. Eric Lehman revised April 16, 2004, 202 minutes Solutions to Quiz

More information

Assignment 2. Due: Monday Oct. 15, :59pm

Assignment 2. Due: Monday Oct. 15, :59pm Introduction To Discrete Math Due: Monday Oct. 15, 2012. 11:59pm Assignment 2 Instructor: Mohamed Omar Math 6a For all problems on assignments, you are allowed to use the textbook, class notes, and other

More information

MAT Modular arithmetic and number theory. Modular arithmetic

MAT Modular arithmetic and number theory. Modular arithmetic Modular arithmetic 1 Modular arithmetic may seem like a new and strange concept at first The aim of these notes is to describe it in several different ways, in the hope that you will find at least one

More information

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2 Quadratic Reciprocity To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we need to be able to evaluate q for any prime q. The first (and most delicate) case

More information

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

I.M.O. Winter Training Camp 2008: Invariants and Monovariants I.M.. Winter Training Camp 2008: Invariants and Monovariants n math contests, you will often find yourself trying to analyze a process of some sort. For example, consider the following two problems. Sample

More information

Number Theory/Cryptography (part 1 of CSC 282)

Number Theory/Cryptography (part 1 of CSC 282) Number Theory/Cryptography (part 1 of CSC 282) http://www.cs.rochester.edu/~stefanko/teaching/11cs282 1 Schedule The homework is due Sep 8 Graded homework will be available at noon Sep 9, noon. EXAM #1

More information

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017 Name: Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017 INSTRUCTIONS Read Carefully Time: 50 minutes There are 5 problems. Write your name legibly at the top of this page. No calculators

More information

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively. Solutions to Exam 1 Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers. Prove that m φ(n) + n φ(m) 1 (mod mn). Solution: a) Fermat s Little

More information

Solutions for the Practice Questions

Solutions for the Practice Questions Solutions for the Practice Questions Question 1. Find all solutions to the congruence 13x 12 (mod 35). Also, answer the following questions about the solutions to the above congruence. Are there solutions

More information

FIFTY-SIXTH ANNUAL MICHIGAN MATHEMATICS PRIZE COMPETITION

FIFTY-SIXTH ANNUAL MICHIGAN MATHEMATICS PRIZE COMPETITION FIFTY-SIXTH ANNUAL MICHIGAN MATHEMATICS PRIZE COMPETITION sponsored by The Mihigan Setion of the Mathematial Assoiation of Ameria Part I Tuesday Otober 2, 202 INSTRUCTIONS (to be read aloud to the students

More information

University of British Columbia. Math 312, Midterm, 6th of June 2017

University of British Columbia. Math 312, Midterm, 6th of June 2017 University of British Columbia Math 312, Midterm, 6th of June 2017 Name (please be legible) Signature Student number Duration: 90 minutes INSTRUCTIONS This test has 7 problems for a total of 100 points.

More information

Solutions for the Practice Final

Solutions for the Practice Final Solutions for the Practice Final 1. Ian and Nai play the game of todo, where at each stage one of them flips a coin and then rolls a die. The person who played gets as many points as the number rolled

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem The Chinese Remainder Theorem 8-3-2014 The Chinese Remainder Theorem gives solutions to systems of congruences with relatively prime moduli The solution to a system of congruences with relatively prime

More information

MATH 225: Foundations of Higher Matheamatics. Dr. Morton. Chapter 2: Logic (This is where we begin setting the stage for proofs!)

MATH 225: Foundations of Higher Matheamatics. Dr. Morton. Chapter 2: Logic (This is where we begin setting the stage for proofs!) MATH 225: Foundations of Higher Matheamatics Dr. Morton Chapter 2: Logic (This is where we begin setting the stage for proofs!) New Problem from 2.5 page 3 parts 1,2,4: Suppose that we have the two open

More information

Practice Midterm 2 Solutions

Practice Midterm 2 Solutions Practice Midterm 2 Solutions May 30, 2013 (1) We want to show that for any odd integer a coprime to 7, a 3 is congruent to 1 or 1 mod 7. In fact, we don t need the assumption that a is odd. By Fermat s

More information

Whole Numbers and Introduction to Algebra

Whole Numbers and Introduction to Algebra CHAPER Should I buy or lease a ar? What are the benefits of eah? Whih hoie fits my needs? Does leasing a ar or buying a ar save me the most money? urn to Putting Your Skills to Work on page 62 to find

More information

Discrete Math Class 4 ( )

Discrete Math Class 4 ( ) Discrete Math 37110 - Class 4 (2016-10-06) 41 Division vs congruences Instructor: László Babai Notes taken by Jacob Burroughs Revised by instructor DO 41 If m ab and gcd(a, m) = 1, then m b DO 42 If gcd(a,

More information

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION MATH CIRCLE (BEGINNERS) 02/05/2012 Modular arithmetic. Two whole numbers a and b are said to be congruent modulo n, often written a b (mod n), if they give

More information

ALGEBRA: Chapter I: QUESTION BANK

ALGEBRA: Chapter I: QUESTION BANK 1 ALGEBRA: Chapter I: QUESTION BANK Elements of Number Theory Congruence One mark questions: 1 Define divisibility 2 If a b then prove that a kb k Z 3 If a b b c then PT a/c 4 If a b are two non zero integers

More information

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method Exercises Exercises 1. Show that 15 is an inverse of 7 modulo 26. 2. Show that 937 is an inverse of 13 modulo 2436. 3. By inspection (as discussed prior to Example 1), find an inverse of 4 modulo 9. 4.

More information

Solutions to Problem Set 7

Solutions to Problem Set 7 Massachusetts Institute of Technology 6.4J/8.6J, Fall 5: Mathematics for Computer Science November 9 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised November 3, 5, 3 minutes Solutions to Problem

More information

NUMBER THEORY AMIN WITNO

NUMBER THEORY AMIN WITNO NUMBER THEORY AMIN WITNO.. w w w. w i t n o. c o m Number Theory Outlines and Problem Sets Amin Witno Preface These notes are mere outlines for the course Math 313 given at Philadelphia

More information

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms: SESAME Modular Arithmetic MurphyKate Montee March 08 What is a Number? Examples of Number Systems: We think numbers should satisfy certain rules which we call axioms: Commutivity Associativity 3 Existence

More information

Chapter 01 Test. 1 Write an algebraic expression for the phrase the sum of g and 3. A 3g B 3g + 3 C g 3 D g Write a word phrase for.

Chapter 01 Test. 1 Write an algebraic expression for the phrase the sum of g and 3. A 3g B 3g + 3 C g 3 D g Write a word phrase for. hapter 01 Test Name: ate: 1 Write an algebraic expression for the phrase the sum of g and 3. 3g 3g + 3 g 3 g + 3 2 Write a word phrase for. negative 5 minus 4 plus a number n negative 5 minus 4 times a

More information

Carmen s Core Concepts (Math 135)

Carmen s Core Concepts (Math 135) Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 7 1 Congruence Definition 2 Congruence is an Equivalence Relation (CER) 3 Properties of Congruence (PC) 4 Example 5 Congruences

More information

Notes on Experiment #11. You should be able to finish this experiment very quickly.

Notes on Experiment #11. You should be able to finish this experiment very quickly. Notes on Experiment #11 You should be able to finish this experiment very quikly. This week we will do experiment 11 almost A I. Your data will be the graphial images on the display of the sope. o, BRING

More information

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00 18.781 Solutions to Problem Set 6 - Fall 008 Due Tuesday, Oct. 1 at 1:00 1. (Niven.8.7) If p 3 is prime, how many solutions are there to x p 1 1 (mod p)? How many solutions are there to x p 1 (mod p)?

More information

PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number.

PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number. PT. Primarity Tests Given an natural number n, we want to determine if n is a prime number. (PT.1) If a number m of the form m = 2 n 1, where n N, is a Mersenne number. If a Mersenne number m is also a

More information

Year 9 Mathematics notes part 3:

Year 9 Mathematics notes part 3: Year 9 Mathematis notes part 3: Pythagoras 3.1 (p.109) Angles 3.1 (p.106) Constrution 1.3 (p.23) Loi 6.3 (p.280) Contents Pythagoras theorem... 1 Proving Pythagoras theorem... 3 Angle rules... 4 Constrution

More information

Fall. Spring. Possible Summer Topics

Fall. Spring. Possible Summer Topics Fall Paper folding: equilateral triangle (parallel postulate and proofs of theorems that result, similar triangles), Trisect a square paper Divisibility by 2-11 and by combinations of relatively prime

More information

Tilings with T and Skew Tetrominoes

Tilings with T and Skew Tetrominoes Quercus: Linfield Journal of Undergraduate Research Volume 1 Article 3 10-8-2012 Tilings with T and Skew Tetrominoes Cynthia Lester Linfield College Follow this and additional works at: http://digitalcommons.linfield.edu/quercus

More information

Two congruences involving 4-cores

Two congruences involving 4-cores Two congruences involving 4-cores ABSTRACT. The goal of this paper is to prove two new congruences involving 4- cores using elementary techniques; namely, if a 4 (n) denotes the number of 4-cores of n,

More information

4.2 Proving and Applying

4.2 Proving and Applying YOU WILL NEED alulator ruler EXPLORE 4.2 Proving and Applying the Sine and Cosine Laws for Obtuse Triangles An isoseles obtuse triangle has one angle that measures 120 and one side length that is 5 m.

More information

t = 0 t = 8 (2 cycles)

t = 0 t = 8 (2 cycles) A omputation-universal two-dimensional 8-state triangular reversible ellular automaton Katsunobu Imai, Kenihi Morita Faulty of Engineering, Hiroshima University, Higashi-Hiroshima 739-8527, Japan fimai,

More information

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005 MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005 Deartment of Mathematical and Statistical Sciences University of Alberta Question 1. Find integers

More information

12. 6 jokes are minimal.

12. 6 jokes are minimal. Pigeonhole Principle Pigeonhole Principle: When you organize n things into k categories, one of the categories has at least n/k things in it. Proof: If each category had fewer than n/k things in it then

More information

Algorithmic Number Theory and Cryptography (CS 303)

Algorithmic Number Theory and Cryptography (CS 303) Algorithmic Number Theory and Cryptography (CS 303) Modular Arithmetic Jeremy R. Johnson 1 Introduction Objective: To become familiar with modular arithmetic and some key algorithmic constructions that

More information

Math 319 Problem Set #7 Solution 18 April 2002

Math 319 Problem Set #7 Solution 18 April 2002 Math 319 Problem Set #7 Solution 18 April 2002 1. ( 2.4, problem 9) Show that if x 2 1 (mod m) and x / ±1 (mod m) then 1 < (x 1, m) < m and 1 < (x + 1, m) < m. Proof: From x 2 1 (mod m) we get m (x 2 1).

More information

Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers.

Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers. Solutions to Exam 1 Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively rime ositive integers. Prove that m φ(n) + n φ(m) 1 (mod mn). c) Find the remainder of 1 008

More information

A REMARK ON A PAPER OF LUCA AND WALSH 1. Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China. Min Tang 2.

A REMARK ON A PAPER OF LUCA AND WALSH 1. Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China. Min Tang 2. #A40 INTEGERS 11 (2011) A REMARK ON A PAPER OF LUCA AND WALSH 1 Zhao-Jun Li Department of Mathematics, Anhui Normal University, Wuhu, China Min Tang 2 Department of Mathematics, Anhui Normal University,

More information

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST

UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST UNIVERSITY OF NORTHERN COLORADO MATHEMATICS CONTEST First Round For all Colorado Students Grades 7-12 October 31, 2009 You have 90 minutes no calculators allowed The average of n numbers is their sum divided

More information

SOLUTIONS FOR PROBLEM SET 4

SOLUTIONS FOR PROBLEM SET 4 SOLUTIONS FOR PROBLEM SET 4 A. A certain integer a gives a remainder of 1 when divided by 2. What can you say about the remainder that a gives when divided by 8? SOLUTION. Let r be the remainder that a

More information

Optimal Joint Routing and Scheduling in Millimeter-Wave Cellular Networks

Optimal Joint Routing and Scheduling in Millimeter-Wave Cellular Networks Optimal Joint Routing and Sheduling in Millimeter-Wave Cellular Networks Dingwen Yuan, Hsuan-Yin Lin, Jörg Widmer and Matthias Hollik SEEMOO, Tehnishe Universität Darmstadt Simula@UiB, Bergen Norway Institute

More information

16 Alternating Groups

16 Alternating Groups 16 Alternating Groups In this paragraph, we examine an important subgroup of S n, called the alternating group on n letters. We begin with a definition that will play an important role throughout this

More information

BMT 2018 Combinatorics Test Solutions March 18, 2018

BMT 2018 Combinatorics Test Solutions March 18, 2018 . Bob has 3 different fountain pens and different ink colors. How many ways can he fill his fountain pens with ink if he can only put one ink in each pen? Answer: 0 Solution: He has options to fill his

More information

An elementary study of Goldbach Conjecture

An elementary study of Goldbach Conjecture An elementary study of Goldbach Conjecture Denise Chemla 26/5/2012 Goldbach Conjecture (7 th, june 1742) states that every even natural integer greater than 4 is the sum of two odd prime numbers. If we

More information

L29&30 - RSA Cryptography

L29&30 - RSA Cryptography L29&30 - RSA Cryptography CSci/Math 2112 20&22 July 2015 1 / 13 Notation We write a mod n for the integer b such that 0 b < n and a b (mod n). 2 / 13 Calculating Large Powers Modulo n Example 1 What is

More information

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

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples Section 1.7 Proof Methods and Strategy Page references correspond to locations of Extra Examples icons in the textbook. p.87,

More information

PRIMES STEP Plays Games

PRIMES STEP Plays Games PRIMES STEP Plays Games arxiv:1707.07201v1 [math.co] 22 Jul 2017 Pratik Alladi Neel Bhalla Tanya Khovanova Nathan Sheffield Eddie Song William Sun Andrew The Alan Wang Naor Wiesel Kevin Zhang Kevin Zhao

More information

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand. Midterm #2: practice MATH 311 Intro to Number Theory midterm: Thursday, Oct 20 Please print your name: Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating

More information

Discrete Mathematics and Probability Theory Spring 2018 Ayazifar and Rao Midterm 2 Solutions

Discrete Mathematics and Probability Theory Spring 2018 Ayazifar and Rao Midterm 2 Solutions CS 70 Discrete Mathematics and Probability Theory Spring 2018 Ayazifar and Rao Midterm 2 Solutions PRINT Your Name: Oski Bear SIGN Your Name: OS K I PRINT Your Student ID: CIRCLE your exam room: Pimentel

More information

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

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees. 7 Symmetries 7 Permutations A permutation of a set is a reordering of its elements Another way to look at it is as a function Φ that takes as its argument a set of natural numbers of the form {, 2,, n}

More information

Modular Arithmetic. Kieran Cooney - February 18, 2016

Modular Arithmetic. Kieran Cooney - February 18, 2016 Modular Arithmetic Kieran Cooney - kieran.cooney@hotmail.com February 18, 2016 Sums and products in modular arithmetic Almost all of elementary number theory follows from one very basic theorem: Theorem.

More information

Modular Arithmetic: refresher.

Modular Arithmetic: refresher. Lecture 7. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. Division!!! 3. Euclid s GCD Algorithm. A little tricky here! Clock Math If it is 1:00

More information

Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36

Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36 Question 1 Section 4.1 11. What time does a 12-hour clock read a) 80 hours after it reads 11:00? b) 40 hours before it reads 12:00? c) 100 hours after it reads 6:00? I don't really understand this question

More information

Math 255 Spring 2017 Solving x 2 a (mod n)

Math 255 Spring 2017 Solving x 2 a (mod n) Math 255 Spring 2017 Solving x 2 a (mod n) Contents 1 Lifting 1 2 Solving x 2 a (mod p k ) for p odd 3 3 Solving x 2 a (mod 2 k ) 5 4 Solving x 2 a (mod n) for general n 9 1 Lifting Definition 1.1. Let

More information

Solutions for the 2nd Practice Midterm

Solutions for the 2nd Practice Midterm Solutions for the 2nd Practice Midterm 1. (a) Use the Euclidean Algorithm to find the greatest common divisor of 44 and 17. The Euclidean Algorithm yields: 44 = 2 17 + 10 17 = 1 10 + 7 10 = 1 7 + 3 7 =

More information

The covering congruences of Paul Erdős. Carl Pomerance Dartmouth College

The covering congruences of Paul Erdős. Carl Pomerance Dartmouth College The covering congruences of Paul Erdős Carl Pomerance Dartmouth College Conjecture (Erdős, 1950): For each number B, one can cover Z with finitely many congruences to distinct moduli all > B. Erdős (1995):

More information

MATH CIRCLE, 10/13/2018

MATH CIRCLE, 10/13/2018 MATH CIRCLE, 10/13/2018 LARGE SOLUTIONS 1. Write out row 8 of Pascal s triangle. Solution. 1 8 28 56 70 56 28 8 1. 2. Write out all the different ways you can choose three letters from the set {a, b, c,

More information

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

2.1 inductive reasoning and conjecture ink.notebook. September 07, Page 55. Ch 2. Reasoning. Page 56. and Proofs. 2.1 Inductive. 2.1 inductive reasoning and conjecture ink.notebook Page 55 Ch 2 Reasoning and Proofs Page 56 2.1 Inductive Reasoning Lesson Objectives Page 57 Standards Lesson Notes Page 58 2.1 Inductive Reasoning and

More information

Investigate index notation and represent whole numbers as products of powers of prime numbers (ACMNA149) a) 36 b) 100 c) 196 d) 441

Investigate index notation and represent whole numbers as products of powers of prime numbers (ACMNA149) a) 36 b) 100 c) 196 d) 441 Teaher Notes 7 8 9 10 11 12 Aim TI-Nspire CAS Investigation Student 120min The number 12 has six fators: 1, 2, 3, 4, 6 and 12. The number 36 has more fators. Whih number would have the greatest number

More information

The UK Linguistics Olympiad 2017

The UK Linguistics Olympiad 2017 Round 2 Prolem 5. Magi Yup ik Central Alaskan Yup ik elongs to the Eskimo-Aleut language family. It is spoken in western and southwestern Alaska y around 20,000 speakers. Yup ik people have an interesting

More information

CRACKING THE 15 PUZZLE - PART 4: TYING EVERYTHING TOGETHER BEGINNERS 02/21/2016

CRACKING THE 15 PUZZLE - PART 4: TYING EVERYTHING TOGETHER BEGINNERS 02/21/2016 CRACKING THE 15 PUZZLE - PART 4: TYING EVERYTHING TOGETHER BEGINNERS 02/21/2016 Review Recall from last time that we proved the following theorem: Theorem 1. The sign of any transposition is 1. Using this

More information

Colouring tiles. Paul Hunter. June 2010

Colouring tiles. Paul Hunter. June 2010 Colouring tiles Paul Hunter June 2010 1 Introduction We consider the following problem: For each tromino/tetromino, what are the minimum number of colours required to colour the standard tiling of the

More information

Modular Arithmetic. claserken. July 2016

Modular Arithmetic. claserken. July 2016 Modular Arithmetic claserken July 2016 Contents 1 Introduction 2 2 Modular Arithmetic 2 2.1 Modular Arithmetic Terminology.................. 2 2.2 Properties of Modular Arithmetic.................. 2 2.3

More information

Exam 1 7 = = 49 2 ( ) = = 7 ( ) =

Exam 1 7 = = 49 2 ( ) = = 7 ( ) = Exam 1 Problem 1. a) Define gcd(a, b). Using Euclid s algorithm comute gcd(889, 168). Then find x, y Z such that gcd(889, 168) = x 889 + y 168 (check your answer!). b) Let a be an integer. Prove that gcd(3a

More information

Writing Equations of Parallel and Perpendicular Lines 4.3. Essential Question How can you recognize lines that are parallel or perpendicular?

Writing Equations of Parallel and Perpendicular Lines 4.3. Essential Question How can you recognize lines that are parallel or perpendicular? . Writing Equations of Parallel and Perpendiular Lines Essential Question How an ou reognize lines that are parallel or perpendiular? Reognizing Parallel Lines Work with a partner. Write eah linear equation

More information

Sheet 1: Introduction to prime numbers.

Sheet 1: Introduction to prime numbers. Option A Hand in at least one question from at least three sheets Sheet 1: Introduction to prime numbers. [provisional date for handing in: class 2.] 1. Use Sieve of Eratosthenes to find all prime numbers

More information

TILINGS at Berkeley Math Circle! Inspired by Activities of Julia Robinson Math Festival and Nina Cerutti and Leo B. of SFMC.

TILINGS at Berkeley Math Circle! Inspired by Activities of Julia Robinson Math Festival and Nina Cerutti and Leo B. of SFMC. TILINGS at Berkeley Math Circle! Inspired by Activities of Julia Robinson Math Festival and Nina Cerutti and Leo B. of SFMC. Tiling Torment The problem There are many problems that involve tiling (covering)

More information

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

28,800 Extremely Magic 5 5 Squares Arthur Holshouser. Harold Reiter. 28,800 Extremely Magic 5 5 Squares Arthur Holshouser 3600 Bullard St. Charlotte, NC, USA Harold Reiter Department of Mathematics, University of North Carolina Charlotte, Charlotte, NC 28223, USA hbreiter@uncc.edu

More information

Cardinality revisited

Cardinality revisited Cardinality revisited A set is finite (has finite cardinality) if its cardinality is some (finite) integer n. Two sets A,B have the same cardinality iff there is a one-to-one correspondence from A to B

More information

Fermat s little theorem. RSA.

Fermat s little theorem. RSA. .. Computing large numbers modulo n (a) In modulo arithmetic, you can always reduce a large number to its remainder a a rem n (mod n). (b) Addition, subtraction, and multiplication preserve congruence:

More information

1.6 Congruence Modulo m

1.6 Congruence Modulo m 1.6 Congruence Modulo m 47 5. Let a, b 2 N and p be a prime. Prove for all natural numbers n 1, if p n (ab) and p - a, then p n b. 6. In the proof of Theorem 1.5.6 it was stated that if n is a prime number

More information

Public Key Encryption

Public Key Encryption Math 210 Jerry L. Kazdan Public Key Encryption The essence of this procedure is that as far as we currently know, it is difficult to factor a number that is the product of two primes each having many,

More information

Primitive Roots. Chapter Orders and Primitive Roots

Primitive Roots. Chapter Orders and Primitive Roots Chapter 5 Primitive Roots The name primitive root applies to a number a whose powers can be used to represent a reduced residue system modulo n. Primitive roots are therefore generators in that sense,

More information

The Sign of a Permutation Matt Baker

The Sign of a Permutation Matt Baker The Sign of a Permutation Matt Baker Let σ be a permutation of {1, 2,, n}, ie, a one-to-one and onto function from {1, 2,, n} to itself We will define what it means for σ to be even or odd, and then discuss

More information

Class 8 Cubes and Cube Root

Class 8 Cubes and Cube Root ID : in-8-cubes-and-cube-root [1] Class 8 Cubes and Cube Root For more such worksheets visit www.edugain.com Answer the questions (1) Find the value of A if (2) If you subtract a number x from 15 times

More information

Contents 04LEAN0804-V1. Side Panels. Fixing Kit. Nail Bag & Ironmongery. For Assistance Please Contact Customer Care on

Contents 04LEAN0804-V1. Side Panels. Fixing Kit. Nail Bag & Ironmongery. For Assistance Please Contact Customer Care on 04LAN0804-V1 Contents Please retain Instrutions and label (attahed to your building for future referene See bak of instrutions for Combi greenhouse assembly Side Panels 1 2 3 Before ommening assembly make

More information

English SCIENCE FREE ZAP YOUR SATS! PAGE SAMPLE MAG. KEY STAGE 22 now. now with added FUN EASY! 100% GREAT SCHOOLS

English SCIENCE FREE ZAP YOUR SATS! PAGE SAMPLE MAG. KEY STAGE 22 now. now with added FUN EASY! 100% GREAT SCHOOLS Y LL LY TA ER TO T T U NE! W CLUB KEY STAGE 22 now now wh added FUN 100% ER TEACH APPROVED EASY! English No Problem! SCIENCE ZAP YOUR SATS! FOR FOR AA GREAT GREAT SCHOOLS SCHOOLS OFFER OFFER SEE SEE THE

More information

MA/CSSE 473 Day 9. The algorithm (modified) N 1

MA/CSSE 473 Day 9. The algorithm (modified) N 1 MA/CSSE 473 Day 9 Primality Testing Encryption Intro The algorithm (modified) To test N for primality Pick positive integers a 1, a 2,, a k < N at random For each a i, check for a N 1 i 1 (mod N) Use the

More information

A natural number is called a perfect cube if it is the cube of some. some natural number.

A natural number is called a perfect cube if it is the cube of some. some natural number. A natural number is called a perfect square if it is the square of some natural number. i.e., if m = n 2, then m is a perfect square where m and n are natural numbers. A natural number is called a perfect

More information

Ideas beyond Number. Activity worksheets

Ideas beyond Number. Activity worksheets Ideas beyond Number Activity sheet 1 Task 1 Some students started to solve this equation in different ways: For each statement tick True or False: = = = = Task 2: Counter-examples The exception disproves

More information

A theorem on the cores of partitions

A theorem on the cores of partitions A theorem on the cores of partitions Jørn B. Olsson Department of Mathematical Sciences, University of Copenhagen Universitetsparken 5,DK-2100 Copenhagen Ø, Denmark August 9, 2008 Abstract: If s and t

More information

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson TITLE PAGE FAMILY NAME: (Print in ink) GIVEN NAME(S): (Print in ink) STUDENT NUMBER: SEAT NUMBER: SIGNATURE: (in ink) (I understand that cheating is a serious offense) INSTRUCTIONS TO STUDENTS: This is

More information

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = = Math 115 Discrete Math Final Exam December 13, 2000 Your name It is important that you show your work. 1. Use the Euclidean algorithm to solve the decanting problem for decanters of sizes 199 and 98. In

More information

The Four Numbers Game

The Four Numbers Game University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln MAT Exam Expository Papers Math in the Middle Institute Partnership 7-2007 The Four Numbers Game Tina Thompson University

More information

Distribution of Primes

Distribution of Primes Distribution of Primes Definition. For positive real numbers x, let π(x) be the number of prime numbers less than or equal to x. For example, π(1) = 0, π(10) = 4 and π(100) = 25. To use some ciphers, we

More information

Number Theory. Konkreetne Matemaatika

Number Theory. Konkreetne Matemaatika ITT9131 Number Theory Konkreetne Matemaatika Chapter Four Divisibility Primes Prime examples Factorial Factors Relative primality `MOD': the Congruence Relation Independent Residues Additional Applications

More information

CS 202, section 2 Final Exam 13 December Pledge: Signature:

CS 202, section 2 Final Exam 13 December Pledge: Signature: CS 22, section 2 Final Exam 3 December 24 Name: KEY E-mail ID: @virginia.edu Pledge: Signature: There are 8 minutes (3 hours) for this exam and 8 points on the test; don t spend too long on any one question!

More information