Library of Math
Online Math Organized by Subject Into Topics
Subscribe to the Library of Math Feed

Introduction to Congruences

    A modern treatment of congruences was introduced by Karl Friedrich Gauss. Congruences, or modular arithmetic arises naturally in common everyday situations. For example, odometers usually work modulo 100,000 and utility meters often operate modulo 1000. In trigonometry, it is common to work in degrees, that is modulo 360 degrees, and indeed, it is common to work in minutes and seconds both of which are working modulo 60.
    In this topic we introduction the notion of an equivalence relation and show that congruence modulo n is an equivalence relation. Many basic properties of congruences are proven with examples. Also detailed are modular arithmetic, systems of residues, and modular exponentiation.

Definition (Equivalence Relation) A relation introduction to congruences _gr_1.gif] on a non-empty set introduction to congruences _gr_2.gif] is an equivalence relation on introduction to congruences _gr_3.gif] if it satisfies the following three properties:

    (i) (Reflexive) If introduction to congruences _gr_4.gif] then introduction to congruences _gr_5.gif]
    
    (ii) (Symmetric) If introduction to congruences _gr_6.gif] and introduction to congruences _gr_7.gif] then introduction to congruences _gr_8.gif]
    
    (iii) (Transitive) If introduction to congruences _gr_9.gif] introduction to congruences _gr_10.gif] and introduction to congruences _gr_11.gif] then introduction to congruences _gr_12.gif]
    

Definition (Congruent Modulo n) Let introduction to congruences _gr_13.gif] be a positive integer. Integers introduction to congruences _gr_14.gif] and introduction to congruences _gr_15.gif] are congruent modulo n if introduction to congruences _gr_16.gif] is divisible by introduction to congruences _gr_17.gif] and is denoted by introduction to congruences _gr_18.gif]

Example (Congruent Modulo n) We have introduction to congruences _gr_19.gif] since introduction to congruences _gr_20.gif] but   introduction to congruences _gr_21.gif] since introduction to congruences _gr_22.gif] Also we have introduction to congruences _gr_23.gif] since introduction to congruences _gr_24.gif] and introduction to congruences _gr_25.gif] since introduction to congruences _gr_26.gif] introduction to congruences _gr_27.gif]

Proposition (Congruence Modulo n) Congruence modulo introduction to congruences _gr_28.gif] is an equivalence relation on the set of integers for each positive integer introduction to congruences _gr_29.gif]

    Proof. If introduction to congruences _gr_30.gif] is an integer, then introduction to congruences _gr_31.gif] since introduction to congruences _gr_32.gif] and so introduction to congruences _gr_33.gif] is reflexive. If introduction to congruences _gr_34.gif] and introduction to congruences _gr_35.gif] are integers and introduction to congruences _gr_36.gif] then introduction to congruences _gr_37.gif] since introduction to congruences _gr_38.gif] introduction to congruences _gr_39.gif] introduction to congruences _gr_40.gif] and so introduction to congruences _gr_41.gif] is symmetric. If introduction to congruences _gr_42.gif] and introduction to congruences _gr_43.gif] are integers, introduction to congruences _gr_44.gif] and introduction to congruences _gr_45.gif] then introduction to congruences _gr_46.gif] because introduction to congruences _gr_47.gif] and introduction to congruences _gr_48.gif] implies introduction to congruences _gr_49.gif] and so introduction to congruences _gr_50.gif] is transitive. introduction to congruences _gr_51.gif]

Proposition (Congruence and the Integers) If introduction to congruences _gr_52.gif] and introduction to congruences _gr_53.gif] are integers, then introduction to congruences _gr_54.gif] if and only if there exists an integer introduction to congruences _gr_55.gif] such that introduction to congruences _gr_56.gif]
    
    Proof. introduction to congruences _gr_57.gif]If introduction to congruences _gr_58.gif] then introduction to congruences _gr_59.gif] and this means there exists an integer introduction to congruences _gr_60.gif] such that introduction to congruences _gr_61.gif] and so introduction to congruences _gr_62.gif] Conversely, if there is an integer introduction to congruences _gr_63.gif] such that introduction to congruences _gr_64.gif] then introduction to congruences _gr_65.gif] and so introduction to congruences _gr_66.gif] introduction to congruences _gr_67.gif]

