Clock Arithmetic. 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school?

Similar documents
Modular Arithmetic Instructor: Marizza Bailey Name:

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

Solutions to Assignment 1

Lecture 4: Number theory

Continuing discussion of CRC s, especially looking at two-bit errors

Cool Results on Primes

Wilson s Theorem and Fermat s Little Theorem

Math Lecture 3 Notes

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

Basic elements of number theory

Basic elements of number theory

Mathematics of Cryptography

All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.

Commutative Rings and Fields

π π π points:= { seq([n*cos(pi/4*n), N*sin(Pi/4*N)], N=0..120) }:

EDULABZ INTERNATIONAL NUMBER SYSTEM

MATH 25 CLASS 21 NOTES, NOV Contents. 2. Subgroups 2 3. Isomorphisms 4

Math 319 Problem Set #2 Solution 14 February 2002

Lecture 11 - Basic Number Theory.

MAT246H1S - Concepts In Abstract Mathematics. Solutions to Term Test 1 - February 1, 2018

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

Number Theory Proof Portfolio

Before this course is over we will see the need to split up a fraction in a couple of ways, one using multiplication and the other using addition.

Great Theoretical Ideas in Computer Science

MATH 361: NUMBER THEORY FOURTH LECTURE

Math Homework # 4

3 The fundamentals: Algorithms, the integers, and matrices

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

8 Primes and Modular Arithmetic

Grade 11/12 Math Circles Rational Points on an Elliptic Curves Dr. Carmen Bruni November 11, Lest We Forget

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

The Euclidean Algorithm and Multiplicative Inverses

Section 1.2 Factors and Factor Operators

Math Lecture 18 Notes

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

PRACTICE PROBLEMS: SET 1

Winter Camp 2009 Number Theory Tips and Tricks

Primes and Modular Arithmetic! CSCI 2824, Fall 2014!!

How does the computer generate observations from various distributions specified after input analysis?

An Introduction to Proof-based Mathematics Harvard/MIT ESP: Summer HSSP Isabel Vogt

Number Theory A focused introduction

Lecture 7 Number Theory Euiseong Seo

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 Elementary number theory

CSE 20 DISCRETE MATH. Winter

CHAPTER 1 REAL NUMBERS KEY POINTS

SUMS OF SQUARES WUSHI GOLDRING

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 5

Math.3336: Discrete Mathematics. Mathematical Induction

Lecture 6: Introducing Complexity

6 SQUARES AND SQUARE ROOTS

CH 13 MULTIPLYING AND DIVIDING SIGNED NUMBERS

Number Theory in Problem Solving. Konrad Pilch

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

The University of Melbourne Department of Mathematics and Statistics School Mathematics Competition, 2016 INTERMEDIATE DIVISION: SOLUTIONS

Number Theory and the abc Conjecture

4 Number Theory and Cryptography

Intermediate Math Circles February 14, 2018 Contest Prep: Number Theory

Chapter 7. Number Theory. 7.1 Prime Numbers

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Math 109 HW 9 Solutions

Math From Scratch Lesson 20: The Chinese Remainder Theorem

Ch. 12 Higher Degree Equations Rational Root

MATH 115, SUMMER 2012 LECTURE 12


Applied Cryptography and Computer Security CSE 664 Spring 2017

9 Modular Exponentiation and Square-Roots

Number Theory Notes Spring 2011

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

The Chinese Remainder Theorem

Intro to Algebra Today. We will learn names for the properties of real numbers. Homework Next Week. Due Tuesday 45-47/ 15-20, 32-35, 40-41, *28,29,38

A Taste of Pi: Clocks, Set, and the Secret Math of Spies

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Rings and modular arithmetic

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

HOMEWORK #2 - MATH 3260

Introduction to Information Security

Exam 2 Solutions. In class questions

Homework #2 solutions Due: June 15, 2012

MATH CSE20 Homework 5 Due Monday November 4

1. Prove that the number cannot be represented as a 2 +3b 2 for any integers a and b. (Hint: Consider the remainder mod 3).

Definition For a set F, a polynomial over F with variable x is of the form

Before this course is over we will see the need to split up a fraction in a couple of ways, one using multiplication and the other using addition.

PREPARATION NOTES FOR NUMBER THEORY PRACTICE WED. OCT. 3,2012

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

Math From Scratch Lesson 29: Decimal Representation

CMPSCI 250: Introduction to Computation. Lecture #15: The Fundamental Theorem of Arithmetic David Mix Barrington 24 February 2014

