Tomáš Madaras Congruence classes

Similar documents
Properties of the Integers

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Part V. Chapter 19. Congruence of integers

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

Math 109 HW 9 Solutions

Algebra for error control codes

REVIEW Chapter 1 The Real Number System

A number that can be written as, where p and q are integers and q Number.

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

ax b mod m. has a solution if and only if d b. In this case, there is one solution, call it x 0, to the equation and there are d solutions x m d

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

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

CSE 20 DISCRETE MATH. Winter

The Chinese Remainder Theorem

Commutative Rings and Fields

Chapter 1 : The language of mathematics.

Notes on Systems of Linear Congruences

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

Definition List Modern Algebra, Fall 2011 Anders O.F. Hendrickson

Algebra Review 2. 1 Fields. A field is an extension of the concept of a group.

Standard forms for writing numbers

Algebraic Structures Exam File Fall 2013 Exam #1

Basic elements of number theory

Basic elements of number theory

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

MATH 0960 ELEMENTARY ALGEBRA FOR COLLEGE STUDENTS (8 TH EDITION) BY ANGEL & RUNDE Course Outline

Definitions. Notations. Injective, Surjective and Bijective. Divides. Cartesian Product. Relations. Equivalence Relations

Grade VIII. Mathematics Formula Notes. #GrowWithGreen

Galois fields/1. (M3) There is an element 1 (not equal to 0) such that a 1 = a for all a.

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

M381 Number Theory 2004 Page 1

D-MATH Algebra I HS18 Prof. Rahul Pandharipande. Solution 1. Arithmetic, Zorn s Lemma.

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

Introduction to finite fields

Wilson s Theorem and Fermat s Little Theorem

4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...

Rings of Residues. S. F. Ellermeyer. September 18, ; [1] m

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

Chapter 4 Finite Fields

Properties of Real Numbers

THE TRIANGULAR THEOREM OF THE PRIMES : BINARY QUADRATIC FORMS AND PRIMITIVE PYTHAGOREAN TRIPLES

Section 0. Sets and Relations

Discrete Logarithms. Let s begin by recalling the definitions and a theorem. Let m be a given modulus. Then the finite set

1. Introduction to commutative rings and fields

PROBLEMS ON CONGRUENCES AND DIVISIBILITY

1. Revision Description Reflect and Review Teasers Answers Recall of Rational Numbers:

Mathematics for Cryptography

Rings. EE 387, Notes 7, Handout #10

The Jacobi Symbol. q q 1 q 2 q n

Ang aking kontrata: Ako, si, ay nangangakong magsisipag mag-aral hindi lang para sa aking sarili kundi para rin sa aking pamilya, para sa aking

CSE 20 DISCRETE MATH. Fall

Number Axioms. P. Danziger. A Group is a set S together with a binary operation (*) on S, denoted a b such that for all a, b. a b S.

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

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

Grades K 6. Tap into on-the-go learning! hmhco.com. Made in the United States Text printed on 100% recycled paper hmhco.

Degrees of Regularity of Colorings of the Integers

Chapter 5. Modular arithmetic. 5.1 The modular ring

Elementary Properties of the Integers

Fields in Cryptography. Çetin Kaya Koç Winter / 30

LINEAR ALGEBRA - CHAPTER 1: VECTORS

Chapter 3 Basic Number Theory

Relations. Binary Relation. Let A and B be sets. A (binary) relation from A to B is a subset of A B. Notation. Let R A B be a relation from A to B.

E.J. Barbeau. Polynomials. With 36 Illustrations. Springer

Algebra. Modular arithmetic can be handled mathematically by introducing a congruence relation on the integers described in the above example.

Chapter 4 Mathematics of Cryptography

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

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

Kevin James. MTHSC 412 Section 3.1 Definition and Examples of Rings

Elementary Number Theory. Franz Luef

Chapter 1 An Introduction to Algebra

COLLEGE ALGEBRA. Properties of Real Numbers with Clock Arithmetic

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

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

Algebra I+ Pacing Guide. Days Units Notes Chapter 1 ( , )

Algebra II First Semester Assignment #5 (Review of Sections 1.1 through 1.8)

Outline. We will now investigate the structure of this important set.

INTRODUCTION TO THE GROUP THEORY

1. Introduction to commutative rings and fields

Solutions to Assignment 1

Monoids. Definition: A binary operation on a set M is a function : M M M. Examples:

MTH 346: The Chinese Remainder Theorem

Foundations for Functions Knowledge and Skills: Foundations for Functions Knowledge and Skills:

