- •State Department of Communications Odessa National Academy of Telecommunications named after a.S.Popov
- •Discrete mathematics Textbook For Students Doing a Course of Higher Mathematics in English
- •1. Set theory
- •1.1. Sets and Elements. Subsets.
- •Table 1.1.1 Laws of the algebra of sets
- •2. Relations
- •2.1. Product Sets
- •2.2. Binary Relations
- •2.3. Pictorial Representatives of Relations a. Relations on f
- •2.4. Inverse Relation
- •2.5. Types of Relations
- •2.6. Functional Relations
- •Injective relation
- •2.8. Ordered Sets
- •2.9. Suplementary Problems
- •3. Mathematical logic
- •3.1. Propositions and Compound Statements
- •3.2. Basic Laws of Logical Operations
- •3.3. Propositiona! Functions. Quantifiers
- •4. Boolean algebra
- •4.1. Boolean Functions
- •4.2. The Properties of Elementary Boolean Functions
- •4.4. Total Systems of Functions. Basis
- •4.5. Normal Forms of Boolean Functions
- •4.6. Zhegalkin Algebra
- •4.7. Minimization of Functions
- •4.8. Minimization of Functions by Quine-Mc Cluskey Method
- •5.1. Definitions.
- •5. Graph theory
- •5.3. Directed Graphs
- •A) Directed graph g1
- •5.4. The Ways of Representation of Graphs
- •5.5. Isomorphic Graphs
- •F'g.J.J.7 5.6. Types of Graphs
- •5.7. Connectedness. Connected Components
- •5.8. Distance and Diameter
- •5.9.Traversable and Eulerian Graphs
- •5.10. Hamiltonian Graphs
- •5.11. Cyclomatic Graphs. Trees
- •5.12. Tree Graphs
- •5.13. Spanning Trees
- •5.14. Transport Networks
- •6. Elements of number theory
- •6.1. Fundamental Concepts
- •6.2. Euqludean Algorithm
- •6.3. Congruences and Their Properties
- •6.4 Residue Classes
- •6.5. Euler Function
- •6.6. Congruence Equations
- •6.7. Chinese Remainder Theorem
- •7. Groups. Rings. Fields
- •Operarions
- •7.3. Subroups. Homomorphisms
- •7.4. Rings. Fields
- •7.5. Polynomials over a Field
6. Elements of number theory
6.1. Fundamental Concepts
If w is a natural number then for any integer number a there exists a pair of integer numbers ^ and r such that
a = w - ^ + r, 0 < r < w.
A number ^ is called a quotient, and a number r is called a remainder. If a can be divided by m without remainder then we denote w a.
The least common multiple (LCM) of two (or more) nonzero whole numbers is the smallest nonzero whole number that is the multiple of each all of the numbers. LCM of a and A is written [a,A .
E.awT'/e d.7.7. Find [24,36 .
Express the numbers 24 and 36 in their prime factor exponential form: 24 = 23-3, 36 = 22-32. ^^e^ 2; The LCM will be the number 23 - 32 .
The greatest common factor (GCF) of two (or more) nonzero whole numbers is the largest nonzero whole number that is a factor of both (all) of the numbers. GCF of a and A is written (a, A).
If (a1,a2,...,a^) = 1 then numbersa1,a2,...,a^ are called mutually prime numbers.
T^eorew. If a = A - ^ + r, then (a,A)=(A, r).
Froo/. If ^ A and ^ r then ^ a. If ^ a and ^ A then ^ r. Therefore a set of
divisors of A and r coincides with a set of divisors of a and A. Hence their greatest common factors are equal.
6.2. Euqludean Algorithm
Let a and A be positive integers, and a > A. We can find
a = A - + r1, 0 < r1 < w1; A = r1 - + 0 < r2 < r1;
r1 = r2 - ^3 + rз, 0 < r3 < r2;
r"-2 = r"-1- + r", 0 < r" < r"-1;
r"-1 = r" - . As a result we have
(a, A ) = (A, r1 )=(rl, r2 )= ... = (r,-l, r" )= r" .
Exaw^/e d.2.7. Find (525,231).
231
2
63
3
|
63 |
42 |
|
42 |
1 |
42 |
21 |
|
42 |
2 |
|
0
Therefore (525,231)= 21.
6.3. Congruences and Their Properties
De/'M'Y'oM. Let w be a positive integer. We say that a is congruent to A modulo written a = ^(mod w) if w divides the difference a - ^. The integer w is called the modulus. For example
87 = 23(mod 4) since 4 divides 87 - 23 = 64,
67 = 1(mod6) since 4 divides 67 - 1 = 66,
72 = -5(mod7) since 7 divides 72 -(-5) = 77,
27^ 8(mod 9) since 9 does not divide 27 - 8 = 19.
^ewar^; Suppose w is positive, and a is any integer then there exist integers ^ and r with 0 < r < w such that a = w^ + r. Hence
w^ = a - r or w (a - r) or a = r(mod w).
Accordingly:
Any integer a is congruent modulo w to a unique integer in the set {0,1,2,...,w -1}. The uniqueness comes ^om the fact that w cannot divide the difference of two such integers.
Any two integers a and ^ are congruent modulo w if and only if they have the same remainder when divided by w.
Now we consider some properties of congruences.
Suppose a = c(mod w) and ^ = ^ (mod w). Then a + ^ = c + ^ (mod w) and a - ^ = c - ^(mod w).
Let a = ^ + ^w, c = ^ + /w, then a + c = ^ + ^ + + /)w or a + c = ^ + ^(mod w); a - c = ^ - ^ + + + ^/w)= ^^ + wM.
Both sides of a congruence and modulus it is possible to divide by some common divisor.
Let h = ^(mod w); h = h^^, ^ = ^^^, w = w^^, then h^^ = ^^^ + ^w^^. Hence h^ = ^^ + ^w^ and h^ = ^^ (mod w^).
Both sides of a congruence we can divide by their common divisor if the latter and the modulus of the congruence are mutually prime.
Let h = ^(mod w); h = h^^,^h = ^^^, (w,^) = 1, then (h^ - ^^ = ^w. Since (w,^) = 1,
then w (h^ - ^^) and h^ = ^^ (mod w^).
Ifh = ^(mod w), then (h, ^ ) = (^, w).
Really, if h = ^(mod w), then h = ^ + /w and (h,^) = w).
E.hwp/e d.3.7. Observe that 2 = 8(mod6) and 5 = 41(mod6). Then:
2 + 5 = 8 + 41(mod6) or 7 = 8 + 49(mod6);
2 - 5 = 8 - 41(mod6) or 10 = 328(mod6).
