miércoles, 28 de febrero de 2018

Some measures of areas and lengths

Areas and lengths for special cases

Measure of lengths

To obtain the measure of the length for a line segment, straight or not, it is appropriate to use integration. It can be used a formula for lines represented by continuous functions.

If  f(x) is a continuous function in the closed interval [a, b], and there is a continuous derivative in that interval, then the measure of the length for the line segment represented by the above function for x in [a, b] is the real number s given by


This formula is based in calculus themes like the intermediate value theorem and Rolle's theorem. Essentially, this formula comes from inscribing polygonals in the considered curved line. The sum of the measure of lengths of the polygonal sides approximates the  looking for lenght. Such approximation will be better for poligonals better adjusted to the considered curved line. The number of sides for the inscribed polygonal increases as the length of each side decreases.

Measure of the length for a straight line segment

To apply above formula in the case of a straight line segment, let consider the segment with end points P, Q, in the straight line represented by f(x) = mx + h.

Then P = (af(a)), Q = (bf(b)). The distance formula used in coordinate geometry gives,

That is,
in the situation of next illustration where b is greater than a.



To apply the integration formula, if  f(x) = mx + h, then f ‘(x) = m.

Taking the established limits of the integral, PQ is (as before)



If PQ is parallel to x axis, then m = 0 and the result is  PQ =b – a.

Measure of the length for a segment of a parabola


For a parabola whose focus is F = (0, p) the corresponding function is f(x) = (1/4p)x2, for x in [0, 2p], for instance.

Then  f ‘(x) = x/2p and 1 + [f ‘(x)]2 (4p2 + x2)/4p2

To find the measure of the length of the considered arc, calculate:



Using a table of integrals or a program ( like Mathematica),


Where K is an indeterminate real number which appears with every indefinite integral.
If limits of integration ( 2p, 0) are applied,


For example, if  p = 2, 4.591 is an approximation for the measure of the length of the considered arc, in the used lenght units (inches, centimeters, ...)

For a more general situation, if x varies in the interval [0, c], where c is a positive real number,

 

If the focus of the parabola is  (0, 2) and c = ½ then s ≈ 2.0052 in the used lenght units.

Measure of the length for a circular arc

For a circle represented by  x2 + y2 = r2, it will be considered  the function


 defined for x in [0, r]  that is the arc included in the first quadrant.


then,

It has to be done

If x = r sin t, then dx = r cos dt, and r2 – x= cos2 t.

If x = 0, r sen t = 0 and t = 0.

If x = r,  r = r sin t, that is, 1 = sin t and t = π/2.

The integral to be calculated is:

The result of integration is r.t, with the given limits,  r(π/2 - 0) = (π/2)r.

The measure for the circle is 4 times the former result, that is 2πr.

Measure of the length for a segment of an ellipse

Given the ellipse represented by  (x/a)2 + (y/b)2 = 1, it can be done a process similar to that of  a circle and consider the following function for x in [0, a], corresponding to the part of the curve in the first quadrant.



In this way,

The integral for this function of x is one of the so called elliptic integrals, which are not calculated by conventional means. It has to be used infinite series or a computer program like the above mentioned to obtain for this case,



A similar situation happens for an arc of hyperbola
 A una situación similar se llega si se quiere calcular la medida de la longitud de un arco de hipérbola.

Measure of the area for a plane elliptic region

An ellipse with coordinate axes as symetry axes is represented on the cartesian plane by

 (x/a)+ (y/b)2 = 1,

from which it is obtained, 
The former equation includes two functions which represent, respectively, the line in the half-plane for which ≥ 0 and the one for which ≤  0.

Because of the symetry of the curve, it is necessary to determine the measure of the area for the convex shaded region and take it 4 times.




Using integral calculus,

The result can be obtained by means of an adequate computer program:


In the following schema,


Then it can be written,  x = a sen t,  c = a cos t, dx = a cos t dt.

but cos2 t = (1 + cos 2t)/2.

Then,

 Now, for


2t = and  du = 2dt, dt = (1/2)du.

Then,


and

where  K2 = (a2/2)K1K1 is an arbitrary constant

From above schema,

 t = arcsin (x/a)  and sin 2t = 2( sen t)(cos t) = 2(x/a)(c/a) =  2xc/a2

Now,

is an arbitrary constant.

Finally, for the definite integral, x takes the value of a:

