Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Number Theory Worksheet 3 β Modular Arithmetic All SMC, BMO and Mentoring problems are © UKMT (www.ukmt.org.uk) 1. If π can be any natural number: a. What are the possible remainders when π4 is divided by 3? b. For what powers of π do we obtain the same residues as in (a)? 2. Suppose that π3 was expressed in the form 7π + π, for positive integers π, π, π. For which π is this possible? 3. Determine the arithmetic sequence of the following number of primes, such that the last term in the sequence is the smallest possible value: (for example, for 3 primes, the arithmetic sequence would be 3, 5, 7, and for 4 primes, the arithmetic sequence would be 5, 11, 17, 23) a. 5 primes. b. 6 primes. 4. [Source: Based on a UKMT Mentoring question] Suppose that 1! + 2! + 3! + β― + π! = π 2 where π and π are integers. By considering possible residues for the RHS modulo-10 and similarly the residues on the LHS modulo-10 as π increases, find all integer solutions. 5. Give the form of all numbers which leave a remainder of 1 when divided by any of 2, 3 or 5. 6. [Source: UKMT Mentoring] Find all values for which π2 + 14 is prime, where π is prime (Hint: as per the lecture slides, consider different moduli). 7. Give the form of all integers π such that 2π β π2 is divisible by 7. (Hint: consider the residues of 2π and π2 as π increases) www.drfrostmaths.com/rzc Number Theory Worksheet 3 β Modular Arithmetic - ANSWERS 1. If π can be any natural number: (a) What are the possible remainders when ππ is divided by 3? (b) For what powers of π do we obtain the same residues? If π β‘ 0, 1, 2 (πππ 3) then π4 β‘ 0, 1, 1 (πππ 3). Weβll obtain the same residues for any even power, because if π2 β‘ 0, 1, 1 (πππ 3) then be laws of modular arithmetic, (π2 )π = 0π , 1π , 1π = 0, 1, 1 (πππ 3), and π2π represents any even power of π. 2. Suppose that ππ was expressed in the form ππ + π, for positive integers π, π, π. For which π is this possible? The possible remainders of π3 modulo-7 are 0, 1, 1, 6, 1, 6, 6. And the remainder of 7π + π in modulo-7 is obviously π. Thus we require that π = 2, 3, 4, 5. 3. Determine the arithmetic sequence of the following number of primes, such that the last term in the sequence is the smallest possible value: (for example, for 3 primes, the arithmetic sequence would be 3, 5, 7, and for 4 primes, the arithmetic sequence would be 5, 11, 17, 23) a. 5 primes. Using the principles from the slides, our difference has to be divisible by 2 otherwise weβd have an even number (not prime!) every other number, and weβd have a number divisible by 3 every third number if the difference wasnβt divisible by 3 (recall that we see all possible residues modulo-3 each 3 numbers if the difference is coprime to 3, and since 3 is prime, it will be coprime with any number that is not a multiple of itself). If the first number was 5 (which is prime), then we wouldnβt need the difference to be divisible by 5 because the next number divisible by 5 wouldnβt be until 5 numbers later in the sequence (i.e. beyond the end of the list). So the difference has to be divisible by at least 2 × 3 = 6 if the first number is 5, and be divisible by 2 × 3 × 5 = 30 if the first number isnβt 5. And indeed this works: 5, 11, 17, 23, 29. b. 6 primes. By the same reasoning as above, the difference must be divisible by 2, 3 and 5, and thus divisible by 30. The first term then canβt be 2, 3 or 5. But making the first term 7 and the difference 30 works: 7, 37, 67, 97, 127, 157. 4. Suppose that π! + π! + π! + β― + π! = ππ where π and π are integers. By considering possible residues for the RHS modulo-10 and similarly the residues on the LHS modulo-10 as π increases, find all integer solutions. π! is divisible by 10 when π β₯ 5, i.e. 1! + 2! + 3! + 4! + 5! + β― + π! = 1 + 2 + 6 + 4 + 0 + 0 + 0 + β― β‘ 3 (πππ 10). The possible residues of square number modulo-10 are 1, 4, 9, 6, 5, 6, 9, 4, 1, 0. Since the residue canβt be 3, the equation has no solutions when π β₯ 4. All that remains is to check www.drfrostmaths.com/rzc π = 1, 2, 3: 1! = 1 (which is a square, so π = π = 1 is a solution) 1! + 2! = 3 (which is not square) 1! + 2! + 3! = 9 (which is square, so π = π = 3 is a solution) 5. Give the form of all numbers which leave a remainder of 1 when divided by any of 2, 3 or 5. Since 2, 3 and 5, the lowest common multiple of these numbers is 2 × 3 × 5 = 30. Clearly a number is divisible by 2, 3 and 5 if and only if it is a multiple of 30. Thus a number of the form 30π + 1 where π β₯ 0 will give a remainder of 1. 6. Find all values for which ππ + ππ is prime, where π is prime (Hint: as per the lecture slides, consider different moduli). In modulo-3, the possible residues of π are 0, 1 and 2. But we can exclude the 0 case because otherwise π would be divisible by 3 and thus not prime. The possible residues of π2 are 1, 1, and thus 0, 0 once we add the 14. These are both divisible by 3. Thus there are no values for which π2 + 14 is prime. 7. Give the form of all integers π such that ππ β ππ is divisible by 7. Letβs work in modulo 7, so that we require 2π β π2 β‘ 0 (πππ 7). Trying the first few values of π gives us 2, 4, 1, 2, 4, 1, where we can clearly see with have a cycle every 3 digits (the reason is because if 23 β‘ 1(πππ 7), then 23π β‘ 1π β‘ 1 (πππ 7), so that the remainder is 1 whenever the power is multiple of 3). As we similarly consider π2 , we get the residues, 1, 4, 2, 2, 4, 1, 0 as π increases. Since one cycles every 3 values and the other every 7 values, the two combined cycle every 21 (i.e. the Lowest Common Multiple of 3 and 7). Writing out these residues, we find that we get a remainder of 0 overall when π β‘ 2, 4, 5, 6, 10, 15 (πππ 21). Thus the form of π is 21π + 2, 21π + 4, etc. www.drfrostmaths.com/rzc