2. Two binary operations (addition, denoted + and multiplication, denoted

Modular Arithmetic Instructor: Marizza Bailey Name:

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

UNIT 4 NOTES: PROPERTIES & EXPRESSIONS

1.4 Equivalence Relations and Partitions

5.1 Monomials. Algebra 2

Unit 4 - Equations and Inequalities - Vocabulary

Algebra Summer Review Packet

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

1 Adeles over Q. 1.1 Absolute values

NORTHWESTERN UNIVERSITY Thrusday, Oct 6th, 2011 ANSWERS FALL 2011 NU PUTNAM SELECTION TEST

Lecture Notes. Advanced Discrete Structures COT S

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University

Pre-Calculus Midterm Practice Test (Units 1 through 3)

LECTURE NOTES IN CRYPTOGRAPHY

Transcription:

Congruence classes For given integer m 2, the congruence relation modulo m at the set Z is the equivalence relation, thus, it provides a corresponding partition of Z into mutually disjoint sets. Definition Let m N, m 2, a Z. The set a m = {b Z a b (mod m)} is called a-th congruence class modulo m. The set Z m = {0 m, 1 m,..., (m 1) m } is called the ring of integers modulo m. Example For m = 2, Z 2 consists of two sets 0 2 a 1 2, which represent all even and all odd numbers; Z 3 = {0 3, 1 3, 2 3 } consists of three sets: the numbers divisible by 3 and the numbers givign the remainder 1 resp. 2 after division by 3.

From the opint of view of abstract algebra, the congruence classes can be considered as certain number-like objects, thus, one may define for them the equality relation and the operations of sum and product. Lemma For any a, b Z, m N, a m = b m if and only if a b (mod m).

Definition Let m N, m 2. Define, on Z m, the sum of congruence classes in the following way: a m b m = (a + b) m. Note: the operation + at right handside of this equality is the sum of integers (yielding again an integer, which determines certain congruence class); on the left handside is the "sum" of sets. The properties of : commutativity: ( a m, b m Z m ) a m b m = b m a m associativity: ( a m, b m, c m Z m ) (a m b m ) c m = a m (b m c m ) ( 0 m Z m )( a m Z m ) a m 0 m = a m ( a m Z m )( b m Z m ) a m b m = 0 m

Definition Let m N, m 2. Define, on Z m, the product of congruence classes in the following way: a m b m = (a b) m. Note: the operation on the right handside of given equality is the product of integers; on the left handside is the "product" of sets. The properties of : commutativity: ( a m, b m Z m ) a m b m = b m a m associativity: ( a m, b m, c m Z m ) (a m b m ) c m = a m (b m c m ) ( 1 m Z m )( a m Z m ) a m 1 m = a m ( a m, b m, c m Z m ) a m (b m c m ) = (a m b m ) (a m c m ) ( a m, b m, c m Z m ) (a m b m ) c m = (a m c m ) (b m c m )

For every two integers a, b it follows that if a b = 0, then a or b is equal 0. The congruence classes behave differently: Theorem Let m N, m 2. Then, in Z m, ( a m, b m Z m ) a m b m = 0 m (a m = 0 m b m = 0 m ) if and only if m is prime. Proof: For forward implication, the proof is indirect - let m > 1 be composite integer. Then m = a b, where 1 < a, b < m. From this we obtain 0 m = m m = (a b) m = a m b m ; nevertheless, from inequalities 1 < a, b < m it follows that a m 0 m, b m 0 m. To prove the backward implication, suppose that m is a prime and a m b m = 0 m. This yields (a b) m = 0 m, thus ab 0 (mod m), which implies that m ab. Hence, one has to have m a or m b; this means that a 0 (mod m) or b 0 (mod m), thus a m = 0 m or b m = 0 m.

For every integer m 2 and for every congruence class a m Z m, there exists "negative" congruence class ( a) m such that a m + ( a) m = 0 m ; thus, with the summation of congruence classes (using the operation ), it is also possible to define their subtraction, which has similar properties as the subtraction of common numbers. On the other hand, sometimes it is not possible to define, for congruence classes, the operation of division in such a way it would be similar to division of real numbers: Example In Z 5, each "nonzero" congruence class a 5 has its "reciprocal" such that their product is equal to 1 5 : 1 5 1 5 = 1 5, 2 5 3 5 = 1 5, 4 5 4 5 = 1 5 (hence 1 5, 4 5 are reciprocals themselves, 2 5 is reciprocal to 3 5 and vice versa). However, in Z 6, the congruence class 2 6 has no reciprocal: 2 6 1 6 = 2 6, 2 6 2 6 = 4 6, 2 6 3 6 = 0 6, 2 6 4 6 = 2 6, 2 6 5 6 = 4 6.

Theorem Let m N, m 2. Then, in Z m, ( a m Z m, a m 0 m )( b m Z m ) a m b m = 1 m holds if and only if m is prime. Thus, if m is prime, then Z m, together with operations, has similar properties as the set of real (or rational) numbers with standard operations +, ; we then say that triples (Z m,, ) and (R, +, ) form so called field.

Definition Let X be any set and, X X X be binary operations on X. The triple (X,, ) is called field, if the following axioms hold: commutativity of : ( a, b X) a b = b a associativity of : ( a, b, c X) (a b) c = a (b c) existence of zero element for : ( 0 X)( a X) a 0 = a existence of opposite ("negative") element for : ( a X)( b X) a b = 0 commutativity of : ( a, b X) a b = b a associativity of : ( a, b, c X) (a b) c = a (b c) existence of unit element for : ( 1 X)( a X) a 1 = a

Definition Definition (cont.) the existence of inverse element ("reciprocal") for : ( a X, a 0)( b X) a b = 1 left-distributivity of over : ( a, b, c X) a (b c) = (a b) (a c) right distributivity of over : ( a, b, c X) (a b) c = (a c) (b c)

Example Let X = {0, 1, a, b} and let the operations be given by the following tables: 0 1 a b 0 0 0 0 0 1 0 1 a b a 0 a b 1 b 0 b 1 a 0 1 a b 0 0 1 a b 1 1 0 b a a a b 0 1 b b a 1 0 The triple (X,, ) is 4-element finite field (the validity of particular axioms can be checked using the computer). Notice that the operation differs from the operation of the sum of congruence classes in Z 4.