(a2/2)arcsin (1) + (1/2)a.0  = (a2/2)(π/2) = πa2/4. If x takes the value of 0, the result is 0.  Then,



 The measure of the total elliptic region is πab expressed in area units.







domingo, 18 de febrero de 2018

Integers: factors and multiples

Factors and multiples in the set of integers

Factors and multiples

The set of integers consists in positive integers, negative integers and zero. They can be represented as points of a straight line, symetric with respect to the point chosen to be the corresponding to zero, and placed at equal distances between two consecutive items.

To affirm that an integer m is a factor  of an integer n means that × t = n, for some integer t.

Example: 6 is a factor of 18 and -6 is a factor of - 18 ( in those cases, t =3). Also, 6 is a factor of -18, and -6 is a factor of  18  (in those cases, = -3).

For  integers m, n, if a number t exists such that × t = n, that is unique. If for some  t' occurs that × t' = n, then × t = × t' and t = t', except if m = 0.

If m = 0, × t = × t' and it is not necessary that t = t'

For any integer n, 0 × n = 0. It can be stated that 0 is a factor of 0, even if n is not unique.

Also, n × 0 = 0. It can be stated that any integer n is a factor of 0.

In general, a is a factor of b means the same as, b is a multiple of a.

Examples: 7 is a factor of 21, and 21 is a multiple of 7;
5 is a factor of 0, and 0 is a multiple of 5.
0 is a factor of 0, and 0 is a multiple of 0
For any integer n, 1 is a factor of n, and n is a multiple of 1

Order, factors and multiples

In the set of integers it is defined an order relation. If a and b are integers, to affirm that a is less or equal to b means that there is an integer k, positive or zero, such that  a + k = b

a is less or equal to b is symbolized ab


Examples: 
7 ≤ 11, since 7 + 4 = 11. 
-12 ≤ -3, since -12 + 9 = -3
17 ≤ 17, since 17 + 0 = 17

a is less or equal to b is equivalent to b is greater or equal to a, symbolized as ba.

Examples: 11 ≥ 7, -3 ≥ -12, 17 ≥ 17, 4 ≥ -5

If a and b are nonegative integers and a is a factor of b, then ab.

This is true, since a × k = b, means that a + a.(k - 1) = b

Examples:
6 is a factor of 18. In fact, 6 × 3 = 18; 6 + 6 × 2  = 18.   Then,  6 ≤ 18.
13 is a factor of 13. In fact, 13 × 1 = 13; 13 + 13 × 0 = 13. Then, 13 ≤ 13

Multiples and quotients

If b is a multiple of a, then there is an integer k such that b = a × k . This number k is called the quotient between b and a. The number b is the dividend and the number a is the divisor. The corresponding operation is an exact division between b and a: b/a = k. Also b ÷ a = k.

Examples:
12/4 = 3, since 12 = 3 × 4
-35/7 = -5, since -35 = -5 × 7
56/-8 = -7, since 56 = (-7) × (-8)

In exact division operation,the divisor cannot be zero even if the dividend were zero.

The expression 0/a has arithmetical meaning, if≠ 0.  (0 is multiple of any integer n)
0/a = 0, since 0 × a = 0

The expresion b/0, for b ≠ 0,   has not arithmetical meaning as b/0 = k would mean k × 0 = b.

The expresion b/0, for b = 0, has not arithmetical meaning as 0/0 = k would be true for any integer k. The operation would  give any integer as a result.

Examples:
0 ÷ 235 = 0
0 ÷ -75 = 0
3 ÷ 0 has not arithmetical meaning.
0 ÷ 0 has not arithmetical meaning.

Greatest common factor of two (or more) positive integers

The themes of gratest common factor (gcf) and least common multiple (lcm) have been relevant in number theory from antiquity. They can be found in Euclid's Elements.  

