Chinese Remainder Theorem explained with rotations

Similar documents
THE CHINESE REMAINDER CLOCK

Generalized Splines. Madeline Handschy, Julie Melnick, Stephanie Reinders. Smith College. April 1, 2013

Section 11 Direct products and finitely generated abelian groups

Notes on Systems of Linear Congruences

Homework #5 Solutions

This is an auxiliary note; its goal is to prove a form of the Chinese Remainder Theorem that will be used in [2].

Kevin James. MTHSC 412 Section 3.4 Cyclic Groups

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

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

The Chinese Remainder Theorem

PMA225 Practice Exam questions and solutions Victor P. Snaith

Wilson s Theorem and Fermat s Little Theorem

The Chinese Remainder Theorem

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

Math 109 HW 9 Solutions

Mathematics 4: Number Theory Problem Sheet 3. Workshop 26 Oct 2012

Mathematics for Cryptography

ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION

Cyclic groups Z Z Theorem Proof

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?

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

Carmen s Core Concepts (Math 135)

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

Ignoring the s column for the time being, note, for n = 0,1, that [r n ] 2 + [t n ] 2 is divisible by T. n :

Applied Cryptography and Computer Security CSE 664 Spring 2018

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

Proof of Infinite Number of Triplet Primes. Stephen Marshall. 28 May Abstract

4 Powers of an Element; Cyclic Groups

HOMEWORK 4 SOLUTIONS TO SELECTED PROBLEMS

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

The theory of numbers

CISC-102 Winter 2016 Lecture 11 Greatest Common Divisor

Chinese Remainder Theorem

n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition

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

a = mq + r where 0 r m 1.

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Mathematics of Cryptography

Solutions to Problem Set 3 - Fall 2008 Due Tuesday, Sep. 30 at 1:00

Divisibility, Factors, and Multiples

Residue Number Systems Ivor Page 1

CISC-102 Fall 2017 Week 6

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

MTH 346: The Chinese Remainder Theorem

3 The fundamentals: Algorithms, the integers, and matrices

Notes on Primitive Roots Dan Klain

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Solutions to Assignment 1

Simultaneous Linear, and Non-linear Congruences

Fermat's Little Theorem

Number Theory and Group Theoryfor Public-Key Cryptography

Congruences and Residue Class Rings

Chinese Remainder Theorem

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

Cool Results on Primes

ON A PROBLEM OF PILLAI AND ITS GENERALIZATIONS

Secret sharing schemes

Rings in Coding Theory

Iterated Encryption and Wiener s attack on RSA

The security of RSA (part 1) The security of RSA (part 1)

Equidivisible consecutive integers

4 Number Theory and Cryptography

TESTCRACKER CAT TOPPER s PROGRAM: QUANT. Factorial

CSE 215: Foundations of Computer Science Recitation Exercises Set #5 Stony Brook University. Name: ID#: Section #: Score: / 4

INTRODUCTION TO LIE ALGEBRAS. LECTURE 10.

Application of Polynomial Interpolation in the Chinese Remainder Problem

D-MATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.

Elementary Number Theory

CMPUT 403: Number Theory

Discrete Structures Lecture Primes and Greatest Common Divisor

The following is an informal description of Euclid s algorithm for finding the greatest common divisor of a pair of numbers:

MATH 25 CLASS 12 NOTES, OCT Contents 1. Simultaneous linear congruences 1 2. Simultaneous linear congruences 2

NOTES ON INTEGERS. 1. Integers

2 so Q[ 2] is closed under both additive and multiplicative inverses. a 2 2b 2 + b

Chinese Remainder Algorithms. Çetin Kaya Koç Spring / 22

5 Group theory. 5.1 Binary operations

5.1. Primes, Composites, and Tests for Divisibility

Quasi-cyclic codes. Jay A. Wood. Algebra for Secure and Reliable Communications Modeling Morelia, Michoacán, Mexico October 12, 2012

Evidence that the Diffie-Hellman Problem is as Hard as Computing Discrete Logs

Number Theory Solutions Packet

The Chinese Remainder Theorem

SUBGROUPS OF CYCLIC GROUPS. 1. Introduction In a group G, we denote the (cyclic) group of powers of some g G by

Elliptic Curves over Finite Fields

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Mathematics of Cryptography

Chapter 5: The Integers

CHAPTEER - TWO SUBGROUPS. ( Z, + ) is subgroup of ( R, + ). 1) Find all subgroups of the group ( Z 8, + 8 ).

1 i<j k (g ih j g j h i ) 0.

Corollary 4.2 (Pepin s Test, 1877). Let F k = 2 2k + 1, the kth Fermat number, where k 1. Then F k is prime iff 3 F k 1

#A42 INTEGERS 10 (2010), ON THE ITERATION OF A FUNCTION RELATED TO EULER S

Wollongong College Australia

Chapter 4. Characters and Gauss sums. 4.1 Characters on finite abelian groups

5: The Integers (An introduction to Number Theory)

