[PDF] 3 Congruence We read this as “a





Previous PDF Next PDF



Bascules Registres

Mémoires •Circuit asynchrone : les



3 Congruence

We read this as “a is congruent to b modulo (or mod) n. 2 mod 7 and 103 ? 3 mod 10. ... is based on the simple congruence 10 =? ?1 mod 11.



Untitled

10:00-11:30 AM Introduction to Women's Day the academic 10-ago. WEDNESDAY. MODULE 1-. INTROPM. 4 Week. Break. MODULE 1 -. INTROPM. 31-ago. 01-sept.





livre-algorithmes EXo7.pdf

Il ne reste plus qu'à calculer le reste modulo 10 (par exemple @x2GG2IHA272IH module de™im—l le calcul de un pour n = 11 donne 1000 décimales de 10 :.



Cours darithmétique

Exercice 5 Montrer que 2x + 3 est un multiple de 11 si et seulement si 5x + 2 l'est que 100 ? 0 (mod 4) ou que 10 ? ?1 (mod 11)



HRS 2012 Module 10 – Page 1 Final Version – Last Modified 11/05

5 nov. 2012 Final Version – Last Modified 11/05/12 ... Z267_RanValueMod10 "PREASSIGNED RANDOM VALUE - 2012 Mod 10" ... MODULE 10 SCENARIO ASSIGNMENT.





Handout 11: Module 10 Slide 197

https://www.nextgenscience.org/sites/default/files/Handout%2011-Module%2010%2C%20Culminating%20Task%20Debrief%20Questions.pdf



3 Congruence

We read this as “a is congruent to b modulo (or mod) n. 2 mod 7 and 103 ? 3 mod 10. ... is based on the simple congruence 10 =? ?1 mod 11.



[PDF] chapitre 3 : congruences et arithmétique modulaire

Congruences Définition 1 1 Soit m a b entiers On dit que a est congru à b modulo m si m divise a ? b (On dit aussi que “a et b sont congrus modulo m” 



[PDF] Les compteurs : (modulo 8 10 et 16) ? Les décompteurs - PDF4PRO

Avec 2 bascules on peut avoir jusqu'à 4 états différents : 00 01 10 et 11 ce qui permet de compter de 0 à 3 en binaire naturel Avec 3 bascules on a 8 états 



[PDF] Compteur œ Décompteur - D DUBOIS ESTIT

Remarque: Pour réaliser un compteur modulo 32 il faut 5 bascules J- K 00 01 11 10 Exemple 2: Réalisation d'un décompteur synchrone modulo 10 :



[PDF] FONCTIONS SEQUENTIELLES - AlloSchool

Les compteur 7490 (modulo 10) 7492 (modulo 12) et 7493 (modulo 16) sont des compteurs asynchrones (figure 13) composés de 4 bascules dont les connexions 



[PDF] Compteur Intégré

Compteur Modulo 100 Afin de réaliser un compteur supérieur au Modulo 10 on a besoins d'utiliser plus d'un circuit intégré 7490 Pour l'exemple d'un compteur 



[PDF] CHAPITRE III : LES COMPTEURS - Technologue pro

10 1 0 1 0 11 Compteur modulo 10 : (Avec front descendant) On à 2 3< 10 < 2 Décompteur asynchrone modulo 8 : (Avec front montant) On à 2



[PDF] Compteur/Décompteur Synchrone

1 2 Réalisation d'un circuit compteur/décompteur synchrone modulo 4 dans le code GRAY Réponse 1 : Un compteur binaire Modulo 6 (état initial (2)10) peut



[PDF] CHAPITRE 6 COMPTEURS SYNCHRONES

10 Réaliser la logique combinatoire de stimulation à partir des Ce sont des compteurs de type 9---0---9---0---9 : 10 états ? compteur à 11) 1



[PDF] Division modulo et clefs de contrôle