Number Theory Basics Z = {..., 2, 1, 0, 1, 2,...} For, b Z, we say that divides b if z = b for some. Notation: b Fact: for all, b, c Z:

Congruence Classes. Number Theory Essentials. Modular Arithmetic Systems

CIS 6930/4930 Computer and Network Security. Topic 5.1 Basic Number Theory -- Foundation of Public Key Cryptography

Divisibility, Factors, and Multiples

MATH 2200 Final Review

CH 59 SQUARE ROOTS. Every positive number has two square roots. Ch 59 Square Roots. Introduction

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Transcription:

Clock Arithmetic We are going to learn all about clock addition and the relationship to remainders when you divide numbers. 1 Standard Clock Addition 1. If it is 9 o clock and you get out of school in 4 hours, when do you get out of school? 2. If it is 11 o clock and you have to finish your math homework in 18 hours, what hour will it 3. If it is 10 o clock and you have to finish your math homework in 120 hours, what hour will it 4. If it is 10 o clock and you have to finish your math homework in 129 hours, what hour will it 5. If it is 10 o clock and you have to finish your math homework in 249 hours, what hour will it 6. How many hours do you need to go past 5 o clock to reach 12 o clock. 7. How many hours do you need to go past 3 o clock to reach 1 o clock? 8. How many hours do you need to go past 6 o clock to reach 2 o clock? 9. How many hours before 4 o clock was it 8 o clock? 10. If the time reads 3:00 now, what will it read in 12 hours? 1

2 Clock addition and remainders But what does all this have to do with remainders? Lets see if we can figure it out. 11. If it is 12:00 now, what time is it in 12 hours? 12. What is the remainder when you divide 12 by 12? 13. If it is 12:00 now, what time is it in 18 hours? 14. What is the remainder when you divide 18 by 12? 15. If it is 12:00 now, what time is it in 97 hours? 16. What is the remainder when you divide 97 by 12? 17. If it is 12:00 now, what time is it in 129 hours? 18. What is the remainder when you divide 129 by 12? 19. If it is 12:00 now, what time is it in 115 hours? 20. What is the remainder when you divide 115 by 12? 21. If it is 12:00 now, what time is it in 1200 hours? 22. What is the remainder when you divide 1200 by 12? 23. If it is 12:00 now, what time is it in 1205 hours? 24. What is the remainder when you divide 1205 by 12? 2

3 Exotic Clocks Here we are going to work with clocks with the number of hours different from 12. 25. Suppose that we have a clock with 24 points, if the current time is 10:00, how long do we have to wait until it is 1:00 again? 26. Suppose that we have a clock with 24 points, if it was 19 o clock twelve hours ago, what is the current time? 27. Suppose that we have a clock with 31 points, what time is 17 hours before 14? 28. Suppose that you have a clock with 9 points, if the current time is 3:00 and you look at your watch every 3 hours, what are the times you will see? 29. Suppose that you have a clock with 9 points, if the current time is 2:00 and you look at your watch every 2 hours, what times will you see? 30. Suppose that you have a clock with 9 points, if the current time is 4:00 and you look at your watch every 4 hours, what times will you see? 31. Suppose that you have a clock with 9 points, if the current time is 6:00 and you look at your watch every 6 hours, what times will you see? 32. Suppose that we have a clock with 45 points and that the clock currently reads 32. What will the clock read in 45 hours? What will the clock read in 0 hours? 33. Suppose that we have a clock with 4 points and that the clock currently reads 4:00. What time is it in 101 hours? What is the remainder when we divide 101 by 4? 34. Suppose that we have a clock with 4 points and that the clock currently reads 1:00. What time is it in 101 hours? What does this have to do with the previous question? 35. Suppose that we have a clock with 4 points and that the clock currently reads 2:00. What time is it in 101 hours? What does this have to do with the previous question? 36. Suppose that we have a clock with 4 points and that the clock currently reads 3:00. What time is it in 101 hours? What does this have to do with the previous question? 3

