Grade 12 - Exp. / Annals on PGCD 35 exercises (including 32 corrected)

a
1. PGCD, property and congruence E.5284 1 a Show that 3 n 3 11 n +48 is divisible by n +3 for any natural number n . b Show that 3 n 2 9 n +16 is a non-zero natural number for any natural number n . 2 Show that, for all non-zero natural numbers a , b and c , the following equality is true : pgcd ( a ; b ) = pgcd ( b · c a ; b ) 3 Show that, for any natural number n , greater than or equal to 2 , the equality is true : pgcd (3 n 3 11 n ; n +3)= pgcd (48 ; n +3) 4 a Determine the set of natural integer divisors of 48 . b Deduce the set of natural integers n such that 3 n 3 11 n n +3 is a natural integer. E.5285 The sequences of natural numbers x n and y n are defined by: x 0 = 3 ; x n +1 = 2 · x n 1 y 0 = 1 ; y n +1 = 2 · y n + 3 1 Demonstrate by recurrence that for any integer n N : x n = 2 n +1 + 1 2 a Calculate the PGCD of x 8 and x 9 , then that of x 2002 and x 2003 . What can we deduce from this for x 8 and x 9 on the one hand, and for x 2002 and x 2003 on the other? are b x n and x n +1 prime to each other for any natural num-ber n ? 3 a Show that for any natural number n : 2 · x n y n = 5 b Express y n in terms of n . c Using congruences modulo 5 , study according to the values of the natural number p the remainder of the Euclidean division of 2 p by 5 . d Note d n the PGCD of x n and y n for any natural num-ber n . Show that we have d n =1 or d n =5 ; deduce the set of natural numbers n such that x n and y n are prime to each other. E.3320 Consider the sequence u n of natural numbers defined by: u 0 = 14 u n +1 = 5 u n 6 for any natural number n 1 Calculate u 1 , u 2 , u 3 and u 4 . What conjecture can be made about the last two digits of u n ? 2 Show that, for any natural number n : u n +2 u n ( mod. 4) . Deduce that for any natural number k : u 2 k 2 ( mod. 4) et u 2 k +1 0 ( mod. 4) 3 a Show by recurrence that, for any integer n N : 2 · u n = 5 n +2 + 3 . b Deduce that, for any natural number n : 2 u n 28 ( mod. 100) . 4 Determine the last two digits of the decimal writing of u n according to the values of n . 5 Show that the PGCD of two consecutive terms of the sequence u n is constant. Specify its value. E.3719 Part A Let 1 999 be a prime integer. Determine the set of pairs ( a ; b ) of natural integers admitting for sum 11 994 and for PGCD 1 999 . Part B Consider the equation ( E ) of unknown n belonging to N : ( E ): n 2 S · n +11 994=0 S is a natural number. We are interested in values of S such that ( E ) admits two solutions in N . 1 Can we determine an integer S such that 3 is a solution of ( E ) ? If so, specify the second solution. 2 Can we determine an integer S such that 5 is a solution of ( E ) ? 3 Show that any integer n solution of ( E ) is a divisor of 11 994 . Deduce all possible values of S such that ( E ) admits two integer solutions. Part C How would one show that 1 999 is a prime integer? Specify the reasoning used? The list of all prime integers less than 100 is specified below : 2 ; 3 ; 5 ; 7 ; 11 ; 13 ; 17 ; 19 23 ; 31 ; 37 ; 41 ; 43 ; 47 ; 53 ; 59 61 ; 67 ; 71 ; 73 ; 79 ; 83 ; 89 ; 97 https://chingmath.fr chapExoCorrec/5284 sacados/5284 Asie Juin 2003 4 points chapExoCorrec/5285 sacados/5285 Liban Mai 2003 5 points chapExoCorrec/3320 sacados/3320 chapExoCorrec/3719 sacados/3719
E.3246 In this exercise, we can use the following proposition : Proposition: ˇ Given two natural numbers, a and b , both non-zero, if pgcd ( a ; b )=1 then pgcd ( a 2 ; b 2 )=1 ı A sequence ( S n ) is defined for n> 0 by: S n = n p =1 p 3 . We propose to calculate, for any non-zero natural number n , the greatest common divisor of S n and S n +1 . 1 Demonstrate that, for any n> 0 , we have : S n = n ( n +1) 2 2 . 2 Study the case where n is even. Let k be the non-zero natural number such that n =2 k . a Prove that : pgcd ( S 2 k ; S 2 k +1 ) = (2 k + 1) 2 · pgcd ( k 2 ; ( k +1) 2 ) . b Calculate: pgcd ( k ; k +1) . c Calculate: pgcd ( S 2 k ; S 2 k +1 ) . 3 Study the case where n is odd. Let k be the non-zero natural number such that n =2 k +1 . a Prove that the integers 2 k +1 and 2 k +3 are coprime. b Calculate: pgcd ( S 2 k +1 ; S 2 k +2 ) . 4 Deduce from the previous questions that there is a unique value of n , which we will determine, for which S n and S n +1 are coprime. 2. Bezout’s theorem E.3226 In this exercise, a and b denote strictly positive integers. 1 a Show that if there are two integers u and v such that a · u + b · v =1 then the integers a and b are prime to each other. b Deduce that if ( a 2 + a · b b 2 ) 2 =1 , then a and b are prime to each other. 2 We propose to determine the pairs of strictly positive in-tegers ( a ; b ) such that ( a 2 + a · b b 2 ) 2 =1 . Such a pair will be called a solution. a Determine a when : a = b . b Verify that (1 ; 1) , (2 ; 3) and (5 ; 8) are three particular solutions. c Show that if ( a ; b ) is a solution and if a<b , then : a 2 b 2 < 0 . 3 a Show that if ( x ; y ) is a different solution from (1 ; 1) then ( y x ; x ) and ( y ; y + x ) are also solutions. b Deduce from 2 b three new solutions. 4 Consider the sequence of strictly positive integers a n n defined by a 0 = a 1 =1 and for any integer n , n 0 : a n +2 = a n +1 + a n . Show that for any integer n 0 , ( a n ; a n +1 ) is solution. Deduce that the integers a n and a n +1 are prime to each other. E.3741 1 Monstrate that, for any non-zero natural number k and for any natural number x : ( x 1) · 1 + x + x 2 + · · · + x k 1 = x k 1 Throughout the rest of the exercise, consider an integer a superior or equal to 2 . 2 a So n a non-zero natural number and d un positive divisor of n : n = d · k Show that a d 1 est a divisor of a n 1 . b Deduce from the previous question that 2 2004 1 est divisible by 7 , by 63 puis by 9 . 3 Let m and n be two non-zero natural numbers and d their pgcd . a We define m and n by m = d · m and n = d · n . Apply-ing Bézout’s theorem to m and n , show that there exist relative integers u and v such that : m · u n · v = d . b We assume that u and v are strictly positive. Show that : a m · u 1 a n · v 1 · a d = a d 1 Then show that a d 1 is the pgcd of : a m · u 1 et a n · v 1 . c Using the previous result, calculate the GCD of : 2 63 1 and 2 60 1 3. Gauss’s theorem E.3630 Let ( E ) be the set of natural in-tegers written, in base 10, in the form abba a is a digit greater than or equal to 2 and b is any digit. Examples of ( E ) elements : 2002 ; 3773 ; 9119 . Number of ( E ) elements having 11 as smallest factor premier 1 a Decompose 1001 into a product of prime factors. b Show that any element of ( E ) is divisible by 11 . 2 a What is the number of elements in ( E ) ? b What is the number of elements of ( E ) that are neither divisible by 2 nor by 5 ? 3 either n an element of ( E ) written in the form abba . a Show that : ˇ n is divisible by 3 is equivalent to a + b is divisible by 3 ı b Show that : https://chingmath.fr chapExoCorrec/3246 sacados/3246 chapExoCorrec/3226 sacados/3226 chapExoCorrec/3741 sacados/3741 France Juin 2004 5 points chapExoCorrec/3630 sacados/3630
ˇ n is divisible by 7 is equivalent to b is divisible by 7 ı 4 Deduce from the previous questions the number of ele-ments of ( E ) that admit 11 as the smallest prime factor. E.3837 Let A be the set of natural integers in the interval 1 ; 46] . 1 Consider the equation : ( E ) : 23 · x + 47 · y = 1 x and y are relative integers. a Give a particular solution x 0 ; y 0 of ( E ) . b Determine the set of couples ( x ; y ) solutions of ( E ) . c Deduce that there exists a single integer x belonging to A such that : 23 · x 1 ( mod. 47) 2 Let a and b be two relative integers. a Show that if a · b 0 ( mod. 47) then : a 0 ( mod. 47) or b 0 ( mod. 47) b Deduce that if a 2 1 ( mod. 47) then : a 1 ( mod. 47) ; a 1 ( mod. 47) 3 a Show that for any integer p of A , there exists a rel-ative integer q such that : p × q 1 ( mod. 47) . For the rest, we admit that for any integer p of A , there exists a unique integer, denoted inv ( p ) , belonging to A such that : p × inv ( p ) 1 ( mod. 47) For example: inv (1) = 1 car 1 × 1 1 ( mod. 47) inv (2) = 24 car 2 × 24 1 ( mod. 47) inv (3) = 16 car 3 × 16 1 ( mod. 47) b What are the integers p of A that verify: p = inv ( p ) c Show that : 46! 1 ( mod. 47) 4. Diophantine equation E.3198 Part A : Course question 1 State Bézout’s theorem and Gauss’s theorem. 2 Demonstrate Gauss’s theorem using Bézout’s theorem. Part B This involves solving in Z the system : ( S ) n 13 ( mod. 19) n 6 ( mod. 12) 1 Demonstrate that there exists a pair ( u ; v ) of relative in-tegers such that : 19 u + 12 v = 1 (This question does not ask for an example of such a cou-ple) Verify that the number N =13 × 12 v +6 × 19 u is a solution of ( S ) for such a couple. 2 a Let n 0 be a solution of ( S ) , check that the system ( S ) is equivalent to : n n 0 ( mod. 19) n n 0 ( mod. 12) b Demonstrate that the system n n 0 ( mod. 19) n n 0 ( mod. 12) equals : n n 0 ( mod. 12 × 19) . 3 a Find a couple ( u ; v ) solution of the equation 19 u +12 v =1 and calculate the corresponding N value. b Determine the set of solutions of ( S ) (you may use question 2 b ) . 4 A natural number n is such that when divided by 12 the remainder is 6 and when divided by 19 the remainder is 13 . We divide n by 228=12 × 19 . What is the remainder r of this division? E.3258 Recall that 2 003 is a prime inte-ger. 1 a Determine two relative integers u and v such that : 123 u + 2003 v = 1 b Deduce a relative integer k 0 such that : 123 k 0 1 ( mod. 2003) c Show that, for any relative integer x , 123 x 456 ( mod. 2003) if, and only if, x 456 k 0 ( mod. 2003) d Show that there exists a unique integer n such that : 1 n 2002 et 123 n 456 ( mod. 2003) 2 Let a be an integer such that : 1 a 2002 a Determine : pgcd ( a ; 2003) Deduce that there exists an integer m such that : a · m 1 ( mod. 2003) b Show that, for any integer b , there exists a single inte-ger x such that : 0 x 2 002 ; a · x b ( mod. 2003) https://chingmath.fr chapExoCorrec/3837 sacados/3837 chapExoCorrec/3198 sacados/3198 chapExoCorrec/3258 sacados/3258 France Septembre 2003 5 points
E.3256 Let be the equation (1) of rational unknown x : 78 x 3 + u · x 2 + v · x 14 = 0 u and v are relative integers. 1 It is assumed in this question that 14 39 is a solution to the equation (1) . a Prove that the integers u and v are related by the re-lation: 14 u + 39 v = 1129 b Use Euclid’s algorithm, detailing the various steps in the calculation, to find a pair ( x ; y ) of relative integers verifying the equation : 14 x + 39 y = 1 Verify that the couple ( 25 ; 9) is a solution to this equation. c Deduce a couple ( u 0 ; v 0 ) particular solution of the equation : 14 u + 39 v = 1129 Give the general solution of this equation, i.e. the set of pairs ( u ; v ) of relative integers that verify it. d Determine, among the preceding couples ( u ; v ) , the one for which the integer u is the smallest possible natural number. 2 a Decompose 78 and 14 into prime factors. Deduce, in N , the set of divisors of 78 and the set of divisors of 14. b Let P Q be a rational solution of the equation (1) of unknown x : 78 x 3 + ux 2 + vx 14 = 0 u and v are relative integers. Show that if P and Q are relative integers prime to each other, then P divides 14 and Q divides 78. c Deduce the number of rationals, not integers, that can be solutions of the equation (1) and write, among these rationals, the set of those that are positive. E.3477 The parts A and B are indepen-dent. Part A Consider the equation ( E ): 7 x 6 y =1 x and y are natural numbers. 1 Give a particular solution of the equation ( E ) . 2 Determine the set of pairs of natural numbers that are solutions of the equation ( E ) . Part B In this part, we propose to determine the couples ( n ; m ) of non-zero natural numbers verifying the relation: 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 the division by 32 of the powers of 7 , show that if the pair ( 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.3905 Questions 1 and 2 are inde-pendent. Let n be a non-zero natural number. 1 Consider the equation noted ( E ) : 3 x + 7 y = 10 2 n x and y are relative integers. a Determine a pair ( u ; v ) of relative integers such that : 3 · u + 7 · v = 1 Deduce a particular solution ( x 0 ; y 0 ) of the equation ( E ) . b Determine the set of pairs of relative integers ( x ; y ) solutions of ( E ) . 2 Consider the equation noted ( G ) : 3 x 2 + 7 y 2 = 10 2 n x and y are relative integers. a Show that : 100 2 ( mod. 7) . Show that if ( x ; y ) is a solution of ( G ) then : 3 x 2 2 n ( mod. 7) . b Reproduce and complete the following table : Reste of the division euclidean of x by 7 0 1 2 3 4 5 6 Reste of the division euclidienne of 3 x 2 by 7 c Show that 2 n is congruent to 1 , 2 or 4 modulo 7 . Deduce that the equation ( G ) admits no solution. https://chingmath.fr chapExoCorrec/3256 sacados/3256 Antilles-Guyane Septembre 2003 4 points chapExoCorrec/3477 sacados/3477 chapExoCorrec/3905 sacados/3905
E.5432 Part A - Organized restitu-tion of knowledge Prerequisites: Bézout’s theorem and Gauss’s theorem are recalled below. Bézout’s theorem: Two relative integers a and b are prime to each other if, and only if, there exists a pair ( u ; v ) of relative integers satisfying a · u + b · v =1 . Gauss’s theorem: Let a , b , and c be relative integers. If a divides the product b · c and if a and b are relatively prime, then a divides c 1 Using Bézout’s theorem, prove Gauss’s theorem. 2 Let p and q be two natural integers such that p and q are relatively prime. Deduce from Gauss’s theorem that if a is a relative in-teger such that a 0 ( mod. p ) and a 0 ( mod. q ) , then a 0 ( mod. pq ) Part B We propose to determine the set S of relative integers n sat-isfying the system : n 9 ( mod. 17) n 3 ( mod. 5) 1 Search for an element of S . We denote by ( u ; v ) a pair of relative integers such that : 17 · u +5 · v =1 a Justify the existence of such a pair ( u ; v ) . b We set : n 0 =3 × 17 u +9 × 5 v Prove that n 0 belongs to S . c Give an example of an integer n 0 belonging to S . 2 Characterization of the elements of S . a Let n be a relative integer belonging to S . Prove that : n n 0 0 ( mod. 85) . b Deduce that a relative integer n belongs to S if, and only if, it can be written in the form n =43+85 k where k is a relative integer. 3 Application. Zoe knows she has between 300 and 400 tokens. If she makes piles of 17 tokens, she has 9 left. If she makes piles of 5 tokens, she has 3 left. How many tokens does she have? E.3322 1 a What is the remainder of the Euclidean division of 6 10 by 11 ? Justify. b What is the remainder of the Euclidean division of 6 4 by 5? Justify. c Deduce the two congruences : 6 40 1 ( mod. 11) ; 6 40 1 ( mod. 5) . d Show that 6 40 1 is divisible by 55 . 2 In this question x and y denote relative integers. a Show that the equation : ( E ): 65 · x 40 · y =1 has no solution. b Show that the equation : ( E ): 17 · x 40 · y =1 admits at least one solution. c Using Euclid’s algorithm, determine a pair of relative integers that are solutions of the equation ( E ) . d Solve the equation ( E ) . Deduce that there exists a unique natural x 0 less than 40 such that : 17 x 0 1 ( mod. 40) 3 For any natural number a , show that : Si a 17 b ( mod. 55) a 40 1 ( mod. 55) then b 33 a ( mod. 55) 5. Coding problem E.5456 Part A : Organized knowledge transfer Let a , b , c , d be relative integers and n a non-zero natural number. Show that if a b ( mod. n ) and if c d ( mod. n ) then ac bd ( mod. n ) . Part B: Inverse of 23 modulo 26 Consider the equation : ( E ): 23 x 26 y =1 x and y denote two relative integers. 1 Verify that the pair ( 9 ; 8) is a solution of equation ( E ) . 2 Then solve the equation ( E ) . 3 Deduce an integer a such that : 0 a 25 ; 23 a 1 ( mod. 26) Part C : Hill encryption We want to encode a two-letter word according to the follow-ing procedure : Step 1 Each letter of the word is replaced by an integer using the table below : 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 We obtain a pair of integers ( x 1 ; x 2 ) x 1 corresponds to the first letter of the word and x 2 corresponds to the second letter of the word. Step 2 ( x 1 ; x 2 ) is transformed into ( y 1 ; y 2 ) such that : ( S 1 ) : y 1 11 x 1 + 3 x 2 ( mod. 26) y 2 7 x 1 + 4 x 2 ( mod. 26) with 0 y 1 25 and 0 y 2 25 Step 3 ( y 1 ; y 2 ) is transformed into a two-letter word us-ing the mapping table given in step 1 . Example : https://chingmath.fr chapExoCorrec/5432 sacados/5432 chapExoCorrec/3322 sacados/3322 chapExoCorrec/5456 sacados/5456
TE  mot en clair étape 1 = (19 ; 4) étape 2 = (13 ; 19) étape 3 = NT  mot co 1 Code the word ST . 2 Now we want to determine the decoding procedure : a Show that any pair ( x 1 ; x 2 ) verifying the equations of the system ( S 1 ) , verifies the equations of the system : ( S 2 ) : 23 x 1 4 y 1 + 23 y 2 ( mod. 26) 23 x 2 19 y 1 + 11 y 2 ( mod. 26) b Using part B , show that any pair ( x 1 ; x 2 ) verifying the equations of the system ( S 2 ) , verifies the equations of the system : ( S 3 ) : x 1 16 y 1 + y 2 ( mod. 26) x 2 11 y 1 + 5 y 2 ( mod. 26) c Show that any pair ( x 1 ; x 2 ) verifying the equations of the system ( S 3 ) , verifies the equations of the system ( S 1 ) . d Decode word Y J E.3324 Part A Consider the equation ( E ): 11 x 26 y =1 , x and y denote two relative integers. 1 Check that the torque ( 7 ; 3) is solution of ( E ) . 2 Then solve equation ( E ) . 3 Deduce the pair of relative integers ( u ; v ) solution of ( E ) such that : 0 u 25 . Part B Each letter of the alphabet is treated as an integer, as shown in the table below : 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 We ˇ code ı any integer x between 0 and 25 as follows : We calculate 11 x +8 . We calculate the remainder of the Euclidean division of 11 x +8 by 26, which we call y . x is then ˇ co ı by y . So, for example, the letter L is equated with the integer 11 ; 11 × 11+8=129 or 129 25 ( mod. 26) ; 25 is the remainder of the Euclidean division of 129 by 26. The integer 25 corre-sponds to the letter Z . The letter L is therefore encoded by the letter Z . 1 Code letter W . 2 The aim of this question is to determine the decoding function. a Show that for all relative integers x and j , we have : 11 · x j ( mod. 26) is equivalent to x 19 · j ( mod. 26) . b Deduce a decoding procedure. c Decode the letter W . 6. Arithmetic and geometry E.3264 1 a Let p be a natural number. Show that one of the three integers p , p +10 and p +20 , and only one is di-visible by 3. b The natural integers a , b and c are, in this order, the first three terms of an arithmetic sequence of reason 10. Determine these three integers knowing that they are prime. 2 Let E be the set of triplets of relative integers ( u ; v ; w ) such that : 3 · u + 13 · v + 23 · w = 0 a Show that for such a triplet: v w ( mod. 3) b We pose v =3 k + r and w =3 k + r k , k and r are relative integers and 0 r 2 . Show that the elements of E are of the form : 13 k 23 k 12 r ; 3 k + r ; 3 k + r c Space is referred to an orthonormal frame of refer-ence of origin O and let P be the plane of equation 3 x +13 y +23 z =0 . Determine the set of points M with coordinates ( x ; y ; z ) relative integers belonging to the plane P and located inside the cube of center O , of side 5 and whose edges are parallel to the axes. https://chingmath.fr chapExoCorrec/3324 sacados/3324 Antilles-Guyane Juin 2008 5 points chapExoCorrec/3264 sacados/3264
-123456789I-123456789JO E.3325 Let a and b be two non-zero nat-ural numbers ; the set of points in the plane is called ˇ réseau ı associated with the integers a and b , provided with an or-thonormal reference frame, whose coordinates ( x ; y ) are inte-gers satisfying the conditions : 0 x a ; 0 y b We note R a,b this network. The aim of the exercise is to relate certain arithmetic prop-erties of the integers x and y to geometric properties of the corresponding points on the network. A - Graphical representation of some sets In this question, answers are expected without explanation, in the form of a graph to be duly completed on the attached sheet to be returned with the copy. Graphically represent the points M ( x ; y ) of the network R 8.8 verifying: 1 x 2 ( mod. 3) and y 1 ( mod. 3) , on graph 1 of the appendix sheet. 2 x + y 1 ( mod. 3) , on graph 2 of the appendix sheet. 3 x y ( mod. 3) , on graph 3 of the appendix sheet. B - Solving an equation Consider the equation ( E ): 7 x 4 y =1 , where the un-knowns x and y are relative integers. 1 Determine a pair of relative integers ( x 0 ; y 0 ) solution of the equation ( E ) . 2 Determine the set of pairs of relative integers solutions of the equation ( E ) . 3 Show that the equation ( E ) admits a unique solution ( x ; y ) for which the corresponding point M ( x ; y ) belongs to the lattice R 4.7 . C - A property of points located on the diagonal of the network. If a and b are two non-zero natural numbers, consider the diagonal [ OA ] of the R anetwork,b with O (0 ; 0) and A ( a ; b ) . 1 Show that the points of the segment [ OA ] are character-ized by the conditions : 0 x a ; 0 y b ; a · y = b · x 2 Show that if a and b are prime to each other, then the points O and A are the only points on the segment [ OA ] belonging to the network R a,b . 3 Show that if a and b are not prime to each other, then the segment [ OA ] contains at least one other network point. (Consider the gcd d of the integers a and b and set a = d · a and b = d · b ) Graphique 1 Graphique 2 Graphique 3 https://chingmath.fr chapExoCorrec/3325 sacados/3325 Asie Juin 2008 5 points -123456789I-123456789JO -123456789I-123456789JO -123456789I-123456789JO
7. Arithmetic and sequences E.3254 Consider the sequence u n of natural numbers defined by: u 0 = 14 u n +1 = 5 u n 6 for any natural number n 1 Calculate u 1 , u 2 , u 3 and u 4 . What conjecture can be made about the last two digits of u n ? 2 Show that, for any natural number n : u n +2 u n ( mod. 4) . Deduce that for any natural number k : u 2 k 2 ( mod. 4) et u 2 k +1 0 ( mod. 4) . 3 a Show by recurrence that, for any n N : 2 u n = 5 n +2 + 3 . b Deduce that, for any natural number n : 2 u n 28 ( mod. 100) . 4 Determine the last two digits of the decimal writing of u n according to the values of n . 5 Show that the PGCD of two consecutive terms of the sequence ( u n ) is constant. Specify its value. E.3574 1 Calculate the PGCD of 4 5 1 and 4 6 1 . Let u be the numerical sequence defined by: u 0 = 0 u 1 = 1 u n +2 = 5 · u n +1 4 · u n for any natural number n 2 Calculate the terms u 2 , u 3 and u 4 of the sequence u . 3 a Show that the sequence u verifies, for any natural number n : u n +1 = 4 · u n + 1 b Show that, for any natural number n , u n is a natural number. c Deduce, for any natural number n , the PGCD of u n and u n +1 . 4 Let v be the sequence defined for any anturel integer n by: v n = u n + 1 3 a Show that v is a geometric sequence whose reason and first term v 0 will be determined. b Express v n then u n as a function of n . c Determine, for any natural number n , the PGCD of 4 n +1 1 and of 4 n 1 . E.6252 Consider the function f of an algorithm taking as argument two natural integers A and B verifying A < B : Function f(A,B) D B A As long as D>0 B of A A from D If B>A Then D from B A Otherwise D from A B End If End As long as Return A 1 We call the function f with argument values : A =12 and B =14 . We will complete the table below by indicating the suc-cessive values taken by the variables A , B and D during the call to this function. A B D 12 14 2 Calling the function f calculates the PGCD value of the numbers A and B . By entering A =221 and B =331 , the call to the f function returns the value 1 . a justify that there exist couples ( x ; y ) of relative inte-gers solutions of the equation : ( E ) : 221 · x 331 · y = 1 b Verify that the couple (3 ; 2) is a solution of the equa-tion ( E ) . Deduce the set of couples ( x ; y ) of relative integers so-lutions of the equation ( E ) . 3 Consider the sequences of natural numbers u n and v n defined for any natural number n by: u n = 2 + 221 · n ; v 0 = 3 v n +1 = v n + 331 a Express v n as a function of the natural number n . b Determine all pairs of natural numbers ( p ; q ) such that : u p = v q ; 0 p 500 ; 0 q 500 8. Unclassified financial years https://chingmath.fr chapExoCorrec/3254 sacados/3254 chapExoCorrec/3574 sacados/3574 chapExoCorrec/6252 sacados/6252
ABCDEFGH E.1604 For each of the following five propositions, indicate whether it is true or false and give a demonstration of the chosen answer. An unproven answer scores no points, Proposition 1: Pour any natural number n , 3 divides the natural number 2 2 n 1 Proposition 2: Si a relative integer x is solution of equation x 2 + x 0 ( mod. 6) then x 0 ( mod. 3) Proposition 3: L the set of pairs of relative integers ( x ; y ) solutions of the equation 12 · x 5 · y =3 is the set of cou-ples (4+10 · k ; 9+24 · k ) where k Z Proposition 4: Il exists a single pair ( a ; b ) of natural num-bers, such that : a<b and PPCM ( a ; b ) PGCD ( a ; b )=1 Two natural numbers M and N are such that M is written abc in base ten and N is written bca in base ten. Proposition 5: Si the integer M is divisible by 27 then the integer M N is also divisible by 27 . E.3133 1 Consider the equation : ( E ) : 17 x 24 y = 9 where ( x ; y ) is a pair of relative integers. a Verify that the couple (9 ; 6) is solution of the equation ( E ) . b Solve equation ( E ) . 2 At a funfair, John sits on a circular merry-go-round rep-resented by the diagram in Appendix 2. He can sit on any of the eight points indicated on the circle. The merry-go-round features a game that consists in catching a pom-pom which, moves on a cable forming a square in which the circle is inscribed. The merry-go-round turns clockwise at constant speed. It makes one revolution at constant speed. It makes one revolution in 24 seconds. The pom-pom moves in the same direction at constant speed. It makes one turn in 17 seconds. To win, John must catch the pom-pom, and he can only do so at the contact points which are noted A , B , C and D on the drawing. At time t =0 , John starts from point H at the same time as the pom-pom starts from point A . a It is assumed that at some point t jean catches the pom-pom in A . Jean may already have passed a num-ber of times in A without finding the pompon there. At time t , we note y the number of turns made since its first passage in A and x the number of turns made by the pompon. Show that ( x ; y ) is a solution of the equation ( E ) from question 1. b Jean has paid for 2 minutes ; will he have time to catch the pom-pom? c Show, in fact, that it is only possible to catch the pom-pom at point A . d Jean now starts from point E . Will he have time to catch the pom-pom in A before the two minutes. E.6249 Part A The aim of this part is to demonstrate that the set of prime integers is infinite by reasoning by the absurd. 1 It is assumed that there exists a finite number of prime integers denoted p 1 , p 2 , . . . , p n . Consider the integer E product of all prime integers aug-mented by 1 : E = p 1 × p 2 × · · · × p n + 1 Show that E is an integer greater than or equal to 2 , and that E is prime with each of the integers p 1 , p 2 , . . . , p n . 2 Using the fact that E admits a prime divisor, conclude. Part B For any natural number k 2 , we pose : M k =2 k 1 . We say that M k is the k -th Mersenne number. 1 a Copy and complete the following table, which gives some values of M k : k 2 3 4 5 6 7 8 9 10 M k b From the previous table, if k is a prime integer, can we conjecture that the integer M k is prime? 2 Let p and q be two non-zero natural numbers. a Justify the equality: 1 + 2 p + 2 p 2 + · · · + 2 p q 1 = 2 p q 1 2 p 1 b Deduce that 2 p · q 1 is divisible by 2 p 1 . c Deduce that if an integer k greater than or equal to 2 is not prime, then neither is M k . 3 a Prove that Mersenne’s number M 11 is not prime. b What can we deduce about the conjecture in question 1 b ? Part C The Lucas-Lehmer test is used to determine whether a given Mersenne number is prime. This test uses the numerical se-quence u n defined by u 0 =4 and for any natural number n : u n +1 = u n 2 2 If n is a natural number greater than or equal to 2 , the test asserts that the integer M n is prime if, and only if, u n 2 0 ( mod. M n ) . This property is admitted in the sequel. 1 Use the Lucas-Lehmer test to check that the Mersenne number M 5 is prime. 2 The function of the following algorithm takes as argu-ment an integer n greater than or equal to 3 and must return 1 if the Mersenne number M n is prime and 0 oth-erwise, using the Lucas-Lehmer test. https://chingmath.fr chapExoCorrec/1604 sacados/1604 Polynesie Juin 2006 5 pionts chapExoCorrec/3133 sacados/3133 ABCDEFGH chapExoCorrec/6249 sacados/6249 Asie Juin 2014
Function f(n) u 4 M ... For i ranging from 1 to ... u ... End For If M divides u Then Return ...... Otherwise Return ...... End If Copy and complete the function code f so that it satisfies the desired condition. E.3552 Part I Let x be a real number. 1 Show that : x 4 +4= x 2 +2 2 4 · x 2 . 2 Deduce that x 4 +4 can be written as the product of two trinomials with integer coefficients. Part II Let n be a natural number greater than or equal to 2 . Consider the integers : A = n 2 2 n +2 ; B = n 2 +2 n +2 and d their PGCD . 1 Show that n 4 +4 is not prime. 2 Show that, any divisor of A that divides n , divides 2 . 3 Show that, any common divisor of A and B , divides 4 n . 4 In this question, it is assumed that n is odd. a Show that A and B are odd. Deduce that d is odd. b Show that d divides n . c Deduce that d divides 2 , then that A and B are prime to each other. 5 It is now assumed that n is even. a Show that 4 does not divide n 2 2 n +2 . b Show that d is of the form d =2 · p , p is odd. c Show that p divides n . Deduce that d =2 . (This may be based on the demonstration used in question 4 ) . E.6928 For any non-zero natural number n , we call S ( n ) the number equal to the sum of the positive divisors of n . 1 Check that S (6)=12 and calculate S (7) . 2 a Show that, for any natural number n greater than or equal to 2 : S ( n ) 1+ n b What are the natural numbers n such that S ( n )= 1+ n ? 3 It is assumed in this question that n is written p × q p and q are distinct prime integers. a Show that : S ( n )= 1+ p 1+ q . b Consider the following proposition : ˇ For all distinct nonzero natural numbers n and m , S n × m = S n × S m ı Is this proposition true or false? Justify. 4 It is assumed in this question that the integer n is writ-ten p k , p is a prime integer and k a non-zero natural number. a What are the divisors of n ? b Deduce that : S ( n )= 1 p k +1 1 p . 5 It is assumed in this question that n is written p 13 × q 7 , p and q are distinct prime integers. a Let m be a natural number. Show that m divides n if, and only if, there exist two integers s and t with 0 s 13 and 0 t 7 such that m = p s × q t . b Show that : S ( n )= 1 p 14 1 p × 1 q 8 1 q https://chingmath.fr chapExoCorrec/3552 sacados/3552 chapExoCorrec/6928 sacados/6928
E.6946 For any pair of non-zero relative integers ( a ; b ) , note pgcd ( a ; b ) the greatest common divisor of a and b . The plane is provided with a reference frame O ; i ; j . 1 Example. Let Δ 1 be the straight line with equation : y = 5 4 · x 2 3 a Show that if ( x ; y ) is a pair of relative integers then the integer 15 · x 12 · y is divisible by 3 . b Is there at least one point on the line Δ 1 whose coor-dinates are two relative integers? Justify. Generalization : Now consider a straight line Δ with equation : y = m n · x p q m , n , p and q are non-zero relative integers such that : pgcd ( m ; n ) = pgcd ( p ; q ) =1 Thus, the coefficients of the equation ( E ) are irreducible frac-tions and we say that Δ is a rational line. The aim of the exercise is to determine a necessary and suffi-cient condition on m , n , p and q so that a rational line Δ has at least one point whose coordinates are two relative integers. 2 It is assumed here that the line Δ has a point with coor-dinates x 0 ; y 0 x 0 and y 0 are relative integers. a Noting that the number n · y 0 m · x 0 is a relative inte-ger, demonstrate that q divides the product n · p . b Deduce that q divides n . 3 Reciprocally, we assume that q divides n , and we wish to find a pair x 0 ; y 0 of relative integers such that : y 0 = m n · x 0 p q . a We pose n = q · r , r is a non-zero relative integer. Show that we can find two relative integers u and v such that : q · r · u m · v =1 . b Deduce that there exists a pair ( x 0 ; y 0 ) of relative in-tegers such that : y 0 = m n · x 0 p q 4 Let Δ be the straight line of equation y = 3 8 · x 7 4 . Does this line have a point whose coordinates are relative in-tegers? Justify. 5 Consider the function f of an algorithm taking as argu-ments the integers M , N , P and Q . Furthermore, we assume that the arguments passed when calling the f function verify: pgcd ( M ; N )= pgcd ( P ; Q )=1 Function f(M,N,P,Q) If Q divides N Then X 0 As long as M N · X P Q is not entier and M N · X P Q is not entier X X+1 End As long as If M N X P Q is integer Then Renvoyer X ; M N · X P Q Otherwise Renvoyer X ; M N · X P Q End If Otherwise Return "Nosolution End if a Justify that the call to the function f terminates for all values passed as arguments to M , N , P , Q , non-zero integers verifying: pgcd ( M ; N ) = pgcd ( P ; Q ) = 1 . b What does it achieve? E.3551 Let p be a given prime integer. We propose to study the exitence of couples ( x ; y ) of strictly positive natural integers verifying the equation : ( E ) : x 2 + y 2 = p 2 1 We pose p =2 . Show that the equation ( E ) is without solution. We now assume p =2 and that the couple ( x ; y ) is solution of the equation ( E ) . 2 The aim of this question is to prove that x and y are prime to each other. a Show that x and y are of different parities. b Show that x and y are not divisible by p . c Deduce that x and y are prime to each other. 3 It is now assumed that p is a sum of two non-zero squares, i.e.: p = u 2 + v 2 u and v are two strictly positive natu-ral numbers. a Verify that then the couple ( | u 2 v 2 | ; 2 · u · v ) is solution of equation ( E ) . b Give a solution of the equation ( E ) when p =5 then when p =13 . 4 Finally, we propose to check on two examples, that the equation ( E ) is impossible when p is not the sum of two squares. a Are p =3 and p =7 the sum of two squares? b Demonstrate that the equations x 2 + y 2 =9 and x 2 + y 2 =49 admit no solution in strictly positive natural numbers. https://chingmath.fr chapExoCorrec/6946 sacados/6946 chapExoCorrec/3551 sacados/3551
E.5862 We note E the set of twenty-seven integers between 0 and 26 . We note A the set whose elements are the twenty-six letters of the alphabet and a separator between two words, noted ˇ ? ı considered as a character. To code the elements of A , we proceed as follows : Firstly : each letter of the alphabet, arranged alphabeti-cally, is associated with a natural number between 0 and 25 , arranged in ascending order. We therefore have : a ↦− 0 ; b ↦− 1 ; . . . ; z ↦− 25 . The separator ˇ ? ı is associated with the integer 26 . a b c d e f g h i j k l m n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 o p q r s t u v w x y z ? 14 15 16 17 18 19 20 21 22 23 24 25 26 We say that a has rank 0 , b has rank 1 ,. . . , z has rank 25 and the separator ˇ ? ı has rank 26 . Secondly : to each element x of E , the application g as-sociates the remainder of the Euclidean division of 4 x +3 by 27 . Note that, for any x of E , g ( x ) belongs to E . Thirdly: the initial character is then replaced by the rank character g ( x ) . Example: s ↦− 18 ; g (18) = 21 ; 21 ↦− v . So the letter s is replaced during coding by the letter v . 1 Find all integers x of E such that g ( x )= x , i.e. invariant by the application g . Deduce all the invariant characters in this encoding. 2 Show that, for any natural number x belonging to E and any natural number y belonging to E : If y 4 x +3 ( mod. 27) then x 7 y +6 ( mod. 27) Deduce that two distinct characters are encoded by two distinct characters. 3 Suggest a decoding method. 4 Decode the word ˇ vfv ı. E.6903 The natural integers 1 , 11 , 111 , 1111 . . . are rep-units. Natural integers written only with 1 are so called. For any non-zero natural number p , note N p the rep-unit writ-ten with p times the digit 1 : N p = 11 : : : 1  p répétitions du chiffre 1 = k = p 1 k =0 10 k Throughout the exercise, p denotes a non-zero natural num-ber. The aim of this exercise is to study some properties of rep-units. Part A : divisibility of rep-units in some special cases 1 Show that N p is divisible neither by 2 nor by 5 . 2 In this question, we study the divisibility of N p by 3 . a Prove that, for any natural number j : 10 j 1 ( mod. 3) b Deduce that N p p ( mod. 3) . c Determine a necessary and sufficient condition for the rep-unit N p to be divisible by 3 . 3 In this question, we study the divisibility N p by 7 . a Copy and complete the congruence table below, a is the only relative integer belonging to : 3 ; 2 ; 1 ; 0 ; 1 ; 2 ; 3 such as : 10 m a ( mod. 7) No justification is required . m 0 1 2 3 4 5 6 a b Let p be a non-zero natural number. Show that 10 p 1 ( mod. 7) if, and only if, p is a mul-tiple of 6 . The Euclidean division of p by 6 . can be used c Justify that, for any non-zero natural number p : N p = 10 p 1 9 d Demonstrate that ˇ 7 divides N p ı is equivalent to ˇ 7 divides 9 · N p ı. e Deduce that N p is divisible by 7 if, and only if, p is a multiple of 6 . Part B: a rep-unit strictly greater than 1 is never a perfect square 1 Let n be a natural number greater than or equal to 2 . It is assumed that the decimal writing of n 2 ends with the digit 1 , i.e. n 2 1 ( mod. 10) a Copy and complete the congruence table below : n : : : [10] 0 1 2 3 4 5 6 7 8 9 n 2 : : : [10] b Deduce that there exists a natural integer m such that : n = 10 · m + 1 or n = 10 · m 1 c Conclude that : n 2 1 ( mod. 20) 2 Let p be a natural number greater than or equal to 2 . What is the remainder of the Euclidean division of N p https://chingmath.fr chapExoCorrec/5862 sacados/5862 chapExoCorrec/6903 sacados/6903
by 20 ? 3 Deduce that, for p natural integer greater than or equal to 2 , the rep-unit N p is not the square of an integer. E.8134 Each letter of the alphabet is as-sociated with an integer x between 0 and 25 as shown in the table below : Lettre A B C D E F G H I J K L M x 0 1 2 3 4 5 6 7 8 9 10 11 12 Lettre N O P Q R S T U V W X Y Z x 13 14 15 16 17 18 19 20 21 22 23 24 25 The ˇ RABIN ı cipher is an asymmetric encryption device in-vented in 1979 by computer scientist Michael Rabin. Alice wants to communicate securely using this cryptosystem. She chooses two distinct numbers p and q . This pair of num-bers is her private key, which she keeps secret. She then calculates n = p × q and chooses a natural number B such that 0 B n 1 . If Bob wants to send a secret message to Alice, he codes it letter by letter. The encoding of a letter represented by the integer x is the number y such that : y x x + B ( mod. n ) with 0 y n Throughout the exercise, we take p =3 , q =11 so n = p × q =33 and B =13 . Part A : Encryption Bob wants to send the word ˇ NO ı to Alice. 1 Show that Bob codes the letter ˇ N ı with the number 8 . 2 Determine the number that encodes the letter ˇ O ı. Part B: Decryption Alice has received an encrypted message that begins with the number 3 . To decode this first number, she needs to determine the inte-ger x such that : x x +3 3 ( mod. 33) 0 x< 26 1 Show that x · x +13 3 ( mod. 33) is equivalent to : x + 23 2 4 ( mod. 33) . 2 a Show that if x +23 2 4 ( mod. 33) then the system of equations x + 23 2 4 ( mod. 3) x + 23 2 4 ( mod. 11) is verified. b Reciprocally, show that if x + 23 2 4 ( mod. 3) x + 23 2 4 ( mod. 11) alors x +23 2 4 ( mod. 33) c Deduce that : x · x +13 3 ( mod. 33) x +23 2 1 ( mod. 3) x +23 2 4 ( mod. 11) 3 a Determine the natural numbers a such that 0 a< 3 and a 2 1 ( mod. 3) b Determine the natural numbers b such that 0 b< 11 and b 2 4 ( mod. 11) 4 a Deduce that x · x +13 3 ( mod. 33) is equivalent to the following four systems : x 2 ( mod. 3) x 8 ( mod. 11) or x 0 ( mod. 3) x 1 ( mod. 11) ou x 2 ( mod. 3) x 1 ( mod. 11) or x 0 ( mod. 3) x 8 ( mod. 11) b We admit that each of these systems admits a single integer solution x such that 0 x< 33 . Determine, without justification, each of these solu-tions. 5 Complete the algorithm below so that it displays the four solutions found in the previous question. Pour...allant de...à... If the remainder of the division de...par...est equals...then Display ... End If End For 6 Can Alice find out the first letter of the message sent by Bob? Can ˇ cipher’s RABIN ı be used to decode a message letter by letter? E.8140 The aim of this exercise is to con-sider a method of public-key encryption of digital information, called the RSA system, in honor of mathematicians Ronald Rivest, Adi Shamir and Leonard Adleman, who invented this encryption method in 1977 and published it in 1978 . Questions 1 and 2 are preparatory questions, question 3 addresses encryption, question 4 decryption. 1 This question considers calculating the remainder in Eu-clidean division by 55 of certain powers of the integer 8 . a Check that 8 7 2 ( mod. 55) . Deduce the remainder in Euclidean division by 55 of the number 8 21 . b Verify that 8 2 9 ( mod. 55) , then deduce from ques-tion a the remainder in Euclidean division by 55 of 8 23 . 2 In this question, consider the equation : ( E ) 23 · x 40 · y =1 , whose solutions are couples ( x ; y ) of relative integers. a Justify the fact that the equation ( E ) admits at least one solution pair. b Give a couple, particular solution of the equation ( E ) . c Determine all pairs of relative integers solution of equa-tion ( E ) . d Deduce that there exists a unique integer d verifying the conditions : 0 d< 40 et 23 · d 1 ( mod. 40) . 3 Encryption in the RSA system A person A chooses two prime numbers p and q , then cal-culates the products N = p · q and n = p 1 q 1 . She also chooses a natural number c prime with n . The person A publishes the pair ( N ; c ) , which is a public key allowing anyone to send him an encrypted number. Messages are digitized and transformed into a sequence of integers between 0 and n 1 . To encrypt an integer a from this sequence, proceed as follows : calculate the remainder b in the Euclidean divi-sion by N of the number a c , and the encrypted number is the integer b . In practice, this method is secure if the person A chooses https://chingmath.fr sacados/8134 sacados/8140
very large prime numbers p and q , written with several tens of digits. We’ll consider it here with simpler numbers : p =5 et q =11 . The person A also chooses c =23 . a Calculate the numbers N and n , then justify that the value of c verifies the desired condition. b A sender wishes to send to person A the number a =8 . Determine the value of the encrypted number b . 4 Decryption in the RSA system The person A first calculates the unique natural integer d verifying the conditions : 0 d<n et c · d 1 ( mod. n ) . She keeps secret this number d which allows her, and her alone, to decrypt the numbers sent to her encrypted with her public key. To decrypt an encrypted number b , the person A cal-culates the remainder a in the Euclidean division by N of the number b d , and the plaintext number - i.e. the number before encryption - is the number a . We admit the existence and uniqueness of the integer d , and the fact that decryption works. The numbers chosen by A are still p =5 , q =11 and c =23 . a What is the value of d ? b Applying the decryption rule, find the plaintext num-ber when the encrypted number is b =17 . E.8149 South America 2018 https://chingmath.fr sacados/8149