MATH 135 Algebra, Solutions to Assignment 7

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

Multiples and Divisibility

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

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

Section 5.4. Greatest Common Factor and Least Common Multiple. Solution. Greatest Common Factor and Least Common Multiple

Solutions for the Practice Questions

SOLUTIONS FOR PROBLEM SET 4

SOLUTIONS TO PROBLEM SET 5. Section 9.1

Cryptography Lecture 1: Remainders and Modular Arithmetic Spring 2014 Morgan Schreffler Office: POT 902

Pre-Algebra. Do not open this test booklet until you have been advised to do so by the test proctor.

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

Discrete Square Root. Çetin Kaya Koç Winter / 11

Quantitative Aptitude Preparation Numbers. Prepared by: MS. RUPAL PATEL Assistant Professor CMPICA, CHARUSAT

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

Multiple : The product of a given whole number and another whole number. For example, some multiples of 3 are 3, 6, 9, and 12.

MATHEMATICS ON THE CHESSBOARD

copyright amberpasillas2010 What is Divisibility? Divisibility means that after dividing, there will be No remainder.

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

Applications of Fermat s Little Theorem and Congruences

SMT 2013 Advanced Topics Test Solutions February 2, 2013

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

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

The Chinese Remainder Theorem

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

Foundations of Cryptography

Modular arithmetic Math 2320

1.6 Congruence Modulo m

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

NUMBER THEORY AMIN WITNO

Solutions for the Practice Final

Modular Arithmetic: refresher.

Math 319 Problem Set #7 Solution 18 April 2002

Sheet 1: Introduction to prime numbers.

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

Grade 6/7/8 Math Circles April 1/2, Modular Arithmetic

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

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography

Numbers (8A) Young Won Lim 6/21/17

THE SIGN OF A PERMUTATION

MATH 433 Applied Algebra Lecture 12: Sign of a permutation (continued). Abstract groups.

Numbers (8A) Young Won Lim 5/24/17

Distribution of Primes

MAT 115: Finite Math for Computer Science Problem Set 5

Mathematics of Magic Squares and Sudoku

Modular Arithmetic. claserken. July 2016

METHOD 1: METHOD 2: 4D METHOD 1: METHOD 2:

SMT 2014 Advanced Topics Test Solutions February 15, 2014

Intermediate Mathematics League of Eastern Massachusetts

Diophantine Equations and Modulo 11.

Wilson s Theorem and Fermat s Theorem

ALGEBRA: Chapter I: QUESTION BANK

Introduction To Modular Arithmetic

Math 1111 Math Exam Study Guide

Math 412: Number Theory Lecture 6: congruence system and

Practice Midterm 2 Solutions

2009 Philippine Elementary Mathematics International Contest Page 1

MA10103: Foundation Mathematics I. Lecture Notes Week 3

A STUDY OF EULERIAN NUMBERS FOR PERMUTATIONS IN THE ALTERNATING GROUP

Class 6 Natural and Whole Numbers

Class 8 Cubes and Cube Root

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

HIGH SCHOOL - PROBLEMS

Problems involving remainders are popular on the SAT test.

Modular Arithmetic. Kieran Cooney - February 18, 2016

UCI Math Circle October 10, Clock Arithmetic

LUCAS-SIERPIŃSKI AND LUCAS-RIESEL NUMBERS

Numbers (8A) Young Won Lim 5/22/17

NIM Games: Handout 1

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

UNC Charlotte 2012 Comprehensive

Math 10 Lesson 1-1 Factors, primes, composites and multiples

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

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

The Sign of a Permutation Matt Baker

MATH CIRCLE, 10/13/2018

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

Modular Arithmetic and Doomsday

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

Tilings with T and Skew Tetrominoes

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Caltech Harvey Mudd Mathematics Competition February 20, 2010

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst

Grade 7/8 Math Circles February 9-10, Modular Arithmetic

Grade 6 Math Circles March 8-9, Modular Arithmetic

Sample pages. 3:06 HCF and LCM by prime factors

CMath 55 PROFESSOR KENNETH A. RIBET. Final Examination May 11, :30AM 2:30PM, 100 Lewis Hall

Meet #3 January Intermediate Mathematics League of Eastern Massachusetts

and problem sheet 7

COUNTING TECHNIQUES. Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Three of these grids share a property that the other three do not. Can you find such a property? + mod

Math 127: Equivalence Relations

Objectives: - You are given a circuit with 2-4 resistors and a battery. The circuits are either series or parallel.

Number Theory and Public Key Cryptography Kathryn Sommers

On Variations of Nim and Chomp

G E N E R A L A P T I T U D E

Primitive Roots. Chapter Orders and Primitive Roots

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

Part A (C) What is the remainder when is divided by 11? (A) 0 (B) 1 (C) 3 (D) 7 (E) 10 (A) 35 (B) 40 (C) 45 (D) 50 (E) 55

6.2 Modular Arithmetic