4 Addition Tables and Subraction Here is the addition table for a clock with 3 points + 0 1 2 0 0 1 2 1 1 2 0 2 2 0 1 37. Write out the addition table for clocks with 4, 5, 6, and 12 points. 38. On a regular clock (with 12 points), subtracting 5 is the same as adding what number? 39. On a regular clock (with 12 points), what number should represent 5 (negative 5)? 40. On a regular clock (with 12 points), subtracting 1 is the same as adding what number? 41. On a regular clock (with 12 points), what number should represent 1 (negative 1)? 42. On a regular clock (with 12 points), subtracting 11 is the same as adding what number? 43. On a regular clock (with 12 points), what number should represent 11 (negative 1)? 44. On a clock with 4 points, what number should represent 1? 45. On a clock with 4 points, what number should represent 2? 46. On a clock with 4 points, what number should represent 3? 47. On a clock with 7 points, what number should represent 1? 48. On a clock with 7 points, what number should represent 2? 49. On a clock with 7 points, what number should represent 3? 50. On a clock with 7 points, what number should represent 4? 51. On a clock with 7 points, what number should represent 5? 52. On a clock with 7 points, what number should represent 6? 4

5 Multiplication and Division Here is the multiplication table for a clock with 3 points 0 1 2 0 0 0 0 1 0 1 2 2 0 2 1 53. Write out the multiplication table for clocks with 4, 5, 6, 7, and 12 points. 54. If x is a number (a point on our clock) then the multiplicative inverse of x is the number y so that x y = 1. For clocks with 3,4,5,6,7 and 12 points find the multiplicative inverse of every number. 55. On a regular clock (with 12 points), dividing by 5 is the same as multiplying by what number? 56. On a regular clock (with 12 points), what number should represent 1 5? 57. In clock arithmetic does every number have a multiplicative inverse? Find a rule to determine which numbers do and do not have a multiplicative inverse. Find a rule for which clocks have more numbers that have multiplicative inverses. 5

6 Modular Arithmetic This section is really just a note to tie everything together. Modular arithmetic is really just a fancy way a saying clock arithmetic. Instead of saying a clock with 7 points, mathematically one would write Z 7 and say Z mod 7 or the Integers mod 7. Mathematically we would write things like 9 2 (mod 7) As with all mathematics, theorems would be proven with this number system. Here are some examples of some theorems that might be helpful if you were going to study modular arithmetic in more depth. (Some of these theorems are easy, but some are difficult and deep. In any case, all of the theorems I listed below can be explored by examples.) Theorem 1. Suppose then the following are true a 1 a 2 (mod n) b 1 b 2 (mod n) a 1 + b 1 a 2 + b 2 (mod n) a 1 b 1 a 2 b 2 (mod n) a 1 b 1 a 2 b 2 (mod n) Theorem 2. Suppose ka kb (mod n) and gcd(k, m) = d. Then a b (mod n/d). Theorem 3 (Fermat s Little Theorem). If p is a prime number then for any a: a p a (mod p) And, of course, it is always nice if mathematics is actually useful. If you write a base 10 number in expanded form and reduce (mod 3) you get the divisibility by 3 test. (I ll outline an argument for why this works.) Theorem 4. A number n is divisible by 3 if any only if the sum of its digits is divisible by 3. Proof. Oky, not really a proof, but more of an outline. Here are some steps that you would need to prove to understand why this works: i. A number n is divisible by 3 if any only if ii. For any k, 10 k 1 (mod 3). n 0 (mod 3) 6

iii. Write out the number n in expanded form and reduce everything (mod 3) (well, we actually on reduce the powers of 10). And, to make this easier to see, suppose n is a 3-digit number with digits a, b, c, so we have n = abc (I hope you understand what I mean by this.) Then, n = a 10 2 + b 10 1 + c 10 0 a 1 + b 1 + c 1 (mod 3) a + b + c (mod 3) iv. Therefore n 0 (mod 3) if any only if a + b + c 0 (mod 3). Here are some problems that might be fun: 58. Find all solutions to the equation 2x + 3 = 4 in Z 7. 59. Find all solutions to the equation 2x + 3 = 4 in Z 6. 60. Write out addition and multiplication tables for Z 11. 61. Find all solution to the following equations in Z 11 : (a) 3x 4 = 9 (b) 2x 2 3x + 4 = 0 (c) 3x 2 4x + 2 = 0 (d) 4x 2 + 2x 3 = 0 62. Fix a prime number p. The order of a number x (mod p) is the smallest positive integer n such that x 1 (mod p). So, for example, if p = 5 then the order of 2 (mod 5) is 4 because 2 4 1 (mod 5). Explore this idea by computing the order for all numbers (mod p). Do this for different prime numbers. (I would suggest doing it for all prime numbers less than 20.) What if you do this for a number that is not a prime number? (This exploration should eventually lead to Fermat s Little Theorem.) 7