Modular Arithmetic and Change of Base

Slides:



Advertisements
Similar presentations
Mod arithmetic.
Advertisements

ECE 331 – Digital System Design
Chapter 4 Finite Fields. Introduction of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key concern operations on “numbers”
Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
CSE115/ENGR160 Discrete Mathematics 03/13/12 Ming-Hsuan Yang UC Merced 1.
Number Theory and Cryptography
Congruence class arithmetic. Definitions: a ≡ b mod m iff a mod m = b mod m. a  [b] iff a ≡ b mod m.
Congruence Classes Z n = {[0] n, [1] n, [2] n, …, [n - 1] n } = the set of congruence classes modulo n.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
WHOLE NUMBERS; INTEGERS Whole numbers: Z 0,+ = the natural numbers  {0}. Integers:
Fall 2002CMSC Discrete Structures1 Let us get into… Number Theory.
BY MISS FARAH ADIBAH ADNAN IMK
A number that divides evenly into a larger number without a remainder Factor- Lesson 7 - Attachment A.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 3 (Part 3): The Fundamentals: Algorithms, the.
Mathematics of Cryptography Part I: Modular Arithmetic
February 24, 2015Applied Discrete Mathematics Week 4: Number Theory 1 Modular Arithmetic Let a be an integer and m be a positive integer. We denote by.
3.4/3.5 The Integers and Division/ Primes and Greatest Common Divisors Let each of a and b be integers. We say that a divides b, in symbols a | b, provided.
Prep Math Competition, Lec. 1Peter Burkhardt1 Number Theory Lecture 1 Divisibility and Modular Arithmetic (Congruences)
Chapter 4 Numeration and Mathematical Systems © 2008 Pearson Addison-Wesley. All rights reserved.
Integer Conversion Between Decimal and Binary Bases Conversion of decimal to binary more complicated Task accomplished by –Repeated division of decimal.
CompSci 102 Discrete Math for Computer Science February 16, 2012 Prof. Rodger.
– Digital Circuit 1 Choopan Rattanapoka
Introduction to Numerical Analysis I MATH/CMPSC 455 Binary Numbers.
Positional Notation 642 in base 10 positional notation is:
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Unit: 2 The Powers That Be. Unit Essential Question: How can rational and irrational numbers be expressed by exponents, square roots and scientific notation?
Chinese Remainder Theorem. How many people What is x? Divided into 4s: remainder 3 x ≡ 3 (mod 4) Divided into 5s: remainder 4 x ≡ 4 (mod 5) Chinese Remainder.
HIGH SCHOOL: Algebra Perform arithmetic operations on polynomials. A-APR.1. Understand that polynomials form a system analogous to the integers, namely,
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Ref: Pfleeger96, Ch.31 Properties of Arithmetic Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Lesson 11-2 Remainder & Factor Theorems Objectives Students will: Use synthetic division and the remainder theorem to find P(r) Determine whether a given.
Foundations of Computing I CSE 311 Fall Review: Division Theorem Let a be an integer and d a positive integer. Then there are unique integers q.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
Discrete Mathematics
6.1 Properties of Exponents Use properties of exponents Use negative and zero as an exponent EQ: What are the general rules involving properties of exponents?
Divisibility and Modular Arithmetic
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 2 The Fundamentals: Algorithms,
Ch04-Number Theory and Cryptography 1. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic.
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Number Theory Lecture 1 Text book: Discrete Mathematics and its Applications, 7 th Edition.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Agenda Review:  Relation Properties Lecture Content:  Divisor and Prime Number  Binary, Octal, Hexadecimal Review & Exercise.
Number Theory. Introduction to Number Theory Number theory is about integers and their properties. We will start with the basic principles of divisibility,
Multiplication and Division of Powers
CSE15 Discrete Mathematics 03/15/17
WARM-UP Write in Scientific Form Write in Standard Form
Congruence class arithmetic
Modular Arithmetic Lesson 4.6.
CMSC Discrete Structures
CSE 102 Introduction to Computer Engineering
Number Theory and Cryptography
Number Systems.
MATH301- DISCRETE MATHEMATICS Copyright © Nahid Sultana Dr. Nahid Sultana Chapter 4: Number Theory and Cryptography.
Analytic Number Theory MTH 435
Determining Factors and Multiples
Digital Logic Design (CSNB163)
CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Section 10.3 Modular Arithmetic
Converting to Base-n from Base-10
CLOCK ARITHMETIC.
Numerical Representation of Strings
Clements MAΘ October 30th, 2014
Number Theory.
Algebra 5 Congruence Classes.
Lecture 3 Strings and Things (Section 1.1)
Section 9.3 Modular Arithmetic.
Presentation transcript:

Modular Arithmetic and Change of Base

Modular Arithmetic Let a and b be integers and let m be a positive integer. Then if and only if a and b have the same integer remainder when they are divided by m. Congruence Theorem: integers a and b and positive integers m, if and only if m is a factor of a - b

Example 1 Show that using the first definition and the Congruence Theorem.

Example 2 Find three numbers for each of the congruencies.

Properties of Modular Arithmetic Let a, b, c, and d be any integers and let m be a positive integer. If and then: Addition Property of Congruence: _____________________________________ Subtraction Property of Congruence: ____________________________________ Multiplication Property of Congruence: _____________________________________

Example 3 Find the last three digits of 199.

Number Bases and Conversions Base 2 or binary notation: numbers represented by 0 and 1 Other bases uses similar numbers for example base 3 uses 0, 1, and 2 and base 7 uses 0, 1, 2, 3, 4, 5, and 6.

Example 4 and 5 Give the base 10 representation for the number 110110112. Write 289 in base 2.

Example 6 and 7 Change 21103 to base 10. Change 78 to base 3.