o`u le résultat est soit un nombre entre 0 et 9 soit le symbole x si le reste modulo 11 est 10 Vérifier que le code ci-dessus est correct Montrer que la clef 

:
V55.0106 Quantitative Reasoning: Computers, Number Theory and Cryptography

3 Congruence

Congruences are an important and useful tool for the study of divisibility. As we shall see, they are also critical in the art of cryptography. Denition 3.1If a and b are integers andn>0,wewrite abmodn to meannj(b-a). We read this as \a is congruent to b modulo (or mod) n.

For example, 298 mod 7, and 600 mod 15.

The notation is used because the properties of congruence \" are very similar to the properties of equality \=". The next few result make this clear. Theorem 3.2For any integers a and b, and positive integer n, we have:

1.aamodn.

2. Ifabmodnthenbamodn.

3. Ifabmodnandbcmodnthenacmodn

These results are classically called: 1. Reflexivity; 2. Symmetry; and 3. Transitivity. The proofisasfollows:

1.nj(a-a) since 0 is divisible by any integer. Thereforeaamodn.

2. Ifabmodnthennj(b-a). Therefore,nj(-1)(b-a)ornj(a-b). Therefore,

bamodn.

3. Ifabmodnandbcmodnthennj(b-a)andnj(c-b). Using the linear combination

theorem, we havenj(b-a+c-b)ornj(c-a). Thus,acmodn. The following result gives an equivalent way of looking at congruence. It replaces the con- gruence sign with an equality. Theorem 3.3Ifabmodnthenb=a+nqfor some integerq, and conversely. Proof:Ifabmodnthen by denitionnj(b-a). Therefore,b-a=nqfor someq.Thus b=a+nq.Converselyifb=a+nq,thenb-a=nqand sonj(b-a) and henceabmodn thenb=a+nq. 25
We will use often this theorem for calculations. Thus, we can write 15-2mod17by subtracting 17 from 15:-2=15+(-1)17. Similarly, 5212 mod 20. Just subtract 40 (2 times 20) from 52. A simple consequence is this: Any number is congruent modnto its remainder when divided byn.Forifa=nq+r, the above result shows thatarmodn. Thus for example, 23

2 mod 7 and 1033 mod 10. For this reason, the remainder of a numberawhen divided

bynis calledamodn. In EXCEL, as in many spreadsheets, this is written "MOD(a,n)." If you put the expression =MOD(23,7) in a cell, the readout will be simply 2. Try it! Another way of relating congruence to remainders is as follows. Theorem 3.4Ifabmodnthenaandbleave the same remainder when divided byn. Conversely ifaandbleave the same remainder when divided byn, thenabmodn. Proof:Supposeabmodn. Then by Theorem 3.3,b=a+nq.Ifaleaves the remainder rwhen divided byn,wehavea=nQ+rwith 0rTheorem 3.5Ifabmodnandcdmodnthen

1.a+cb+dmodn.

2.acbdmodn.

Proof:Writeb=a+nq

1 andd=c+nq 2 , using Theorem 3.3. Then adding equalities, we getb+d=a+c+nq 1 +nq 2 =a+c+n(q 1 +q 2 ). This shows thata+cb+dmodnby

Theorem 3.3.

Similarly, multiplying, we getbd=(a+nq

1 )(c+nq 2 )=ac+naq 2 +ncq 1 +n 2 q 1 q 2 .Thus, bd=ac+n(aq 2 +cq 1 +nq 1 q 2 ,andsoacbdmodn, again by Theorem 3.3.

Some Examples.

We have noted that 232 mod 7. We can square this (i.e. multiply this congruence by itself) to get 23 2

4 mod 7. What a nice way to nd the remainder of 23

2 when it is divided by 7! Multiply again by 232 mod 7, to get 23
3

81mod7

26
(This string of congruences is similar to a string of inequalities. It is read 23 3 is congruent to 8 which is congruent to 1 mod 7. By transitivity (Theorem 3.2) this implies that 23 3 is congruent to 1 mod 7.) Once we know that 23 3

1 mod 7, we can raise to the 5th power

(i.e. multiply this by itself 5 times) to get 23 15

1 mod 7. The application of a few theorems

and we have found remainders of huge numbers rather easily!

Example 3.6Find17

341
mod 5.As explained on page 26, this is the remainder when 17 341
is divided by 5.

Method.We have

172mod5

Squaring, we have

17 2

4-1mod5

Squaring again, we nd

17 4 1mod5 Now, 1 to any power is 1, so we raise this last congruence to the 85th power. Why 85? Just wait a moment to nd out. We then nd 17 340
1mod5

Finally, multiply by the rst congruence to obtain

17 341
2mod5

So the required remainder is 2.

The strategy is to nd some power of 17 to be 1 mod 5. Here, the power 4 worked. The we divided 4 into 341 to get a quotient 85, and this is the power we used on the congruence 17 4

1 mod 5. Note also the little trick of replacing 4 by-1 mod 5. This gives an easier

number to square.

Example 3.7Solve forx:5x1mod12.

One method is as follows. We know that gcd(5;12) = 1, so some linear combination of 5 and 12 is equal to 1. In Section 1 we had a general method for doing this, and we also had a spreadsheet approach. However, we can simply note by observation that

1=55+(-2)12

So both sides of this equality are congruent to each other mod 12. Hence

155+(-2)1255mod12

27
So one solution isx= 5. More generally, ifx5mod12then

5x251mod12

Here is another approach: Start with the equation 5x1 mod 12. If this were an equality, we would simply divide by 5 to getx=1=5. But we are in the realm of integers so this won't work. Instead wemultiplyby5toget25x5 mod 12 orx5 mod 12. Note that we multiplied by 5 to get a coecient of 1: 551 mod 12. The algebra of congruences is sometime referred to as \clock arithmetic." This example illustrates this. Imagine you are a mouse and that each day you travel clockwise around a clock, passing through 25 minutes on the clock. You start at 12 o'clock. Here is what you journey will look like:

StartDay 1Day 2Day 3Day 4Day 5

12 Midnight5 o'clock10 o'clock3 o'clock8 o'clock1 o'clock

Note that the transition from 10 o'clock was not to 15 o'clock, but (working mod 12) to

15 mod 12 or 3 o'clock. In terms of clocks, we asked when the mouse would land at the 1

o'clock spot on the clock. We can quickly nd when the mouse will land at 4 o`clock. The equation is