The gratest common factor between two positive integers a, b, is the maximum of the intersection set between the set of factors of a, F(a), and the set of factors of b, F(b).

 gcf(a, b) = max[F(a∩ F(b)]

Example: For 432 and 388, F(432) = {1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 36, 48, 54, 72, 108, 144, 216, 432}; F(388) = {1, 2, 4, 97, 194, 388}. F(a∩ F(b) = {1, 2, 4}. max[F(a∩ F(b)] = 4.
gcf(432, 388) = 4.

The concept of greatest common factor can be extended for more than two integers:


gcf (a1, a2, a3, …, an) = max[F(a1∩ F(a2∩ F(a3∩ ... ∩ F(an)]

Example: For 270, 180, 306,
F(270) =  {1, 2, 3, 5, 6, 9, 10, 15, 18, 27, 30, 45, 54, 90, 135, 270}, 
F(180) = {1, 2, 3, 4, 5, 6, 9, 10, 12, 15, 18, 20, 30, 36, 45, 60, 90, 180},
F(306) = {1, 2, 3, 6, 9, 17, 18, 34, 51, 102, 153, 306}
F(270∩ F(180) ∩ F(306) = {1, 2, 3, 6, 9, 18}
max[F(270∩ F(180) ∩ F(306)] = 18
gtf(270, 180, 306) = 18

General division for positive integers

In above described exact division, b = a × k, where b is the dividend and a is the divisor. In this case, b - (a × k) = 0. To generalize the division operation for any pair of positive integers a, b, it is necessary to consider cases where b - (a × k) ≠ 0.

Let's consider the following example:

There are 168 eggs and 37 boxes. The eggs must be put in the boxes with the condition that  each box will contain the same number of eggs. A way to do this can consist in putting one egg at a time  in each box, verify that there are more eggs to put in the boxes, repeat the operation until possible, according with the given condition. Every share means to take 37 eggs from the pile. The following table describes the process.

share
result
rest
1
168 - 37
131
2
131 - 37
94
3
94 - 37
57
4
57 - 37
20

From the above table it is clear that it has been possible to remove 4 times a set of 37 units from the pile of 168 units . The process stops there, since each box has to contain the same number of eggs. It remains 20 eggs.

It can be seen that  this process  deals with searching the greatest multiple of 37 which is not greater than 168. In this case, 4 × 37 is the right multiple. For 5 × 37 = 185 is greater that the number of eggs in the pile.

To generalize the division operation, this example shows a case in which b - (a × k) ≠ 0.

The general situation is b - (a × k) = r where r ≥ 0 and r ⋖ b.
If r = 0, the situation is the same as that of exact division.

The following schemas show the more general situation of division between two positive integers b (dividend) , a (divisor). q is the quotient and r is the reminder or rest. Also is shown the particular eggs and boxes case.


Given two positive integers b, a. it is always possible to find one or more multiples of a  not greater than b, The greatest of such multiples is the reminder of b divided by a.

Example: If b = 456 and a = 87, then multiples of 87 not greater than 456 are: 0, 87, 174, 261, 348, 435. The greatest of these multiples is 435 ( = 87 ×  5).
Then the quotient is 5 and the reminder is 456 - 435 = 21.

Euclid's algorithm

The gcf (s, t) can be obtained using the precedent definition. However, this is not the best way to perform the operation.

The so called Euclid´s algorithm is a way to determine the gcf  for two positive integers ab. The use of this algorithm requires of a new definition of gcf(a, b), equivalent to the precedent.

The integer d is the greatest common factor of two positive integers a, b, if and only if,

(1) d is a common factor of a and b 
(2) every common factor of a and b is a factor of d.

The condition (1) means that d is in the intersection set of  F(a) and F(b).

The condition (2) means that every number in F(a∩ F(b) is a factor of d. This means that for each c in F(a∩ F(b), c is a factor of d. This implies that c d, for each c in F(a∩ F(b). Conclusion: d is the maximum of F(a∩ F(b).

The so called Euclid's algorithm reiterates the above general division schema as it can be seen in the following schema:


q1
q2
q3
q4
.  .  .
a
b
r1
r2
r3
.  .  .
r1
r2
r3
r4

.  .  .

Above schema corresponds to this process: performing the division between a (dividend) and b (divisor) it results the quotient q1 and the remainder  r1. If r = 0 the process stops here. In this case, b is a factor of a and gcf(a, b) = b.

If r1 ≠ 0, perform the division between b and r1; it results the quotient q2 and the remainder  r2. If r2 = 0, the process stops here: r1 is a factor of  b and gcf(b, r1) = r1 .

If r2 ≠ 0, perform the division between r1 and r2 ; it results the quotient q3 and the remainder  r3.
If r3 = 0, the process stops here: r1 is a factor of  r2 and gcf(r1, r2) = r1 .

If r3 ≠ 0, ...

The following equalities can be written:

ra - b q1
r2 = b - r1 q2
r3 = r1 – r2 q3
r4 = r2 – r3 q4
.  .  .

In each case of division the reminder is strictly less than the divisor : r1 ⋖ br2 ⋖  r1 , r3 ⋖ r2 , ...

The sequence br1r2r3r4, … decreases and consequently rn has to be 0 for some value of n, as there is a minimum in  every set of integers .

For instance, if  r4 = 0, then r2 = r3 q4¸ and this implies that r3 is a factor of  r2.

As r3 = r1 – r2 q3, then r1 = r3 + r2 q3, and this implies that r3 is a factor of  r1.

As r2 = b – r1 q2, then b = r2 + r1 q2, and this implies that r3 is a factor of  b.

As r1 = a – b q1, then a = r1 + b q1, and this implies that r3 is a factor of  a.

The first condition of gcf definition has been accomplished: r3 is a factor of a and b.

To examine if the second condition is accomplished too, let's suppose that h is a factor of  a and b. In this case, h is a factor of r1, since ra - b q1

But, in this case, h is a factor of r2 too, since r2 = b – r1 q2.

In the same way it can be deduced that h is a factor of  r3.

Conclusion: for r4 = 0, gcf(a, b) = r3.

This reasoning can be extended for the case in which rn = 0, for any positive integer n.

Example: Find  gcf(72, 45)

Using the euclidean algorithm,


1
1
1
2
72
45
27
18
9
27
18
9
0

Then gcf (72, 45) = 9
Relatively prime numbers

 If gcf(a, b) = 1, then  a and b are said to be relative primes.

Example: 12 and 35 are relative primes.

Linear combination and gcf

From a theorem, not proved here, if gcf(ab) = d then there exist integers s, t, such that  d = sa + tb.

As a corollary of this theorem, it holds that the equation gx + hy = 1 has integer solutions, if  a/d = g, b/d = h.

Example: As it has seen, gcf(72, 45) = 9. 

To determine integers x, y such that 72x + 45= 9 will be used the program Mathematica, the one used  above to obtain lists of factors.

The equation 72x + 45= 9 is equivalent to 8x + 5y = 1.  Here the program Mathematica will be used:

FindInstance[8 x + 5 y == 1, {x, y}, Integers] . The result is, x = 2, y = -3

Substituting in the original equation, (72)(2) + (45)(-3) = 9.

One more example: Find gcf(2210, 1365)

From Euclid algorithm, or from Mathematica , GCD[2210, 1365] = 65

The equation 2210x + 1365= 65 is equivalent to 34x + 21= 1

From the named program,

FindInstance[34 x + 21 y == 1, {x, y}, Integers]  x = 13, y = -21

Verifying, (13)(2210) + (-21)(1365) = 65.

Relatively prime numbers

 If gcf(a, b) = 1, then  a and b are said to be relative primes.

Example: 12 and 35 are relative primes.

The following is a notable property:

If c is a factor of a.b and gcf (a, c) = 1 then c is a factor of b.

To justify this assertion, use the fact that  gcf (a, c) = 1 means that a.s + c.t = 1 for some integers s, t.

Then, b.a.s + b.c.t = b. That is, c is a factor of b.

Example: 4 1s a factor of  (12)(15). Then 4 is a factor of 12 since gcf (4, 15) = 1.

Least common multiple for two positive integers

In a similar way, the least common multiple between two numbers a, b, is the minumum of the intersection set between the set of multiples of a, M(a) and the set of multiples of b, M(b).


lcm(a, b) = min[M(a∩ M(b)]

It must be noted that in the set of multiples of an integer there are an infinite number of elements.

Example: For 6 and 8, 
M(6) ={6, 12, 18, 24, 30, 36, 42, 48, 54, 60, ...};
M(8) = {8, 16, 24, 32, 40, 48, 56, 64, 72, ...}.
M(6∩ M(8) = {24, 48, ...}. 
min[M(6∩ M(8)] = 24.
lcm(6, 8) = 24.

The concept of least common multiple can be extended for more than two integers:


lcm (a1a2, a3, …, an) = min[M(a1∩ M(a2∩ M(a3∩ ... ∩ M(an)]
Example: for 6, 7 and 8,
M(2) = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20, ...}
M(3) = {3, 6, 9, 12, 15, 18, 21, 24, 27, 30, ...}
M(6) ={6, 12, 18, 24, 30, 36, 42, 48, 54, 60, ...};
M(2∩ M(3) ∩ M(6) = {6, 12, 18, ...}
min[M(2∩ M(3) ∩ M(6)] = 6
lcm(2, 3, 6) = 6

As in the case of gcf, the above described method to find the lcm of two or more integers is not the best .

The following is a useful definition for lcm (a, b):

m is the least common multiple of the integers a, b if and only if the following conditions are fulfilled:

(1) m is a common multiple of a and b.

(2) Every common multiple of a and b is multiple of m.

There is a useful  property which links gcf and lcm for two integers a, b.

If d = gcf (a, b) then a = da’b = db’, and gcf (a’, b’) =1. Otherwise, d wouldn't be gcf (a, b).

If gcf(a', b') = g then a' = gs, b' = gt. Then a = dgs and b = dgt. This implies that dg is a common factor of a and b and dg is grater than d which had to be the greatest.

Example:
 gcf(72, 45) = 9; 72 = (9)(8), 45 = (9)(5); gtf (8, 5) = 1. Otherwise, 9 wouldn't be gcf (72, 45)

Given that d = gcf (a, b), a = da’b = db’, let m = da'b'. Then m = ab’ and m = a’b. That is, m is a common multiple of a and b.

If k is another common multiple of a and b, then k = ha = tb. Then k = hda’ = tdb’.

It follows that ha’ = tb’. As gcf(a’, b’) = 1, and b' is a factor of ha', then b' is a factor of h and b'.s = h, for some integer s.

Replacing h in a former equation, b'.sa’ = tb’. And then, k = hda’ = b'sda' = sm. that is, k is a multiple of m.

Conclusion: m = da’b’ is the least common multiple of a, b.

From above equations,  a = da’b = db’ it follows that ab = da’db’ and ab/d = da’b’ = m.

Finally, ab = dm. That is, gcf (a, b) × lcm (a, b) = × b.

 Example:  From above result,  gcf (72, 45) = 9. Then, lcm(72, 45) = (72)(45)/9 = 360.








viernes, 9 de febrero de 2018

Congruence in Integers


Congruence relation in Z

Classifying non-negative integers

Z0+ = {0, 1, 2, 3, 4, …} is the set of  non-negative integers. The '...' syimbol means that all the non-negative integers are included in that list. In the set Z0+ can be done classifications like the following:

In this case Z0+ has been classified in three subsets with an infinity of elements in each of them:
  {0, 3, 6, 9, …}, {1, 4, 7, 10, …}, {2, 5, 8, 11, …}.

Each one of these subsets can be identify by means of any of their elements. For instance using the smallest one. In this way, there is not ambiguity in saying "the class of 0", "the class of 1", the class of 2".

Also a special symbol can be adopted : 0* = {0, 3, 6, 9, …}, 1* = {1, 4, 7, 10, …}, 2* = {2, 5, 8, …}.

Every non-negative integer is in exactly one of these classes. For instance, 3472 is in one of them, though it is not evident where. It is convenient to have a fast method to determine the right class without writing down the complete list.

It can be observed that 0* is the class of non-negative integers of  the form 3k, where k takes all the values in {0, 1, 2, 3, ...}, that is in  Z0+.

In the same way, 1* is the class of non-negative integers of  the form 3k + 1, where takes all the values in {0, 1, 2, 3, ...}, that is in  Z0+.

Also in the same way, 2* is the class of non-negative integers of  the form 3k + 2, where takes all the values in {0, 1, 2, 3, ...} that is in  Z0+.

The above description sugest a certain flavor of division of a number by 3. More precisely, with possible reminders of a division by 3. They might be 0, 1 or 2.

Effectively, in dividing by 3 any number of the class 0* the remainder is 0. In dividing by 3 any number of the class 1* the remainder is 1. In dividing by 3 any number of the class 2* the remainder is 2.

For 3472, it can be seen, by making the division by 3, that  3472 =  (3 × 1157) + 1. As the remainder is 1, it means that 3472 belongs to 1*.

As any element of a class can be accepted as representative, for instance 1* and 4* are the same class in this partition.

In above example,   Z0has been partitioned in three classes. But the partition can be done in any number of classes.

Partition in four classes gives:

 0* = {0, 4, 8, 12, …}, 1* = {1, 5, 9, 13, …}, 2* = {2, 6, 10, 14, …}, 3* = {3, 7, 11, 15, …}.

In this partition, 3472 is in the class 0* since 3472 = (4 × 868) + 0.

Partitions in Z

The partition given in the first example can be extended to include negative integers:
                                         

the classes obtained are:


0* = {…, -9, -6, -3, 0, 3, 6, 9, …}; 
1* = {…, -8, -5, -2, 1, 4, 7, 10, …}; 
2* = {…, -7, -4, -1, 2, 5, 8, 11, …}. 

Note: "iff" means "if and only if"

The criterion by which it is decided if two numbers belong to the same class is the same as before. Two numbers belong to the same class, iff the difference between them is a multiple of 3. Alternatively, two numbers are in the same class, iff the remainder in dividing by 3 is the same.

Example: to determine in which class is -3805, divide it by 3:


As  -3805 = (-1268 × 3) – 1, the reminder -1 means that -3805 is in the class 2*

Also it can be seen that the difference between this number and any other in the same class is a multiple of 3. For instance,  8 – (-3805) = 3813 = 3 × 1271.

The classification of Z in four classes gives:

0* = {…, -12, -8, -4, 0, 4, 8, 12,…}
1* = {…, -11, -7, -3, 1, 5, 9, …}
2* = {…, -10, -6, -2, 2, 6, 10, …}
3* = {…, -9, -5, -1, 3, 7, 11, …}

In this partition, -3805 is in the class 3* because the remainder of the division by 4 is -1.
-3805 = (-951 × 4) – 1. Also, 3 – (-3805) = 3808, which is a multiple of 4.

Congruence modulo m

Above examples lead to a  generalization about numeric congruence.
If m is an integer grater than 1, the set of integers can be classified in m classes.
Two integers, a, b are in the same class, iff  a - b is a multiple of m.

A binary relation is defined in Z called congruence, modulo m. The following definition was formulated by Gauss:

a is congruent with b (mod m), iff , ab is a multiple of m.


Note. To express that a is congruent with b it will be written a ≡ b

Above definition is equivalent to the already mentioned division criterion:

Dividing a by m gives r = a - k.m

Dividing b by m gives s =  b - t.m

If r = s then a - k.m = b - t.m. That is, a - b = (k - t).m. Conclusion: a ≡ b (mod m)

Conversely, if a ≡ b (mod m) then a - b  = u.m, for some integer u.

Dividing a by m gives a = s.m + f

Dividing b by m gives b =  t.m + g

Then  a - b = (s - t).m + f - g

As a ≡ b (mod m), a - b has to be multiple of m. Then, f - g = 0. that is f = g: the reminders in each division are equal.

Congruence in Z as an equivalence relation


A relation R defined in a set is an equivalence relation iff  R is reflexive, symetric and transitive.

The congruence relation is reflexive. In fact, a ≡ a (mod m) because a - a = 0 is multiple of m. Indeed, 0 is multiple of any integer z as 0 = 0 × z.

The congruence relation is symmetric: if a ≡ b (mod m) then b ≡ (mod m). In fact, if a - b is multiple of m then b - a is also multiple of m.

The congruence relation is transitive. If a ≡ b (mod m) and b ≡ c (mod m) then a ≡ c (mod m).

Let's justify above assumption. The premises mean that a - b = t.m and a - c = u.m, for some integers t, u. By addition it is obtained, 
a - b + b - c = t.m + u.m. That is, a - c = (+ u).m. This means, a - c is multiple of m.

Partition induced by congruence in Z

In general, an equivalence relation R defined in a set determine a partition in it. This means that the set can be classified in non empty disjoint sets. The union of such sets gives the original set.

The classes induced by congruence  modulo m in Z can be designated by 0*, 1*, 2*, …, (m -1)*.
m* is the same as 0* since that clas contains all the multiples of m.

For any integer chosen, n belongs to one and only one class of above list.

Proof.: In above list there are m classes. Suppose that  n belongs to a* and n belongs to b*, with a* different from b*. Then n ≡ a (mod m) and  n ≡ b (mod m). This implies that a ≡ b (mod m). That is, a* = b*, which contradicts previous assumption.

Other properties of congruence relation are the following:


 If a ≡ b (mod m) and c ≡ d (mod m) then (a + c) ≡ (b + d) (mod m)

Proof: a - b = k.m, for some integer k and c - d = tm, for some integer t.

Then a - b + c - d  = (k + t)m. 

This can be rewritten as (a + c) - (b + d) = (k + t)m

Conclusion: (a + c ) - (b + d) is multiple of m. That is, (a + c) ≡ (b + d) (mod m)

Example: From 9 ≡ -7 (mod 4) and 6 ≡ 10 (mod 4) it follows that  15 ≡ 3 (mod 4)

If a ≡ b (mod m) and c ≡ d (mod m) then (a . c) ≡ (b . d) (mod m)

Proof: a - b = h.m, for some integer h and c - d = sm, for some integer s.

Then a = b + h.m and c = d + s.m

a.c = b.d + b.s.m + d.h.m + h.s.m.m

a.c - b.d = (b.s + d.h  + h.s.m).m

Conclusion: a.c - b.d is multiple of m. That is, a.cb.d  (mod m)

Example: From 9 ≡ -7 (mod 4) and 6 ≡ 10 (mod 4) it follows that 54 ≡ -70 (mod 4)

If a ≡ b (mod m)  then  a.c ≡ b.c (mod m)

This is a corollary of above property:

If ab (mod m) and cc (mod m), then a.cb.c (mod m)

Example:  From 12 ≡ 25 (mod 13) it follows that 48 ≡ 100 (mod 13)

Using induction (see Peano) it can be shown the following:

If ab (mod m) then for any positive integer nan ≡  bn (mod m).

Proof: For n = 1 the statement is true. 
If the statement is true for n = k (induction hypothesis) it has to be proved for n = k + 1.

If a ≡ b (mod m) then for a positive integer kak ≡  bk (mod m). 
Then a.ak ≡  b.bk (mod m). That is ak+1 ≡  bk+1 (mod m).


Example: if  9 ≡ -7 (mod 4)  then  93≡ (-7)(mod 4). that is, 729 ≡ -343  (mod 4)

Sums and products  modulo m

In what follows, tables for addition and multiplication for integers modulo 3 and modulo 4 are presented.

To obtain, for instance 3* + 2* (mod 4) it will be chosen  representatives of class 3*  and class 2* and perform ther ordinary sum betweem them. The result will be placed in its corresponding class. For instance, 3* + 2* = (3 + 2)* = 5* = 1* .
In analogous way, for the product. Example: 3* × 2* = (3 × 2)* = 6* = 2*

Addition table (mod 3)

+
0*
1*
2*
0*
0*
1*
2*
1*
1*
2*
0*
2*
2*
0*
1*

In {0*, 1*, 2*} this is a binary operation. 0* is the  neutral element. Each element has its opposite. For instance, the opposiye of 2* is 1*. Associative and commutative laws hold. Briefly, {0*, 1*, 2*} is a commutative group with respect to addition.


Multiplication table (mod 3)


×
0*
1*
2*
0*
0*
0*
0*
1*
0*
1*
2*
2*
0*
2*
1*

In {0*, 1*, 2*} this is a binary operation too. 0* has not inverse, 1* and 2* are inverses of themselves. 0* is absorbent. Associative and commutative laws hold too. Briefly, {0*, 1*, 2*} is a commutative group with respect to multiplication.

Distributive law holds. For instance, 2* × (1* + 2*) = 2* × 0* = 0* and (2* × 1*) + (2* × 2*) = 2* + 1* = 0*. Then  2* × (1* + 2*) = (2* × 1*) + (2* × 2*).

Addition and multiplication tables (mod 4)


{0*, 1*, 2*, 3*} is is a commutative group with respect to addition, as can be verified. In particular, the opposite of 3* is 1*; the opposite of 2* is 2*.

The multiplication is a binary operation in {0*, 1*, 2*, 3*}. 0* is absorbent. 1* is neutral. 2* has not inverse . Then, {0*, 1*, 2*, 3*} is not a group with respect to multiplication.

An anomalous situation like that in multiplication modulo 4 can be seen better in the following table for multiplication modulo 12.


×
0*
1*
2*
3*
4*
5*
6*
7*
8*
9*
10*
11*
0*
0*
0*
0*
0*
0*
0*
0*
0*
0*
0*
0*
0*
1*
0*
1*
2*
3*
4*
5*
6*
7*
8*
9*
10*
11*
2*
0*
2*
4*
6*
8*
10*
0*
2*
4*
6*
8*
10*
3*
0*
3*
6*
9*
0*
3*
6*
9*
0*
3*
6*
9*
4*
0*
4*
8*
0*
4*
8*
0*
4*
8*
0*
4*
8*
5*
0*
5*
10*
3*
8*
1*
6*
11*
4*
9*
2*
7*
6*
0*
6*
0*
6*
0*
6*
0*
6*
0*
6*
0*
6*
7*
0*
7*
2*
9*
4*
11*
6*
1*
8*
3*
10*
5*
8*
0*
8*
4*
0*
8*
4*
0*
8*
4*
0*
8*
4*
9*
0*
9*
6*
3*
0*
9*
6*
3*
0*
9*
6*
3*
10*
0*
10*
8*
6*
4*
2*
0*
10*
80*
6*
4*
2*
11*
0*
11*
10*
9*
8*
7*
6*
5*
4*
3*
2*
1*

Anomalous situations are for instance in  4* × 3* = 0* in which none of the factors is absorbent. Also in 6* × 3* = 6* where 3* is not the additive identical.

Generalization

In multiplication tables modulo 4 and modulo 12 are detected anomalous situations that seem to be linked with the factors of the considered modulo.

If the modulo is m (m ≥ 1) and the classes of the partition are 0*, 1*, …, (m – 1)*, it can be observed hat if h is a factor of m then there is an integer k such that h × k = m. As m* = 0*, h* ×  k* = 0*, where it is not necessary that at least one of the factors be equal to 0*.

If m is a prime number, its factors are, 1, m -1, -m. As m* = 0*, h* ×  k* = 0* , where none of the factors is 0*. In the equation h × k = m,  the possible values for  h, k are given in the following table:


h
k
1
m
m
1
-1
-m
-m
-1

If m is a prime number, h* ×  k* = 0* only if  any one of the factors h*, k*  is 0*; that is, if any of the factors h, k is 0 or m or -m.

Addition and multiplication tables modulo 7

In the following example, m = 7. The tables for addition and multiplication exhibit the properties which characterize a group.

Also, the in the set {0*, 1*, 2*, 3*, 4*, 5*, 6*} can be solved equations of the form a + x = b, ax = d, ax + d = f and systems of linear equations.




Using results of these tables, there can be solved equations like the following:

3* + x = 1*. It must to add the opposite of 3* to each side: 4* + (3* + x) = 4* + 1*. Use associative law to obtain 0* + x = 5*. Finally, x = 5*.

4*x = 5*. Multiply in both sides by the multiplicative inverse of 4*, which is 2*:
2*(4*x) = (2*)(5*); use associative law: (2*.4*).x = (2*)(5*); 1*x = 3*: x = 3*

3*x + 2* = 4*
(3*x + 2*) + 5* = 4* + 5*
3*x + (2* + 5*) = 2*
3*x = 2*
5*.(3*.x) = 5*.2*
(5*.3*).x = 3*
x = 3*

For the system of equations
3*x + 2*y = 1*
5*x + 4*y = 2*
Examine the determinant: (3*)(4*) – (5*)(2*) = 5* - 3* = 5* + 4* = 2*
The solution is:x = 0*, y = 4*/2* = (4*)(4*) = 2*.

For the system of equations
3*x + 2*y – 5*z = 4*
6*x - 4*y + 1*z = 2*
5*x + 3*y + 0*z = 1*

Kramer´s rule can be used as before.
In calculating determinants without the reduction modulo 7, it is obtained: det. = -189; detx = -60; dety = 37; detz = 130.
The correspondent values modulo 7 are: det. = 0*; detx = 3*; dety = 2*; detz = 4*.
As det. = 0* this system has not solution.

For the system of equations
3*x + 2*y – 5*z = 4*
6*x - 4*y + 1*z = 2*
5*x + 3*y - 6*z = 1*
det. = -45; detx = 60; dety = 145; detz = 130, That is,  det. = 4*; detx = 4*; dety = 5*; detz = 4*. 
From this it follows that 
x = 4*/4*; y = 5*/4*; z = 4*/4*. As the multiplicative inverse of 4* is 2*, 
x =(4*)(2*) = 1*; y = (5*)(2*) = 3*; z = (4*)(2*) = 1*.