Grade 12 - Exp. / Annals of congruence 10 exercises (100% corrected)

a
1. Unclassified financial years E.3142 Reminder : For two relative integers a and b , we say that a is congru-ent to b modulo 7 , and we write a b ( mod. 7) when there exists a relative integer k such that a = b +7 k . 1 This question constitutes an organized return of knowl-edge : a Let a , b , c and d be relative integers. Show that : If a b ( mod. 7) and c d ( mod. 7) then a · c b · d ( mod. 7) . b Deduce that : for a and b non-zero integers. If a b ( mod. 7) then for any natural number n : a n b n ( mod. 7) . 2 For a =2 then for a =3 , determine a non-zero natural number n such that : a n 1 ( mod. 7) . 3 Let a be a natural number not divisible by 7 . a Show that : a 6 1 ( mod. 7) . b We call order of a ( mod. 7) , and we denote by k , the smallest non-zero natural number such that a k 1 ( mod. 7) . Show that the remainder r of the Euclidean division of 6 by k verifies a r 1 ( mod. 7) . Deduce that k divides 6. What are the possible values of k ? c Give the order modulo 7 of all integers a between 2 and 6. 4 To any natural integer n , we associate the number: A n = 2 n + 3 n + 4 n + 5 n + 6 n . Show that : A 2006 6 ( mod. 7) E.3187 Given a natural number n 2 , we propose to investigate the existence of three natural numbers x , y and z such that : x 2 + y 2 + z 2 2 n 1 ( mod. 2 n ) Part A : Study of two special cases 1 In this question, it is assumed that n =2 . Show that 1 , 3 and 5 satisfy the previous question. 2 In this question, we assume n =3 . a Let m be a natural number. Copy and complete the table below giving the remainder r of the Euclidean di-vision of m by 8 and the remainder R of the Euclidean division of m 2 by 8. r 0 1 2 3 4 5 6 7 R b Can we find three natural numbers x , y and z such that : x 2 + y 2 + z 2 7 ( mod. 8) ? Part B: Study of the general case where n 3 Suppose there are three natural numbers x , y and z such that : x 2 + y 2 + z 2 2 n 1 ( mod. 2 n ) 1 Justify the fact that the three natural numbers x , y and z are all odd or that two of them are even. 2 It is assumed that x and y are even and that z is odd. We then pose : x = 2 q ; y = 2 r ; z = 2 s + 1 where q , r , s are natural numbers. a Show that : x 2 + y 2 + z 2 1 ( mod. 4) . b Deduce a contradiction. 3 Assume x , y , z are odd. a Prove that, for any non-zero natural number k , k 2 + k is divisible by 2 . b Deduce that : x 2 + y 2 + z 2 3 ( mod. 8) . c Conclude. https://chingmath.fr chapExoCorrec/3142 sacados/3142 chapExoCorrec/3187 sacados/3187
E.3240 Part A Let N be a natural, odd, non-prime integer. Assume N = a 2 b 2 a and b are two natural numbers. 1 Show that a and b do not have the same parity. 2 Show that N can be written as the product of two natural numbers p and q . 3 What is the parity of p and q ? Part B We admit that 250 507 is not prime. We propose to look for pairs of natural integers ( a ; b ) verifying the relation: ( E ) : a 2 250 507 = b 2 1 Let X be a natural number. a Give in a table, the possible remainders of X modulo 9 ; then those of X 2 modulo 9 . b Knowing that a 2 250 507= b 2 , determine the possible remainders modulo 9 of a 2 250 507 ; deduce the possi-ble remainders modulo 9 of a 2 . c Show that the possible remainders modulo 9 of a are 1 and 8 . 2 Justify that if the pair ( a ; b ) verifies the relation ( E ) , then a 501 . Show that there is no solution of the type (501 ; b ) . 3 It is assumed that the pair ( a ; b ) verifies the relation ( E ) . a Demonstrate that a is congruent to 503 or to 505 mod-ulo 9 . b Determine the smallest natural number k such that the pair (505+9 k ; b ) is a solution of ( E ) , then give the corresponding solution couple. Part C 1 Deduce from the previous parts a writing of 250 507 as a two-factor product. 2 Are the two factors prime to each other? 3 Is this writing unique? E.3319 1 a Determine according to the values of the non-zero natural number n the remainder in the Euclidean divi-sion by 9 of 7 n . b Then demonstrate that : 2005 2005 7 ( mod. 9) . 2 a Demonstrate that for any non-zero natural number n : 10 n 1 ( mod. 9) . b We denote by N a natural number written in base ten, we call S the sum of its digits. Prove the following relationship : N S ( mod. 9) . c Deduce that N is divisible by 9 if, and only if, S is divisible by 9 . 3 Assume A = 2005 2005 ; denote by: B the sum of the digits of A ; C the sum of the digits of B ; D the sum of the digits of C . a Demonstrate the following relationship : A D ( mod. 9) . b Knowing that 2005 < 10000 , demonstrate that A is written in decimal numeration with at most 8020 dig-its. Deduce that : B 72180 . c Demonstrate that : C 45 . d By studying the list of integers less than 45, determine a majorant of D smaller than 15. e Prove that : D =7 . E.3554 Throughout the exercise, n de-notes a non-zero natural number. 1 a For 1 n 6 , calculate the remainders of the Eu-clidean division of 3 n by 7 . b Demonstrate that, for any n , 3 n +6 3 n is divisible by 7 . Deduce that 3 n and 3 n +6 have the same remainder in division by 7. c Using the previous results, calculate the remainder of the Euclidean division of 3 1 000 by 7 . d In general, how can we calculate the remainder of the Euclidean division of 3 n by 7 , for any n ? e Deduce that, for any natural number n , 3 n is prime with 7 . 2 Let U n =1+3+3 2 + ··· +3 n 1 = n 1 i =0 3 i , n is a natural number greater than or equal to 2. a Show that if U n is divisible by 7 then 3 n 1 is divisible by 7. b Reciprocally, show that if 3 n 1 is divisible by 7 then U n is divisible by 7 . Deduce the values of n such that U n is divisible by 7 . https://chingmath.fr chapExoCorrec/3240 sacados/3240 chapExoCorrec/3319 sacados/3319 Antilles-Guyane Juin 2005 5 points chapExoCorrec/3554 sacados/3554
E.3572 We propose to determine the cou-ples ( n ; m ) of non-zero natural numbers verifying the rela-tion : 7 n 3 × 2 m = 1 ( F ) 1 We assume m 4 . Show that there are exactly two solution pairs. 2 It is now assumed that m 5 . a Show that if the couple ( n ; m ) verifies the relation ( F ) then : 7 n 1 ( mod. 32) . b By studying the remainders of division by 32 of powers of 7, show that if thecouple ( n ; m ) verifies the relation ( F ) then n is divisible by 4 . c Deduce that if the couple ( n ; m ) verifies the relation ( F ) then : 7 n 1 ( mod. 5) d For m 5 , are there pairs ( n ; m ) of natural numbers verifying the relation ( F ) ? 3 Conclude, i.e. determine the set of pairs of non-zero nat-ural integers verifying the relation ( F ) . E.3629 We call ( E ) the set of natural numbers that can be written in the form 9+ a 2 a is a non-zero natural number; for example: 10 = 9 + 1 2 ; 13 = 9 + 2 2 ; . . . In this exercise, we propose to study the existence of elements of ( E ) that are powers of 2 , 3 or 5 . 1 Study the equation of unknown a : a 2 + 9 = 2 n a N , n N , n 4 . a Show that if a exists, a is odd. b Reasoning modulo 4 , show that the proposed equation has no solution. 2 Study the equation with unknown a : a 2 + 9 = 3 n a N , n N , n 3 . a Show that if n 3 , 3 n is congruent to 1 or 3 modulo 4 . b Show that if a exists, it is even and deduce that neces-sarily n is even. c We pose n =2 p p is a natural number, 2 . Deduce from a factorization of 3 n a 2 , that the proposed equa-tion has no solution. 3 Study the equation with unknown a : a 2 + 9 = 5 n a N , n N , n 2 . a Reasoning modulo 3 , show that the equation has no solution if n is odd. b We pose n =2 p , drawing inspiration from 2 c show that there exists a single natural number a such that a 2 +9 is an integer power of 5 . E.5863 Part A Consider the function f from an algorithm its arguments take non-zero natural integers as values : Function f(a;b) c 0 As long as a>b c c+1 a a b End As long as Return (c;a) 1 Indicating the values of the variables taken successively when calling the function f with the values a =13 and b =4 . 2 How to interpret, according to the values a and b sup-plied as arguments, the value of the pair returned by the function f on a call. Part B For each letter of the alphabet, use the table below to assign an integer between 0 and 25 . a b c d e f g h i j k l m 0 1 2 3 4 5 6 7 8 9 10 11 12 n o p q r s t u v w x y z 13 14 15 16 17 18 19 20 21 22 23 24 25 A coding process is defined as follows : Step 1: To the letter we want to code, we associate the integer m corresponds in the table. Step 2: We calculate the remainder of the Euclidean di-vision of 9 m +5 by 26 and note it p . Step 3: To the integer p , we associate the corresponding letter in the table. 1 Code letter U . 2 Modify the function f of the algorithm of part A so that at a value of m entered by the user, it returns the value of p , calculated using the previous coding procedure. Part C 1 Find an integer x such that : 9 x 1 ( mod. 26) . 2 Then demonstrate the equivalence : 9 m +5 p ( mod. 26) m 3 p 15 ( mod. 26) 3 Then decode the letter B . https://chingmath.fr chapExoCorrec/3572 sacados/3572 chapExoCorrec/3629 sacados/3629 Asie Juin 2004 chapExoCorrec/5863 sacados/5863
E.5960 1 Show that, for any natural number n , 2 3 n 1 is a multi-ple of 7 (reasoning by recurrence may be used) . Deduce that 2 3 n +1 2 is a multiple of 7 and that 2 3 n +2 4 is a multiple of 7 . 2 Determine the remainders of the division by 7 of the pow-ers of 2 . 3 The number p being a natural number, consider the in-teger: Q p = 2 p + 2 2 p + 2 3 p a If p =3 n , what is the remainder of the divisioin of A p by 7 ? b Show that if p =3 n +1 then A p is divisible by 7 . c Study the case p =3 n +2 4 Consider the integers a and b written in the binary sys-tem : a = 1 001 001 000 ; b = 1 000 100 010 000 Check that these two numbers are numbers of the form A p . Are they divisible by 7 ? E.6795 Parts A and B can be treated independently. Part A In order to encrypt a message, affine encryption is used. Each letter of the alphabet is associated with an integer as shown in the table below : A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Let x be the integer associated with the letter to be coded. We determine the remainder y of the Euclidean division of 7 x +5 by 26 , then we deduce the letter associated with y (it is it that codes the original letter) . Example : M corresponding to x =12 7 × 12 + 5 = 89 Now 89 11 ( mod. 26) and 11 corresponding to the letter L , so the letter M is encoded by the letter L . 1 Code letter L . 2 a Let k be a relative integer. Show that if k 7 x ( mod. 26) then 15 · k x ( mod. 26) . b Demonstrate the reciprocal of the previous implica-tion. c Deduce that y 7 x +5 ( mod. 26) is equivalent to x 15 · y +3 ( mod. 26) . 3 Using the previous question decode the letter E . Part B Consider the sequences a n and b n such that a 0 and b 0 are integers between 0 and 25 inclusive and for any natural number n : a n +1 = 7 · a n + 5 b n +1 = 15 · b n + 3 Show that for any natural number n : a n = a 0 + 5 6 × 7 n 5 6 For the rest of the problem, we admit that for any natural number n : b n = b 0 + 3 14 × 15 n 3 14 Part C Decrypting a message encoded with an affine cipher poses no difficulty (we can test 312 pairs of possible coefficients) . To in-crease this decryption difficulty, we propose to use a key that will indicate for each letter the number of times applies the affine encryption of the A part to it. For example, to encode the word MATH with the key 2 2 5 6 , we apply ˇ2ı times the affine cipher to the letter M (this gives E ) , ˇ2ı times the cipher to the letter A , ˇ5ı times the cipher to the letter T and finally ˇ6ı times the cipher to the letter H . In this part, we’ll use the key 2 2 5 6 . Decode the letter Q in the word IY Y Q . https://chingmath.fr chapExoCorrec/5960 sacados/5960 Polynesie Juin 1999 chapExoCorrec/6795 sacados/6795