5x4mod12

Multiply by 5 to get 25x20 mod 12 or simplyx8 mod 12. It take 8 days. Example 3.8Same clock, dierent mouse. This mouse goes 23 minutes a day and starts at 12 o'clock. How many days before she reaches 9 minutes before 12? The appropriate congruence is 23x-9 mod 60. We'll use the gcd method and nd 1 as a linear combination of 23 and 60. A spreadsheet calculation gives

1=-1323 + 560

Taking this mod 60, we nd

23(-13)1mod60:

Multiply by-9toget

23(117)-9mod60:

But 11757 mod 60. And so the mouse must travel 57 days to reach 9 minutes before the hour. Note that 57-3 mod 60 so the mouse will take 3 days if she goes in the other direction. Up to now, all of our congruences have been modulo one xedn. The following results show how to change the modulus in certain situations. 28
Theorem 3.9Ifabmodn, andcis a positive integer, thencacbmodcn Proof:This is little more than a divisibility theorem. Sincenj(b-a), we havecnjc(b-a) orcnj(cb-ca),andthisistheresult. The converse is also valid. Thus, ifcacbmodcnwithc>0thenabmodn. These results can be stated: A congruence can by multiplied through (including the modulus) and similarly, it can be divided by a common divisor. Finally, we can mention that ifabmodnand ifdjn,thenabmodd.Weleavethe prooftothereader. We can now tackle the general question of solving a linear congruenceaxbmodn. We will nd when this congruence has a solution, and how many solutions it has. We rst consider the case gcd(a;n) = 1. (In the examples above, this was the situation.) The following theorem answers this question and also shows how to nd the solution. Theorem 3.10Ifgcd(a;n)=1, then the congruenceaxbmodnhas a solutionx=c. In this case, the general solution of the congruence is given byxcmodn. Proof:Sinceaandnare relative prime, we can express 1 as a linear combination of them: ar+ns=1 Multiply this bybto getabr+nbs=b.Takethismodnto get abr+nbsbmodnorabrbmodn Thusc=bris a solution of the congruenceaxbmodn. In general, ifxcmodnwe haveaxacbmodn. We now claim thatanysolution ofaxbmodnis necessarily congruent tocmodn.For supposeaxbmodn.Wealreadyknowthatacbmodn. Subtract to get ax-ac0modnora(x-c)0modn But this means thatnja(x-br). But sinceaandnare relatively prime, this implies that nj(x-c)andxcmodn. This completes the proof. An important special case occurs whennis a primep. Corollary 3.11Ifpis a prime, the congruenceaxbmodphas a unique solution xmodpprovideda60modp. 29
The reason we single this case out is that this result is almost exactly like the similar result in high school algebra: The equationax=bhas a unique solution provideda6=0.Weshall soon delve further into this analogy. The reason this is true is that if an integerais not divisible byp, it is relatively prime to p. Thus, ifa60modp,thenaandpare relatively prime. During the course of the proof of theorem 3.10 , we proved the following useful result. Theorem 3.12Ifabacmodnand ifgcd(a;n)=1, then we havebcmodn. In short, we can cancel the factorafrom both sides of the congruence so long as gcd(a;n)=1. In algebra, we learn that we \can divide an equationax=aybya"ifa6=0.Herewecan \cancel the factorafrom both sides of the congruenceaxaymodn"ifaandnare relatively prime. This theorem is sometimes called the cancelation law for congruences. Now suppose that we wish to solve the congruenceaxbmodnwhered=gcd(a;n)>1. For example, consider the congruence 18x12 mod 24. Hered=gcd(18;24) = 6. We can divide this congruence by 6 to get the equivalent 15 congruence 3x2mod4.Soweendup with the congruence 3x2 mod 4, in which gcd(3;4) = 1 and which has general solution x2 mod 4. So this is the solution of the original congruence 18x12 mod 24. This worked because the gcd also divided the constant term 12. If it didn't there would be no solution. This is the content of the following theorem which generalizes this problem. Theorem 3.13Given the congruenceaxbmodn.Letd=gcd(a;n). Then

