Outside the high school program / Congruence 43 exercises (including 31 corrected)

a
1. Congruence E.24 Let abcd =1000 · a +100 · b +10 · c + d denote a base-10 integer whose digits are a , b , c , and d . 1 a Find the remainder when 100 is divided by 11, and then when 1000 is divided by 11. b Show that if an integer n satisfies : n 10 ( mod. 11) then we can also write: n 1 ( mod. 11) c Conclude that if abcd is divisible by 11, then a + b c + d is also divisible by 11. 2 a Are integers of the form abba divisible by 11? b For what value of a is the integer 1 a 1 divisible by 11? c For what value of a is the integer 9 a 9 divisible by 11? 3 Under what conditions are integers of the form aab divis-ible by 11? E.20 The aim of this exercise is to demon-strate that, for any non-zero natural number n , the integer A = n · ( n 2 1) is a multiple of 6. 1 In each of the following cases, calculate A and determine the remainder in the Euclidean division of A by 6. a n = 5 b n = 16 c n = 32 2 We now assume that the remainder of the Euclidean di-vision of n by 6 is 5; we can therefore write: N 5 ( mod. 6) . a What can we conclude for ( n 1) and ( n +1) ? b What is the remainder of the Euclidean division of ( n 2 1) by 6? c Then justify that n ( n 2 1) is a multiple of 6. 3 Copy and complete the table : Rest of la division de n per 6 Rest of la division de ( n 1) par 6 Reste de la division de ( n +1) par 6 Reste de la division de ( n 2 1) par 6 Rest of la division de n ( n 2 1) par 6 0 1 2 3 2 4 2 0 4 5 4 Conclude. E.27 1 a Find the smallest natural integers a , b , c verifying: 100 a ( mod. 4) ; 27 b ( mod. 4) ; 95 c ( mod. 4) b Deduce the remainder of the Euclidean division 27 × 100 by 4. Then, the remainder of 2 795 by 4 2 a Calculate the remainder of the Euclidean division of 10 , 100 , 1000 by 9 . b Deduce the smallest natural integers a , b , c verifying: 3 × 1000 A ( mod. 9) ; 7 × 100 B ( mod. 9) ; 8 × 10 C ( mod. 9) c Give the remainder of the Euclidean division of 3 785 by 9 . 3 a Using a method equivalent to that in question 2 , give the smallest natural numbers a and b verifying: 318 a ( mod. 9) ; 1 203 631 b ( mod. 9) b Using the conservation properties of congruence, show that the calculation below is false : 3 785 × 318 = 1 203 631 E.23 The aim of the exercise is to prove, for four-digit integers, the divisibility criterion: ˇAn integer is divisible by 3 if and only if the sum of its digits is itself divisible by 3ı. 1 An example: a For a natural number n , what does the sentence ˇ mean n is congruent to 1 modulo 3 ı? Translate using a congruence ˇ n is divisible by 3ı. b For each of the following integers, give the smallest positive integer to which it is congruent modulo 3 : 10 , 100 , 1000 , 10 p where is a positive integer. c Determine the smallest, positive integer to which is congruent the integer 4520 modulo 3 . Note that : 4520 = 4 × 1000 + 5 × 100 + 2 × 10 . 2 Some generalizations : Consider a four-digit integer N , four integers a , b , c and d between 0 and 9 such that a =0 and : N = 1000 · a + 100 · b + 10 · c + d . The units are d , the tens are c , the hundreds b and the thousands a . a Show that : N a + b + c + d modulo 3. b Justify, for four-digit integers, the criterion of divisibil-ity by 3, stated at the beginning of the exercise. c State an analogous criterion for divisibility by 9 and demonstrate it for four-digit integers. https://chingmath.fr chapExoCorrec/24 sacados/24 Liban - 2003 - 6 points - aux choix chapExoCorrec/20 sacados/20 chapExoCorrec/27 sacados/27 sacados/23 France - Juin 2004 - 7 points - Au choix
E.1851 The 13-digit barcode, or EAN-13 (European Article Number) , is a code consisting of 13 digits ranging from 0 to 9, used to classify products in mass retail: a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9 a 10 a 11 a 12 a 13 The calculation is as follows : S = a 1 + 3 a 2 + a 3 + 3 a 4 + a 5 + 3 a 6 + a 7 + 3 a 8 + a 9 +3 a 10 + a 11 + 3 a 12 + a 13 The code is accepted when : S 0 ( mod. 10) . Otherwise, it is rejected. 1 In practice. Consider the code A =9 780 130 515 186 . a Verify that A is accepted. b Instead of the code A , the code B =9 770 130 515 186 was entered with an error in the third digit. Show that the code B is rejected. c When entering the code A , two adjacent digits were swapped. Is the code C =9 780 135 015 186 accepted or rejected? Is the code D =9 780 130 155 186 accepted or rejected? 2 Effect of an entry error on the fourth digit. a Let E denote the code 9 78 n 130 515 186 , where n rep-resents a digit. If n =0 , we obtain the code A , so E is accepted. Determine all values of n for which E is accepted. b Conclude that an input error in the fourth digit of the code A is always detected. E.11 DAVID’s famous painting : ˇLe sacre de Napoléonı immortalizes the event of December 2, 1804. Over the period under consideration, all years with vintages in multiples of 4 are leap years, with the exception of 1900. Let’s consider December 2, 1804 as the day of rank 1 1 a How many years have vintages between 1805 (inclu-sive) and 2003 (inclusive) ? b Among these years, show that there are 48 leap years 2 Prove that the rank of 1 er January 2004 is 72 714 . 3 Determine the integer a between 0 and 6 inclusive such that : 72 714 = a ( mod. 7) . 4 Knowing that 1 er January 2004 was a Thursday, copy and complete the following table where k denotes an integer. Rang du jour 7 k 7 k +1 7 k +2 7 k +3 7 k +4 7 k +5 7 k +6 Jour from la semaine 5 On what day of the week was Napoleon 1 er crowned em-peror? E.19 Questions 1 and 2 are indepen-dent. 1 Consider two natural numbers a and b such that : a is congruent to 10 modulo 23 b is congruent to 15 modulo 23 a Determine the smallest natural integer congruent to ( a + b ) modulo 23. b Determine the smallest natural integer congruent to a · b modulo 23. 2 a Determine the smallest natural number congruent to 1000 modulo 111 b Show that for any natural number n , 1000 n is congru-ent to n modulo 111. Deduce that the number 10 8 +10 4 +1 is divisible by 111. E.2 new Caledonia - 6 points - November 2005 An electronic clock has been programmed to beep ev-ery seven hours. The first beep is emitted at midnight on December 31. 1 a At what time is the last beep of 1 er January 2005? b What time is the first beep of January 2, 2005? c What time is the last beep of January 2, 2005? d What time is the first beep of January 3, 2005? Explain the answers. 2 a Show that : 24 3 ( mod. 7) b Deduce the remainder of the Euclidean division of 2 × 24 by 7 and the remainder of the Euclidean divi-sion of 3 × 24 by 7. Justify answers. Reproduce on the copy and complete the following table : n 1 2 3 4 5 6 7 8 9 10 Reste de la division euclidienne de n × 24 par 7 5 1 4 0 3 6 2 c Explain why the clock beeps at midnight every 7 days and every 7 days only. 3 Recall that 2005 is a non-leap year and has 365 days. a Determine the smallest natural number a such that : 365 a ( mod. 7) . b On what date will the clock beep at midnight for the last time in 2005? Explain the answer. https://chingmath.fr chapExoCorrec/1851 sacados/1851 chapExoCorrec/11 sacados/11 Antilles - 2004 - Au choix - 6 points chapExoCorrec/19 sacados/19 Japon - 2002 - 5 point - au choix sacados/2
E.18 In this exercise, we examine divis-ibility by 11 by using the congruence modulo 11 of powers of 10. 1 a Verify that : 100 1 ( mod. 11) . Conclude that : 10 4 1 ( mod. 11) b Verify that : 10 1 ( mod. 11) . Conclude that : 10 3 1 ( mod. 11) 10 5 1 ( mod. 11) 2 a Using the equality 3729=37 × 100+29 and the previ-ous results, show that 3729 is divisible by 11. b Using the previous method, investigate the divisibility of 9 240 by 11 . 3 a Using the equality: 3729 = 3 × 1000 + 7 × 100 + 2 × 10 + 9 and the previous results, show that 3 729 is divisible by 11 . b Using this method, determine whether 9 240 is divisi-ble by 11 . 4 Determine whether 197 277 is divisible by 11. E.10 1 Give the remainder of the Euclidean division of 5 by 8. Give the remainder of the Euclidean division of 5 2 by 8. 2 Give the remainder of the Euclidean division of 5 86 by 8. Give the remainder of the Euclidean division of 5 87 by 8. 3 Give is the remainder of the Euclidean division of 965 87 by 8. 4 Let n be a natural number. Show that 5 2 n +1 +5 2 n +2 is a multiple of 8. E.1 The identification code for an item consists of seven digits between 0 and 9. The first six digits identify the item, and the seventh is a check digit used to detect errors in the first six digits. Such a code is written as x 1 x 2 x 3 x 4 x 5 x 6 x 7 . The check digit x 7 is the remainder of the Euclidean division by 10 of the sum : N =( x 1 + x 3 + x 5 )+7( x 2 + x 4 + x 6 ) 1 a Check that the following code is correct: 2 3 4 1 5 4 7 b Calculate the key for the following code : 9 2 3 4 5 1 c One of the digits in the following code has been erased : 1 1 2 7 7 4 . Calculate it. 2 In this question, one of the digits in the code is incorrect : instead of entering x 1 x 2 x 3 x 4 x 5 x 6 x 7 , the typist typed x 1 x 2 x 3 yx 5 x 6 x 7 a Write the sums N 1 and N 2 associated with the two pre-vious codes respectively, then calculate the difference N 1 N 2 b Show that the equation 7 a =0 ( mod. 10) where a is an integer between 0 and 9, has only one solution, 0. c Will the typing error be detected? 3 In this question, two of the digits in the code have been swapped : instead of typing x 1 x 2 x 3 x 4 x 5 x 6 x 7 , the typist typed x 1 x 3 x 2 x 4 x 5 x 6 x 7 . a Write the sums N 1 and N 2 associated with these two codes, then calculate the difference N 1 N 2 . b Give an example of values for x 2 and x 3 for which the check digit does not detect the error. https://chingmath.fr chapExoCorrec/18 sacados/18 Japon -- 2003 -- au choix -- 5 points chapExoCorrec/10 sacados/10 Liban -- 2005 - 6 points -- au choix chapExoCorrec/1 sacados/1 Japon - 2004 - 6 points - au choix
E.25 A leap year has 366 days, and a non-leap year has 365 days. A year is a leap year if its ˇnum-berı is divisible by 4, unless it is a century year. Century years≠years whose ˇnumberı ends in two zeros≠are generally not leap years unless their ˇnumberı is divisible by 400. Some examples: 1996 was a leap year, 1997 was not, nor was 1900, but 2400 will be. 1 Find the two natural numbers a and b less than or equal to 6 such that : 365 a ( mod. 7) ; 366 b ( mod. 7) . 2 a Assuming that January 1 of a non-leap year falls on a Monday, explain why January 1 of the following year will fall on a Tuesday. b If January 1 of a leap year falls on a Monday, what day of the week will January 1 of the following year fall on? 3 A period of four consecutive years has : N = 3 × 365 + 1 × 366 . Without calculating N , justify that N 5 ( mod. 7) . 4 Assuming that January 1 of a given year is a Monday, what day of the week will January 1 be four years later? Explain your answer. More generally, for a given date, (for example, 1 st Jan-uary) , each 4-year period results in a five-day shift in the cycle of the days of the week 5 Complete the table below. No explanation is required. Number of four-year periods J = number of days of shift in the cycle of the days of the week Remainder of the division of J by 7 0 0 0 1 5 5 2 10 3 3 4 5 6 7 6 a Explain why 2004 is a leap year. b Given that February 29, 2004, was a Sunday, what day of the week will February 29, 2008, be? c When will the next year be in which February 29 falls on a Sunday? Explain your answer. E.1770 A natural number N is written cabc in e base-five numeration system where a , b , c are non-zero, i.e.: N = c × 5 3 + a × 5 2 + b × 5 + c where a , b , c are integers such that : 0 <a < 5 ; 0 <b < 5 ; 0 <c < 5 This same integer N is written aba in the base-eight number-ing system. 1 Show that N =65 · a +8 · b and deduce that : 40 · a = 126 · c 3 b · . 2 a Justify that 40 · a 0 ( mod. 3) . Deduce the value of a . b Show that b 0 ( mod. 2) . Determine the values of b and c . c Give the writing of the integer N in bases five, eight and ten. E.1989 The aim of this exercise is to show, by two different methods, that for any natural number n , the number n 3 +5 · n is divisible by 6. First method 1 Show that any natural number n is congruent, modulo 6, to 0, 1, 2, 3, 4 or 5. 2 Copy and complete the following table with natural num-bers less than or equal to 5. n : : : ( mod. 6) 0 1 2 3 4 5 n 3 : : : ( mod. 6) 5 n : : : ( mod. 6) n 3 + 5 n : : : ( mod. 6) 3 Deduce that for any natural integer n , the integer n 3 +5 n is divisible by 6. Second method 1 Show that for any natural number n : n · ( n + 1) is even. Deduce that for any natural number n : 3 · n · ( n + 1) is divisible by 6. 2 We admit that : ( n + 1) 3 + 5 · ( n + 1) = ( n 3 + 5 · n ) + 3 · n · ( n + 1) + 6 Show that if for a natural number ; n 3 +5 · n is divisible by 6, then ( n +1) 3 +5 · ( n +1) is divisible by 6. 3 What remains to check, to deduce that n 3 +5 · n is divisi-ble by 6, for any natural number n ? 2. Congruence and power E.1849 1 a Determine the remainders when the integers 3 n are divided by 7 using the Euclidean algorithm for n N : n 6 . b Copy and complete the following table : Power of 3 3 0 3 1 3 2 3 3 3 4 3 5 3 6 Remainder modulo 7 c Conclude that, for any k N , 3 6 k is congruent to 1 https://chingmath.fr chapExoCorrec/25 sacados/25 chapExoCorrec/1770 sacados/1770 sacados/1989 chapExoCorrec/1849 sacados/1849
modulo 7. 2 a Find the smallest natural number congruent to 1515 modulo 7. b After noting that 2004=6 × 334 , use 1 to determine the remainder of the Euclidean division of 1515 2004 by 7. c Show that in the Euclidean division of 1515 2006 by 7, the remainder is 2. E.28 1 a Show that 1999 is congruent to 4 modulo 7. b Determine the smallest natural number congruent to 2007 modulo 7. 2 Let n be a natural number congruent to 5 modulo 7. a Determine a natural number congruent to n 3 modulo 7. b Deduce that ( n 3 +1) is divisible by 7. 3 Show that if n is a natural number congruent to 4 modulo 7 then ( n 3 1) is divisible by 7. 4 Consider the number: A =1999 3 +2007 3 . Without calculating A , show using the previous results that A is divisible by 7. E.7 Consider the integers : A = 8 387 592 115 ; B = 9 276 312 516 1 a Show that 1 000 is divisible by 8. b Show that A is congruent to 3 modulo 8. c Find the natural number b strictly less than 8 such that B is congruent to b modulo 8. 2 Determine the natural numbers strictly less than 8 that are congruent to A + B and A · B , respectively, modulo 8 . 3 a Show that B 2 is divisible by 8. b Show that A 2 is not divisible by 8. c Show that A 100 is not divisible by 8. E.8 Consider the integer A =18 2002 . 1 A Is it divisible by 9? By 4? (Justify your answers.) 2 We want to find the remainder of the Euclidean division of A by 7, using congruences. a Find the integer r such that : 0 r < 7 18 = r ( mod. 7) b What is the smallest nonzero natural number n such that : r n = 1 ( mod. 7) ? c Prove that for any natural number k , 4 3 k is congruent to 1 modulo 7. d Deduce the remainder of the Euclidean division of A by 7. 3 Show that 2002 18 is divisible by 13. E.1769 For any integer n 1 , consider the integer: 11 n + 5 n 7 1 a What is the remainder of 11 in Euclidean division by 10? b Show that, for any integer n 1 : 11 n 1 ( mod. 10) . 2 Demonstrate that, for any integer n 1 , 5 n 5 ( mod. 10) . (We can use reasoning by recurrence or rely on divisibility properties) 3 What is the units digit of the integer 11 2007 + 5 2007 7 ? Justify the answer given. E.1848 1 Show that, for any n N , we have : 2 3( n +1) 1 = 8 · 2 3 n 1 + 7 . 2 Show, using reasoning by recurrence, that the following property is true for any n N : 2 3 n 1 is divisible by 7. E.35 1 Show the following relationship for n N : 9 · 9 n 2 n + 7 × 2 n 2 Show by recurrence that 9 n 2 n is a multiple of 7 for any n N . 3. Verification key problem E.15 On the catalog of a mail-order com-pany, the reference of each item of a five-digit number x y z t u (the first of these numbers x being non-zero) , followed by a capital letter chosen between A and N , with the exception of the letter I . This uppercase letter is associated with a number called the key, according to the following table : Lettre A B C D E F G H J K L M N Clé 0 1 2 3 4 5 6 7 8 9 10 11 12 For control purposes, for each reference, the sum of the five-digit number and the key obtained from the table must be a number divisible by 13. For example, let’s consider an item whose reference is 18 501M. The five-digit number is 18 501 . The key associated with M is 11: 18501 + 11 = 18512 = 13 × 1424 . 18512 is divisible by 13, so this reference is correct. 1 Are the following two part numbers correct? 13587 M ; 45905 A Answers must be justified. 2 We want to find the letter of a reference of which only the five-digit number 26014 remains. a Show that : 13 × 2001 < 26014 < 13 × 2002 . b Deduce the missing letter. https://chingmath.fr sacados/28 Antilles Guyane - Juin 2002 - 5 points chapExoCorrec/7 sacados/7 Antilles - Septembre 2002 - 7 points - au choix chapExoCorrec/8 sacados/8 Liban - Juin 2002 - 6 points sacados/1769 chapExoCorrec/1848 sacados/1848 sacados/35 sacados/15
3 We want to find an illegible number in the reference of an article. This reference is 85 z 29 C ( z being the illegible digit) . a Show that the problem boils down to finding z such that 0 z 9 and : 8 × 10 4 +5 × 10 3 + z × 10 2 +2 × 10+9+2 0 ( mod. 13) This relationship will be noted ( E ) throughout the se-quel. b Copy and complete the following table using natural numbers between 0 and 12. 10 0 : : : ( mod. 13) 10 1 : : : ( mod. 13) 10 2 : : : ( mod. 13) 10 3 : : : ( mod. 13) 10 4 : : : ( mod. 13) c Using the properties of congruences and the results obtained in the previous table, show that the problem amounts to finding z ( 0 z 9 ) such that : 11 + 9 z ( mod. 13) d Determine the unreadable digit of the reference. Then write this reference. E.9 In a mail-order company, item num-bers are made up of 6 digits and a check letter to avoid input errors. The position of the letter in the alphabet corresponds to the remainder of the numerical reference divided by 26. Example : the numerical reference 123 456=4748 × 26+8 and the 8 e letter of the alphabet is H so the item reference with its control key is 123 456 H . 1 The numerical reference of an item is 784 503 , determine the control letter corresponding to this reference. 2 Consider the reference : : : 37 254 H where the first digit has been deleted. a We note n the missing digit; Verify that the number verifies : n · 37 254 = n × 100 000 + 37 254 b Determine the remainder of dividing 100 000 by 26, then 37 254 by 26. c Deduce that : 4 · n +22=8 ( mod. 26) . d Knowing that 1 n 9 , determine the missing digit of the reference. E.3 The I.N.S.E.E. number is made up of 15 digits. Reading from left to right : The first number is 1 if male, 2 if female ; the next two digits designate the last two digits of the year of birth ; the following two digits designate the month of birth ; the next two digits designate the department of birth ; the next three digits designate the commune of birth ; the next three digits designate the civil registration num-ber; the last two digits designate the key K , calculated as follows : Let A be the integer made up of the 13 digits on the left, be r the remainder of the Euclidean division of A by 97, then K =97 r The first 13 digits (without key) of Sophie’s number I . N . S . E . E . are 2 850 786 183 048 . We denote A this number and r the remainder of the Euclidean division of A by 97. 1 Give the month of Sophie’s birth year. 2 a Determine the two integers a and b such that : A = a × 10 6 + b with 0 b< 10 6 . b Using the remainder of 100 in its Euclidean division by 97; show that : 10 6 27 ( mod. 97) c Deduce the remainder r of the Euclidean division of A by 97. 3 Determine the key K of Sophie’s I.N.S.E.E. number. 4 Sophie, asked for the first thirteen digits of her I.N.S.E.E. number, reverses the last two digits and an-swers 2 850 786 183 084 instead of 2 850 786 183 048 . We note B Sophie’s answer. a Calculate the difference B A and deduce that the re-mainder of the Euclidean division of B by 97 is equal to 21. b Can the error made by Sophie be detected? E.1850 All published works are identified by an ISBN number (International Standard Book Number) which indicates the language of publication, the publisher and the reference of the work with that publisher. An ISBN num-ber consists of nine digits (i.e. nine integers between 0 and 9) followed by a space and a key. This key is a digit or the letter X (the 10 in Roman numbering) . To determine the key of an ISBN number whose first nine digits are abcdefghi , we calculate the integer: N = a +2 · b +3 · c +4 · d +5 · e +6 f · +7 · g +8 · h +9 · i then determine the integer r between 0 and 10 that is congru-ent to N modulo 11 . If the integer r is strictly less than 10 , the key is equal to r ; if the integer r is equal to 10 , the key is X . 1 Check that the ISBN number key 190190340 0 is correct. 2 Calculate the key for the ISBN number whose first 9 dig-its are: 103 241 052. 3 The fourth digit of a book’s ISBN number is illegible. It is noted as d . The key for this number is 4 and the number looks like this : 329 D12 560 4 a Show that : 4 · d 2 ( mod. 11) . b Deduce the number d . 4 The first and ninth digits of a book’s ISBN number are illegible. They are noted as a and i . The key for this number is 9 and the number looks like this : a32 100 50i. a Show that : a 2 9 · i ( mod. 11) . b Give two possible values of the pair ( a ; i ) . https://chingmath.fr chapExoCorrec/9 sacados/9 chapExoCorrec/3 sacados/3 Antilles - 2003 - 7 points - Obligatoire chapExoCorrec/1850 sacados/1850
4. Coding E.21 Bank card PINs are made up of four digits from 0 to 9. Pierre didn’t write down his bank card’s code in his diary, but as he’s afraid of forgetting it, he wrote down the ˇ encrypted form ı of his secret code so that his secret code would not be discovered if his diary were lost. Pierre always performs his encryption as follows : He chooses two numbers a and b , called ˇ cryptage ı keys, which he will use for all the encryption. He replaces each digit n of his secret code with the digit p , called the encrypted form of n , which he calculates using the following formula : p a × n + b ( mod. 10) The aim of part A is to find the secret code of Pierre’s bank card, knowing the encryption keys. The objective of part B is to find the encryption keys. The parts A and B are therefore independent. Part A Pierre has chosen here : a = 3 ; b = 7 Then : p 3 × n + 7 ( mod. 10) For example, the encrypted form of the number 5 will be the number 2. Because : 3 × 5 + 7 = 22 ; 22 2 ( mod. 10) 1 Reproduce and complete the encryption table below cor-responding to Pierre’s formula. n 0 1 2 3 4 5 6 7 8 9 p 6 9 2 1 2 Pierre has written 8 5 0 3 in his diary which is the en-crypted form of his secret code, what is his real secret code? Part B Pierre has made emulators. Quentin uses the same formula as Pierre : p a × n + b ( mod. 10) But by taking two other values of a and b from the numbers 0 to 9. Pierre claims to be able to determine Quentin’s formula (i.e. find the numbers a and b ) , as the latter has confessed to him the encrypted forms of two numbers : The encrypted form of the number 3 is the number 3 . The encrypted form of the digit 4 is the digit 2 . 1 Establish that discovering a and b amounts to solving the system of unknown ( a ; b ) : 3 a + b 3 ( mod. 10) 4 a + b 2 ( mod. 10) where a and b are numbers from 0 to 9. 2 Pierre claims that the couple (9 ; 6) is a solution of this system. Show that he is right E.17 Parts I and II are independent. Part I Nathalie communicates with a friend by making coded mes-sages. Each letter of the alphabet is marked by its rank x , 1 x 26 : 1 for A , 2 for B , etc. . . The rank letter x is encoded by the rank letter y such that : 1 y 26 ; y x + 10 ( mod. 26) Examples : The letter V has rank x =22 ; we have : 1 y 26 ; y 32 ( mod. 26) so y =6 . The letter V is encoded by the letter F . 1 Copy and draw up the table below for all the letters of the alphabet. Lettre A . . . . . . . . . . . . . . . . . . . V . . . . . . . . . . . . . . . . . . . x 1 22 y 11 6 Coding K F 2 Find the coding of the word ˇ ARITHMETIQUE ı. 3 Decode the word ˇ OEBY ı. Part II 1 Noting that 999=27 × 37 , demonstrate that : 10 3 1 ( mod. 37) ; 10 30 1 ( mod. 37) 2 Demonstrate that, for any natural number n , we have : 10 3 n 1 ( mod. 37) . 3 Deduce that the integer N =10 10 +10 20 +10 30 is a multi-ple of 37. (Note that 10 10 =10 9 × 10 ) . https://chingmath.fr chapExoCorrec/21 sacados/21 chapExoCorrec/17 sacados/17
E.22 ˇ The constant battle between code de-signers and code breakers has led to a series of remarkable sci-entific breakthroughs. Designers sought to develop ever more sophisticated codes to protect communications, while code-breakers perpetually devised better methods of attacking them... Their work accelerated technological development, particularly in the case of the computer.... The art of secret communication, also known as cryptography, would provide the information age with its locks and keys ı. History of Secret Codes - Simon Singh The ASCII code (American Standard Code for Informa-tion Interchange) in computing, allows each character (letter, punctuation mark, number,. . . ) to be associated with an in-teger n , between 0 and 255. The table below shows the codes assigned to the letters of the alphabet : Letter A B C D E F G H I J K L M ASCII code 65 66 67 68 69 70 71 72 73 74 75 76 77 Letter N O P Q R S T U V W X Y Z ASCII code 78 79 80 81 82 83 84 85 86 87 88 89 90 1 ˇChiffremen keyed using arithmetic The following procedure is used to mask the initial word : to each number n , of the ASCII Code corresponding to a given letter, we associate the remainder of the division of 7 n by 256. Example: Coding of the letter B ASCII code of letter B : 66. Calculation of the new letter code B : 7 × 66 = 462 ; 462 = 256 × 1 + 206 . New letter code B : 206 Thus the word HELLO will be coded : Mot B O N J O U R ASCII code 66 79 78 74 79 85 82 New coding 206 41 34 6 41 83 62 CLE word coding a ASCII code for C : 67 ; 7 × 67 = 469 Determine the remainder of the Euclidean division of 469 by 256, deduce the new letter code C . b In the same way, determine the new code for the letter L, then the letter E, then the letter F, deducing the coding for the word CLEF. 2 ˇDéchiffremen : Let x be the new code of the letter to be discovered and n its ASCII code. a Justify that : x =7 · n ( mod. 256) b Deduce that : 193 · x = n ( mod. 256) . Let n be the remainder of the Euclidean division of 183 · x by 256. c Check that for x =206 , we have n =66 which corre-sponds to the letter B . d Decode the following word : 206 199 213 E.4 Arthur and Wilson are twins who usually communicate using coded messages. They always encrypt their messages as follows : Each letter of the alphabet with its order number n is replaced by the letter of the alphabet with order number p (1 p 26) obtained using the formula : p = 3 × n + 7 ( mod. 26) For example, the encrypted form of L is Q because : 3 × 12+7=43 and 43 = 17 ( mod. 26) . 1 Reproduce and complete the encryption table below (no justification required) . lettre A B C D E F G H I J K L M N n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 p 17 forme cryptée J Q lettre O P Q R S T U V W X Y Z n 15 16 17 18 19 20 21 22 23 24 25 26 p 1 forme cryptée A 2 Arthur sent the following message to Wilson: MIJUZ CZRI OJ IV RLLHOV . Find the decrypted form of the message. 3 Wilson wants to reply: MERCI . Give the encrypted form of this message. 5. Property of gcd and cfcm E.3865 Indicate whether the following statement is true or false and provide a proof for your an-swer. ˇThere is only one pair ( a ; b ) of natural numbers such that : a<b ; PPCM ( a ; b ) PGCD ( a ; b )=1 ı E.3866 Indicate whether the following proposition is true or false and give a demonstration of the chosen answer. ˇWe consider the equation : ( E ): x 2 52 x +480=0 where x is a natural number. There exist two non-zero natural numbers whose PGCD and PPCM are solutions of the equation ( E ) https://chingmath.fr sacados/22 Liban - 2004 - 7 points - au choix chapExoCorrec/4 sacados/4 chapExoCorrec/3865 sacados/3865 chapExoCorrec/3866 sacados/3866 Extrait Liban Juin 2010
E.4118 Let U n be the numerical sequence defined by: U 0 = 0 U n +1 = 2 · U n + 1 pour tout n N 1 Show that, for any natural number n , U n +1 and U n are prime to each other. 2 Show that for any natural number n : U n = 2 n 1 3 Show that, for all non-zero natural numbers n and p such that n p : U n = U p · U n p + 1 + U n p The notation pgcd ( a ; b ) is used, in the following, to designate the greatest common divisor of two natural numbers a and b . 4 Show for n p equality: pgcd ( U n ; U p ) = pgcd ( U p ; U n p ) 5 Let n and p be two non-zero natural numbers, show that : pgcd ( U n ; U p ) = U pgcd ( n ; p ) Determine the integer: pgcd ( U 2005 ; U 15 ) . 6. Fermat’s little theorem E.3192 The aim of the exercise is to study certain divisibility properties of the integer 4 n 1 , when n is a natural number. We recall the property known as Fermat’s little theorem : ˇ If p is a prime integer and a a prime natural number with p , then a p 1 1 0 ( mod. p ) ı Part A. Some examples. 1 Demonstrate that, for any natural number n , 4 n is con-gruent to 1 modulo 3 . 2 Prove, using Fermat’s little theorem, that 4 28 1 is divis-ible by 29 . 3 For 1 n 4 , determine the remainder of the division of 4 n by 17 . Deduce that, for any integer k , the integer 4 4 k 1 is divisible by 17 . 4 For which natural integers n is the integer 4 n 1 divisible by 5? 5 Using the previous questions, determine four prime divi-sors of 4 28 1 . Part B. Divisibility by a prime integer Let p be a prime integer other than 2 . 1 Prove that there exists an integer n 1 such that : 4 n 1 ( mod. p ) . 2 Let n 1 be a natural number such that 4 n 1 ( mod. p ) . Let b be the smallest strictly positive integer such that 4 b 1 ( mod. p ) and r the remainder of the Euclidean division of n by b : a Prove that 4 r 1 ( mod. p ) . Deduce that r = 0 . b Prove the equivalence : 4 n 1 is divisible by p if, and only if, n is a multiple of b . c Deduce that b divides p 1 . E.4275 Recall the property known as Fer-mat’s little theorem : ˇ If p is a prime integer and q a prime natural number with p , then q p 1 1 ( mod. p ) . ı Consider the sequence u n defined for any non-zero natural number n by: u n = 2 n + 3 n + 6 n 1 Let p be a prime integer strictly greater than 3 . 1 Show that : 6 × 2 p 2 3 ( mod. p ) ; 6 × 3 p 2 2 ( mod. p ) 2 Infer that : 6 · u p 2 0 ( mod. p ) . https://chingmath.fr sacados/4118 Extrait d'Amerique du Sud Novembre 2005 chapExoCorrec/3192 sacados/3192 chapExoCorrec/4275 sacados/4275
E.3252 1 Consider the equation ( E ) : 109 x 226 y =1 where x and y are relative integers. a Determine the pgcd of 109 and 226. What can we con-clude about the equation ( E ) ? b Show that the set of solutions to ( E ) is the set of pairs of the form (141+226 k ; 68+109 k ) , where k belongs to Z . Deduce that there exists a unique non-zero natural number d less than or equal to 226 and a unique non-zero natural number e such that : 109 d =1+226 e . (The values of the integers d and e will be specified) 2 Demonstrate that 227 is a prime integer. 3 Note A the set of 227 natural integers a tels that : a 226 . Consider the two functions f and g de A dans A définies as follows : to any integer of A , f associe the remainder of the Euclidean division of a 109 par 227; to any integer of A , g associates the remainder of the Euclidean division of a 141 par 227. a Check that : g f (0) =0 . Recall the following result called Fermat’s little theo-rem: Si p est a prime integer and a un integer not divisible by p alors a p 1 1 ( mod. p ) b Show that, whatever the non-zero integer a de A : a 226 1 ( mod. 227) . c Using 1 b , deduce that, whatever the non-zero in-teger a of A : g f ( a ) = a . What can we say about : f g ( a ) = a ? E.3625 1 Consider the set : A 7 = 1 ; 2 ; 3 ; 4 ; 5 ; 6 a For each element of A 7 write in the table in the ap-pendix the single element y of A 7 such that : a · y 1 ( mod. 7) . b For x relative integers, demonstrate that : the equation 3 x 5 ( mod. 7) is equivalent to x 4 ( mod. 7) . c For x relative integers, show that the only relative in-tegers x solutions to the equation a · x 0 ( mod. 7) are multiples of 7 . 2 Throughout this question, p is a prime integer greater than or equal to 3 . We consider the set A p = 1 ; 2 ; ::: ; p 1 of non-zero natural integers strictly less than p . Let a be an element of A p . a Check that a p 2 is a solution to the equation : a · x 1 ( mod. p ) . b We note r the remainder in the Euclidean division of a p 2 by p . Prove that r is the unique solution x in A p , of the equation a · x 1 ( mod. p ) . c Let x and y be two relative integers. Prove that x · y 0 ( mod. p ) if, and only if, x is a multiple of p where y is a multiple of p . d Application : p =31 . Solve the equations in A 31 : 2 x 1 ( mod. 31) et 3 x 1 ( mod. 31) . Using the previous results, solve the equation : Z 6 x 2 5 x + 1 0 ( mod. 31) E.3867 Recall the property, known as Fer-mat’s little theorem : ˇ soit p a prime integer and a a prime natural number with p ; then a p 1 1 est divisible by p ı. 1 So p un odd prime integer. a Show that there exists a natural number k , non-zero, such that : 2 k 1 ( mod. p ) . b So k is a non-zero natural number such that 2 k 1 ( mod. p ) et is n un a natural number. Show that, if k divides n , then : 2 n 1 ( mod. p ) . c So b tel that 2 b 1 ( mod. p ) , b étant the smallest non-zero integer verifying this property. Show, using Euclidean division of n by b , that : si 2 n 1 ( mod. p ) alors b divise n . 2 Let q be an odd prime integer and the integer A =2 q 1 . Let p be a prime factor of A . a Prove that : 2 q 1 ( mod. p ) b Show that p is odd. c Let b such that 2 b 1 ( mod. p ) , b being the smallest non-zero integer satisfying this property. Show, using 1 , that b divides q . Deduce that b = q . d Show that q divides p 1 , then show that p 1 ( mod. 2 q ) . 3 Let A 1 =2 17 1 . Here is the list of prime numbers less than 400 and which are of the form 34 m +1 , with m a non-zero integer: 103, 137, 239, 307. Deduce that A 1 is prime. https://chingmath.fr chapExoCorrec/3252 sacados/3252 Liban Juin 2005 5 points sacados/3625 chapExoCorrec/3867 sacados/3867
E.3868 For any natural number n superior or equal to 2 , we pose : A ( n ) = n 4 + 1 The object of the exercise is to study the prime divisors of A ( n ) . 1 Some results : a Study the parity of the integer A (11) . b Show that, whatever the integer n , A ( n ) n is not a multiple of 3 . c Show that any integer d divisor of A ( n ) est prime with n . d Show that, for any integer d divisor of A ( n ) : n 8 1 ( mod. d ) 2 Criteria search : Let d be a divisor of A ( n ) . We denote s the smallest of the non-zero natural integers k such as : n k 1 ( mod. d ) a Let k be such an integer. Using the Euclidean division of k by s , show that s divides k . b Deduce that s is a divisor of 8 . c Show that if, in addition, d is prime, then s is a divisor of d 1 . Fermat’s little theorem can be used. 3 Search for prime divisors of A ( n ) in the case where n is an even integer. Let p be a prime divisor of A ( n ) . By examining the cases successively: s = 1 ; s = 2 ; s = 4 conclude that p is congruent to 1 modulo 8. 4 In this question, any attempt at research, even if incom-plete, will be taken into account in the assessment. Apply the above to find the prime divisors of A (12) . Note: the list of prime numbers congruent to 1 modulo 8 begins with 17, 41, 73, 89, 97, 113, 137. . . . E.4327 We recall the property known as Fermat’s little theorem : If p is a prime integer and a is a natural integer not divisible by p , alors a p 1 1 ( mod. p ) . Consider the sequence u n of natural integers defined by: u 0 = 1 ; u n +1 =10 · u n +21 for any integer n N 1 Calculate u 1 , u 2 et u 3 . 2 a Prove by recurrence that, for any natural number n : 3 · u n = 10 n +1 7 b Deduce, for any natural number n , the decimal repre-sentation of u n . 3 Show that u 2 is a prime integer. We now propose to study the divisibility of the terms of the sequence u n by certain prime integers. 4 Prove that, for any natural number n , u n is not divisible by 2 , 3 , or 5 . 5 a Prove that, for any natural number n : 3 · u n 4 ( 1) n ( mod. 11) b Deduce that, for any natural number n , u n is not di-visible by 11 . 6 a Prove the equality: 10 16 1 ( mod. 17) . b Deduce that, for any natural number k , u 16 k +8 is di-visible by 17 . E.8701 Determine the set of pairs ( p ; q ) of prime integers verifying such that p q and that the product p × q divides the sum 2 p +2 q 7. PPCM E.3863 Throughout the exercise x and y denote non-zero natural integers verifying x<y . S is the set of couples ( x ; y ) such that : PGCD ( x ; y ) = y x 1 a Calculate PGCD (363 ; 484) . b Does the couple (363 ; 484) belong to S ? 2 Let n be a non-zero natural number; does the pair ( n ; n +1) belong to S Justify your answer. 3 a Show that ( x ; y ) belongs to S if, and only if, there exists a non-zero natural number k such that : x = k · ( y x ) ; y = ( k + 1)( y x ) b Deduce that for any pair ( x ; y ) of S , we have : PPCM ( x ; y ) = k · ( k + 1) · ( y x ) 4 a Determine the set of natural numbers that are divi-sors of 228 . b Deduce the set of pairs ( x ; y ) of S such that : PPCM ( x ; y ) = 228 E.4280 Consider the equation ( F ): x 2 52 · x +480=0 where x is a natural number. Show that there are no two non-zero natural numbers whose PGCD and PPCM are solutions of the equation ( F ) . E.3864 1 Let a and b be non-zero natural numbers such that : PGCD ( a + b ; a · b ) = p where p is a prime integer. a Demonstrate that p divides a 2 . (Note that a 2 = a ( a + b ) a · b ) b Deduce that p divides a . So, similarly, we see that p divides b . c Demonstrate that PGCD ( a ; b ) = p . 2 We denote by a and b natural numbers such that a b . a Solve the system : PGCD ( a ; b ) = 5 PPCM ( a ; b ) = 170 b Deduce the solutions of the system : PGCD ( a + b ; a · b ) = 5 PPCM ( a ; b ) = 170 https://chingmath.fr sacados/3868 chapExoCorrec/4327 sacados/4327 Polynesie Juin 2011 7 points A voir dans quelle categorie le mettre chapExoCorrec/8701 sacados/8701 chapExoCorrec/3863 sacados/3863 chapExoCorrec/4280 sacados/4280 Extrait de Liban Juin 2010 sacados/3864 Antilles guyane Septembre 2001 5 points