Transcription:

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 4 + 5, so x = 5. (b Find the integer x which has the smallest absolute value such that x 568 (mod 41. Solution: We have 568 = 41 13 + 35 and so 568 35 (mod 41. Thus we have x = 568 (mod 41 x 35 (mod 41 x {, 47, 6, 35, 76, }. Thus the integer x with the smallest absolute value such that x 568 (mod 41 is x = 6. (c What day of the week will it be 1000 days after a Monday? Solution: We have 1000 = 7 142 + 6 so 1000 6 (mod 7. Thus 1000 days after a Monday, it will be the same day of the week as it is 6 days after a Monday, that is, it will be Sunday. (d What time of day will it be 1000 hours after 5:00 pm? Solution: We have 1000 = 24 41 + 16 so 1000 16 (mod 24. Thus 1000 hours after 5:00 pm it will be the same time of day as it is 16 hours after 5:00 pm, that is, it will be 9:00 am. (e Exactly what time of day will it be 1 million seconds after 5:00 pm? Solution: We have 1, 000, 000 = 60 16, 666 + 40 so 1 million seconds is equal to 16,666 minutes and 40 seconds. Also, we have 16, 666 = 60 277 + 46, so 16,666 minutes is equal to 277 hours and 46 minutes. Finally, we have 277 = 24 11 + 13 so 277 hours is equal to 11 days and 13 hours. Thus 1 million seconds is equal to 11 days, 13 hours, 46 minutes and 40 seconds. It follows that 1 million seconds after 5:00 pm, it will be the same time of day as it is 13 hours, 46 minutes and 40 seconds after 5:00 pm, that is it will be exactly 40 seconds past 6:46 am.

2: (a Find all positive integers m such that 126 35 (mod m. Solution: We have 126 35 (mod m m (126 35 m 91 m 7 13 m = 1, 7, 13 or 91. 0 (b Find the remainder when the integer k! is divided by 13. k=1 Solution: We have 1! = 1 1 (mod 13, 2! = 2 2 (mod 13, 3! = 6 6 (mod 13, 4! = 24 11 (mod 13, 5! = 5 4! 5 11 55 3 (mod 13, 6! = 6 5! 6 3 18 5 (mod 13, 7! = 7 6! 7 5 35 9 (mod 13, 8! = 8 7! 8 9 7 (mod 13, 9! = 9 8! 9 7 11 (mod 13, 10! = 10 9! 10 11 6 (mod 13, 11! = 11 10! 11 6 1 (mod 13, 12! = 12 11! 12 1 12 (mod 13, and for all k 13 we have 13 k! so k! 0 (mod 13. Thus 0 k! = 1! + 2! + 3! + 4! + 5! + 6! + 7! + 8! + 9! + 10! + 11! + 12! k=1 = 1 + 2 + 6 + 11 + 3 + 5 + 9 + 7 + 11 + 6 + 1 + 12 9 (mod 13. (c Find the remainder when the integer 2 20 is divided by 8. 20! Solution: Using the formula that we found in Assignment 6, Problem 1(a, we have and so = 2 20+10+5+2+1 3 13+4+1 5 8+1 7 5 11 3 13 3 17 2 19 2 23 29 31 37 20! = 2 10+5+2+1 3 6+2 5 4 7 2 11 13 17 19 2 20 20! = 310 5 5 7 3 11 2 13 2 17 19 23 29 31 37 3 10 5 5 ( 1 3 3 2 5 2 1 3 ( 1 5 ( 1 5 (mod 8 3 13 5 9 (mod 8. Note that 3 2 = 9 1 (mod 8, so 3 13 3 (3 2 6 3 (mod 8, and similarly 5 2 = 25 1 (mod 8 so 5 9 = 5 (5 2 4 5 (mod 8. Thus 2 20 3 5 15 1 (mod 8. 20!

3: Most recent books are identified by their International Standard Book Number, or ISBN, which is a 10-digit number, separated into four blocks. The ISBN for our course text book is 0-13-184868-2. Here the first block of digits, 0, represents the language of the book (English, the second block, 13, represents the publisher (Pearson Prentice Hall, the third block, 184868, is the number assigned to the book by the publisher, and the last block, 2, is the check digit. If a 1, a 2,, a 10 are the 10-digits of the ISBN then for 1 i 9 we have a i {0, 1, 2,, 9} while a 10 {0, 1, 2,, 9, X}. The check digit a 10 is used to determine whether an error has been made when an ISBN is copied. It is chosen so that i a i 0 (mod 11. (a Determine whether the number 2-14-013862-5 is a valid ISBN. Solution: For this ISBN we have so this is not a valid ISBN. i a i = 1 2 + 2 1 + 3 4 + 4 0 + 5 1 + 6 3 + 7 8 + 8 6 + 9 2 + 10 5 2 + 2 + 1 + 0 + 5 + 7 + 1 + 4 + 7 + 6 (mod 11 2 (mod 11 (b Determine the value of the digit a such that the number 1-29-14a238-X is a valid ISBN. Solution: For thiss ISBN we have i a i = 1 1 + 2 2 + 3 9 + 4 1 + 5 4 + 6a + 7 2 + 8 3 + 9 8 + 10 10 1 + 4 + 5 + 4 + 9 + 6a + 3 + 2 + 6 + 1 (mod 11 2 + 6a (mod 11. To be a valid ISBN we need 6a 2 (mod 11, that is 6a =, 13, 2, 9, 20, 31, 42,, so we can take 6a = 42, that is a = 7. (c When an ISBN was copied, two adjacent digits were interchanged resulting in the number 0-07-286593-4. Determine the original ISBN. Solution: For this ISBN we have i a i = 1 0 + 2 0 + 3 7 + 4 2 + 5 8 + 6 6 + 7 5 + 8 9 + 9 3 + 10 4 0 + 0 + 10 + 8 + 7 + 3 + 2 + 6 + 5 + 7 (mod 11 4 (mod 11. When we interchange a k with a k+1, the sum changes by the amount ( kak+1 + (k + 1a k ( kak + (k + 1a k+1 = ak a k+1 so we need to find k so that a k a k+1 4 (mod 11, that is a k+1 = a k + 4 or a k+1 = a k 7. The only such index k is k = 7, so we interchange a 7 and a 8 to get the original ISBN 0-07-286953-4.

4: (a Use mathematical induction to show that 5 n 1 + 4n (mod 16 for all integers n 0. We claim that 5 n 1 + 4n (mod 16 for all n 0. When n = 0 we have 5 n = 5 0 = 1 and 1 + 4n = 1 + 4 0 = 1 so the claim is true when n = 0. Let k 0 and suppose the claim is true when n = k, that is suppose that 5 k 1 + 4k (mod 16. Then when n = k + 1 we have 5 n = 5 k+1 = 5 5 k 5(1 + 4k 5 + 20k 5 + 4k 1 + 4 + 4k 1 + 4(k + 1 1 + 4n (mod 16 so the claim is true when n = k + 1. Thus by Mathematical Induction, the claim is true for all n 0. (b Show that if n 3 (mod 4 then n is not the sum of two squares. Solution: Suppose that n is the sum of two squares, say n = x 2 + y 2. We make a table of squares modulo 4. x 0 1 2 3 x 2 0 1 0 1 From the table we see that x 2 0 or 1 (mod 4. Similarly we have y 2 0 or 1 (mod 4. It follows that n = x 2 + y 2 0 + 0, 0 + 1, 1 + 0 or 1 + 1 (mod 4, that is n 0, 1 or 2 (mod 4. Thus n 3 (mod 4. (c Show that there is no perfect square whose last three digits are 341. Solution: Let x be any integer. Note that if x 2 ended with the digits 341, then we would have x 2 = 1000k+341 for some integer k, so x 2 = 1000k + 341 341 5 (mod 8. We make a table of squares modulo 8. x 0 1 2 3 4 5 6 7 x 2 0 1 4 1 0 1 4 1 From the table we see that x 2 0, 1 or 4 (mod 8. Thus x 2 cannot end with the digits 341.

5: (a Find all possible pairs of digits (a, b such that 99 38a91b. Solution: Note that 99 38a91b implies that 9 38a91b and 11 38191b. We have and 9 38a91b = 9 (3 + 8 + a + 9 + 1 + b = a + b 6 (mod 9 = a + b = 6 or 15, 11 38a91b = 3 8 + a 9 + 1 b = a b 2 (mod 11 = a b = 2 or 9. The only pair (a, b with a b = 9 is the pair (a, b = (0, 9, but for this pair we have a + b = 9, so it does not satisfy the condition that a + b = 6 or 15. The only pairs (a, b with a b = 2 are the pairs (a, b = (2, 0, (3, 1, (4, 2,, (9, 7. Of these 8 pairs, only the pair (a, b = (4, 2 satisfies the condition a + b = 6 or 15. Thus (a, b = (4, 2 is the only such pair. (b Show that it is not possible to rearrange the digits of the number 51328167 to form a perfect square or a perfect cube or any higher perfect power. Solution: If we rearrange the digits of 51328167 in any way, to form a number a, then we have 3 a since 5 + 1 + 3 + 2 + 8 + 1 + 6 + 7 = 33 0 (mod 3, but 9 a since 33 0 (mod 9. Thus the exponent of 3 in the prime factorization of a is equal to 1, so a cannot be a square or a cube or any higher perfect power. (c Let n = a 0 + a 1 1000 + a 2 1000 2 + + a l 1000 l where a l 0 and for each i we have 0 a i < 1000. Show that for d = 7, 11 and 13 we have d n d ( a 0 a 1 + a 2 a 3 + + ( 1 l a l. Solution: Let n = a 0 +a 1 1000+a 2 1000 2 + +a l 1000 l where a l 0 and for each i we have 0 a i < 1000. Notice that 1001 = 7 11 13, so for d = 7, 11 or 13, we have 1000 = 1 (mod d, and so and n = a 0 + a 1 1000 + a 2 1000 2 + + a l 1000 l a 0 + a 1 ( 1 + a 2 ( 1 2 + + a l ( 1 l (mod d a 0 a 1 + a 2 a 3 + + ( 1 l a l (mod d d n n 0 (mod d a 0 a 1 + a 2 a 3 + + ( 1 l a l 0 (mod d d ( a 0 a 1 + a 2 a 3 + + ( 1 l a l.