1. Ifddoes not divideb, the congruence has no solution.

2. Ifdjbthen the congruence is equivalent to the congruence(a=d)x(b=d)mod(n=d)

which has a unique solution modn=d. Proof:Suppose there were a solution ofaxbmodn. Then we would haveaxbmodd. Buta0moddsincedja.Sowewouldhave0bmoddordjb. So a necessary condition for a solution is thatdjb. This prove part 1. As for part 2, divide the entire congruence byd as in the above example. The reduced congruence has a unique solution modn=dsincea=d andn=dare relatively prime.

Algebra on a Small Scale.

Corollary 3.11 has an interesting interpretation{ifpis a prime and we work modp,the integers modpbehave algebraically like the real numbers. In the real number system the equationax=bhas a solutionx=b=a=ba -1 wherea -1 =1=ais the reciprocal ofaand is the solution of the equationax= 1. What is the situation if we try to do this modp? 15

It is equivalent, since we can multiply the resulting congruence by 6 to get back the original congruence.

30

Example 3.14What is the value of5

-1 mod 7? Method.It is required to nd the solution of 5x1 mod 7. We can do this using the method of Example 3. Since

35+(-2)7 = 1

be observation, we have

351mod7

So 5 -1

3 mod 7, or simply 5

-1 = 3 mod 7, where equality if used because it is understood that we are working mod 7. Since we are working mod 7, there are only 7 dierent numbers mod 7, namely the remainders

0 through 6 when a number is divided by 7. So the algebra of numbers mod 7 is a strictly

nite algebra. Here is the multiplication table for these numbers mod 7. We omit 0.

123456

1123456

2

246135

3

362514

4

415263

5

531642

6

654321

Multiplication Table mod 7

The number 1 is underlined in the body of the table. The row and column where a 1 appears are inverses, because the product is 1. By observation, we can see that 2 and 4 are inverses mod 7, as are 3 and 5. Both 1 and 6 are self inverses. (Note that 6 =-1 mod 7, and so it is not surprising that 6 is its own inverse: (-1) -1 =-1. Let us go one step further with the analogy with ordinary algebra.

Example 3.15Solve the congruence8x13 mod 29.

First method.In analogy with algebra we expect the solutionx138 -1 mod 29. So we rst compute 8 -1 mod 29. We express 1 as a linear combination of 8 and 29 by the method given in section 1, or using a spreadsheet. A possible result is

1=118-329

Taking this mod 29, we nd 8

-1

11 mod 29. So, solving forx, we nd

x138 -1

1311 = 14327 mod 29

31

Second method.Using fractions, we write

x13

8mod 29

Ordinarily, we cancel factors in the numerator and denominator. We can't do this here, but we canmultiplynumerator and denominator by the same (non-zero) number. We choose 4, because this gets the denominator close to the modulus 29, making the quotient simpler. Thus x13

85232233mod 29

Now do it again, using a factor 10:

23

32303027127 mod 29

This is the same answer, of course. Here's the way the full solution works in one line: x13

852322332303027127 mod 29

Third method.When we writex13

8mod 29, we can cancel at least one factor 2, if we

add29 to the numerator. Thus, x13

842821450425254227127 mod 29

We don't necessarily recommend this method, but we use it to illustrate that there are often many ways to attack a problem and to show the inner consistency of our small scale arithmetic. Divisibility Tricks.The number 345,546,711 is divisible by 3. In fact it is divisible by 9. We can discover this easily using the following trick, which we shall prove. A number is congruent mod9to the sum of the digits in that number.

Here we have

In fact, using this result, it is not even necessary to nd the sum. There are short cuts. For example 3 + 4 + 5 = 12 which is congruent toitsdigit sum 1 + 2 = 3 mod 9. Continuing, add 5 + 5 = 101, so we add 1 to 3 to get 4. And so on. This is a lot easier to do than to explain. Briefly, any time you get a two digit answer, replace it by its digit sum.quotesdbs_dbs11.pdfusesText_17
[PDF] calcul modulo 97

[PDF] personnage du livre moi boy

[PDF] escadrille 80 questionnaire de lecture

[PDF] controle de lecture moi boy

[PDF] moi boy roald dahl pdf entier

[PDF] moi boy roald dahl résumé

[PDF] moi boy roald dahl pdf gratuit

[PDF] séquence pluriel des noms ce2

[PDF] no et moi telecharger pdf

[PDF] leçon pluriel des noms ce2 lutin bazar

[PDF] no et moi avis argumenté

[PDF] séquence pluriel des noms ce1

[PDF] effet doppler formules

[PDF] télécharger no et moi pdf

[PDF] effet doppler formule longueur d'onde