Proposition (Properties of Congruence Modulo n) Let introduction to congruences _gr_68.gif] be an integer. Then the following hold for all integers introduction to congruences _gr_69.gif]

    (i) If introduction to congruences _gr_70.gif] and introduction to congruences _gr_71.gif] then introduction to congruences _gr_72.gif] and introduction to congruences _gr_73.gif]
    
    (ii) If introduction to congruences _gr_74.gif] then introduction to congruences _gr_75.gif]
    
    (iii) If introduction to congruences _gr_76.gif] and introduction to congruences _gr_77.gif] then introduction to congruences _gr_78.gif]
    
    (iv) There exists an integer introduction to congruences _gr_79.gif] such that introduction to congruences _gr_80.gif] if and only if introduction to congruences _gr_81.gif]
    
    (v) If introduction to congruences _gr_82.gif] then introduction to congruences _gr_83.gif]
    
    Proof. (i) If introduction to congruences _gr_84.gif] and introduction to congruences _gr_85.gif] then introduction to congruences _gr_86.gif] and introduction to congruences _gr_87.gif] It follows that, introduction to congruences _gr_88.gif] and thus   introduction to congruences _gr_89.gif] It also follows that, introduction to congruences _gr_90.gif] and introduction to congruences _gr_91.gif] thus introduction to congruences _gr_92.gif] Therefore,   introduction to congruences _gr_93.gif]
    (ii) If introduction to congruences _gr_94.gif] then introduction to congruences _gr_95.gif] and so introduction to congruences _gr_96.gif] which means introduction to congruences _gr_97.gif]
    (iii) If introduction to congruences _gr_98.gif] then introduction to congruences _gr_99.gif] which means introduction to congruences _gr_100.gif] Since introduction to congruences _gr_101.gif] it follow that introduction to congruences _gr_102.gif] and so   introduction to congruences _gr_103.gif]
    
(iv) If introduction to congruences _gr_104.gif] then there exists integers introduction to congruences _gr_105.gif] and introduction to congruences _gr_106.gif] such that introduction to congruences _gr_107.gif] Let introduction to congruences _gr_108.gif] then introduction to congruences _gr_109.gif] as desired. Conversely, if there is such a introduction to congruences _gr_110.gif] then introduction to congruences _gr_111.gif] for some introduction to congruences _gr_112.gif] Thus, introduction to congruences _gr_113.gif] and so introduction to congruences _gr_114.gif]
    (v) If introduction to congruences _gr_115.gif] we know that introduction to congruences _gr_116.gif] Thus there exists an integer introduction to congruences _gr_117.gif] such that introduction to congruences _gr_118.gif] and dividing both sides by introduction to congruences _gr_119.gif] we have introduction to congruences _gr_120.gif] Because introduction to congruences _gr_121.gif] it follows that introduction to congruences _gr_122.gif] Therefore, introduction to congruences _gr_123.gif] introduction to congruences _gr_124.gif]

Example (Properties of Congruence Modulo n)
    (a)
The remainder of introduction to congruences _gr_125.gif] when divided by 9 is the same as the remainder of the sum of its digits when divided by 9 which follows from writing introduction to congruences _gr_126.gif] where introduction to congruences _gr_127.gif] by noting that introduction to congruences _gr_128.gif] for any introduction to congruences _gr_129.gif]
    (b) The remainder of introduction to congruences _gr_130.gif] when divided by 11 is the same as the remainder of the alternating sum of its digits when divided by 11 which follows from writing introduction to congruences _gr_131.gif] in decimal form and noting that introduction to congruences _gr_132.gif] for any introduction to congruences _gr_133.gif]
    (c) If introduction to congruences _gr_134.gif] is a prime number, then introduction to congruences _gr_135.gif] which follows from the binomial theorem:  

introduction to congruences _gr_136.gif]
                
because introduction to congruences _gr_137.gif] for introduction to congruences _gr_138.gif] introduction to congruences _gr_139.gif]

Proposition (Equivalence Classes for the Integers) Let introduction to congruences _gr_140.gif] be a positive integer. Then a complete set of equivalence class representatives on introduction to congruences _gr_141.gif] for congruence modulo introduction to congruences _gr_142.gif] is introduction to congruences _gr_143.gif]

    Proof. Given an integer introduction to congruences _gr_144.gif] the Division Algorithm yields unique integers introduction to congruences _gr_145.gif] and introduction to congruences _gr_146.gif] such that introduction to congruences _gr_147.gif] and introduction to congruences _gr_148.gif] Then introduction to congruences _gr_149.gif] and so introduction to congruences _gr_150.gif] is congruent to at least one of introduction to congruences _gr_151.gif] In fact introduction to congruences _gr_152.gif] is unique because otherwise, say introduction to congruences _gr_153.gif] and   introduction to congruences _gr_154.gif] with introduction to congruences _gr_155.gif] for some introduction to congruences _gr_156.gif] would contradict the uniqueness of the Division Algorithm. introduction to congruences _gr_157.gif]

Cite this as:
Introduction To Congruences
Published by Library of Math -- Online math organized by subject into topics.
Written by Smith, David A.
http://www.libraryofmath.com/introduction-to-congruences.html
about us contact us privacy policy terms of use mision statement lom help
The Library of Math - Online Math Organized by Subject Into Topics. © 2005 - 2008 www.LibraryOfMath.com All rights reserved.
Page copy protected against web site content infringement by Copyscape   Valid CSS! Valid HTML 4.01 Transitional