K. Ireland, M. Rosen A Classical Introduction to Modern Number Theory, Springer.

EXTENDING A THEOREM OF PILLAI TO QUADRATIC SEQUENCES

Long division for integers

CHINESE REMAINDER THEOREM

g(x) = 1 1 x = 1 + x + x2 + x 3 + is not a polynomial, since it doesn t have finite degree. g(x) is an example of a power series.

Arithmetic and Incompleteness. Will Gunther. Goals. Coding with Naturals. Logic and Incompleteness. Will Gunther. February 6, 2013

UNDERSTANDING RULER AND COMPASS CONSTRUCTIONS WITH FIELD THEORY

Transcription:

Chinese Remainder Theorem explained with rotations Reference: Antonella Perucca, The Chinese Remainder Clock, The College Mathematics Journal, 2017, Vol. 48, No. 2, pp. 82-89.

2 One step-wise rotation Consider a circle with one marked point on it. Fix some positive integer m. At every time unit, let the point move 1 m-th of the circle clockwise. This phenomenon is periodic, the fundamental period is m. We identify the positions with the integers from 0 to m 1. For convenience, we set the initial position and 0 at the top. Example: m = 3, the position at time 0 2 0 1

3 Two simultaneous rotations Consider two simultaneous rotations with m 1 and m 2 steps. There are m 1 m 2 configurations for the pair of points. Example: m 1 = 3 and m 2 = 4, the configuration at time 1 0 3 2 0 1 1 2

4 Impossible configurations Consider two simultaneous rotations with m 1 and m 2 steps. In general, not all of configurations occur because the rotations are simultaneous (this is evident if m 1 = m 2 ). Example: m 1 = 4 and m 2 = 6, the configuration at time 7 and an impossible configuration

5 Fundamental period for two rotations The fundamental period is the least common multiple of the single periods. Indeed, the fundamental period is the smallest positive time at which both points are back to the initial position, namely the least common multiple of m 1 and m 2. Each configuration occurs at most once in every fundamental period (because getting the same configuration implies that both points did full turns). We deduce: The fundamental period is the number of occurring configurations. Special case m 1 and m 2 coprime: The fundamental period is m 1 m 2, every configuration occurs.

6 Generalisation to several rotations Consider simultaneous rotations with m 1, m 2..., m n steps. The fundamental period is the least common multiple of the single periods. Namely, the least common multiple of m 1, m 2..., m n. Each configuration occurs at most once in every fundamental period. The fundamental period is the number of occurring configurations. Special case m 1, m 2..., m n pairwise coprime: The fundamental period is the product m 1 m n, every configuration occurs.

7 CRT for rotations We have thus proven: Chinese Remainder Theorem for rotations Let m 1,, m n be pairwise coprime positive integers. For each integer m in this set, consider a circle with one marked point on it, 1 which at every time unit rotates of m-th of the circle clockwise. The fundamental period for this phenomenon is m 1 m n, and every configuration for the n-tuple of marked points occurs exactly once in the fundamental period. Remark: Even if the integer parameters are not coprime, the configuration of the marked points determines the time inside a fundamental period because it occurs at most once.

8 CRT for cyclic periodic phenomena Consider a cyclic periodic phenomenon, where finitely many distinct situations repeat cyclically. This can be seen as a rotation with as many steps as the fundamental period, so we have proven: Chinese Remainder Theorem for cyclic periodic phenomena If m 1,, m n are pairwise coprime positive integers, then a cyclic periodic phenomenon with fundamental period m 1 m n amounts to the collection of simultaneous cyclic periodic phenomena whose fundamental periods are m 1 to m n. Corollary: A cyclic periodic phenomenon with fundamental period m can be described by cyclic periodic phenomena whose fundamental periods are the prime powers appearing in the factorization of m.

9 CRT for lists of remainders Chinese Remainder Theorem for lists of remainders Let m 1,, m n be pairwise coprime positive integers. For every integer consider the n-tuple of its remainders after division by m 1 to m n. We then have: Two integers produce the same n-tuple if and only if they leave the same remainder after division by the product m 1 m n. All n-tuples consisting of remainders after division by m 1 to m n are produced. Proof: The result can be deduced from the CRT for rotations. A list of remainders can be identified (in an obvious way) with a configuration of marked points.

10 The usual CRT Chinese Remainder Theorem Let m 1,, m n be pairwise coprime positive integers. An integer in the range from 0 to m 1 m n 1 is uniquely determined by the n-tuple of its remainders after division by m 1 to m n. Proof: This is a reformulation of the previous result.

11 Generalisation of the usual CRT Generalized Chinese Remainder Theorem Let m 1,, m n be positive integers. An integer in the range from 0 to lcm(m 1,... m n ) 1 is uniquely determined by the n-tuple of its remainders after division by m 1 to m n. Proof: The result can be deduced from the corresponding result about simultaneous step-wise rotations. Remark that an impossible n-tuple of remainders corresponds to an impossible configuration for the n-tuple of marked points.

Thank you for your attention! 12