Number Theory (Intermediate)
Level 4 — Application (novel problems, no hints) Time limit: 60 minutes Total marks: 50
Question 1. [10 marks]
(a) Find the smallest positive integer formed using only the digits and (in decimal) that is divisible by . Justify your answer using divisibility rules. [6]
(b) A number has decimal representation (a four-digit number with unknown leading digit and unknown units digit ). Determine all pairs for which is divisible by and also by . [4]
Question 2. [10 marks]
(a) Express the repeating decimal (i.e. ) as a fraction in lowest terms. [4]
(b) Prove that is irrational. [6]
Question 3. [12 marks]
Consider the integers and .
(a) Use the Euclidean algorithm to compute , showing every division step. [4]
(b) Use the extended Euclidean algorithm to find integers such that . [5]
(c) Hence write down the general solution to the equation in part (b), and state why has no integer solutions. [3]
Question 4. [10 marks]
(a) Solve the simultaneous congruences using the Chinese Remainder Theorem, giving the unique solution modulo the appropriate modulus: [7]
(b) A basket of eggs, when counted in groups of leaves , in groups of leaves , and in groups of leaves . What is the smallest possible number of eggs greater than ? [3]
Question 5. [8 marks]
(a) State Fermat's Little Theorem. [2]
(b) Using Fermat's Little Theorem (or otherwise), compute the remainder when is divided by . Show your reasoning. [4]
(c) Compute the last digit of , justifying via modular arithmetic mod . [2]
Answer keyMark scheme & solutions
Question 1
(a) [6 marks]
Divisible by . Since digits are only :
- Divisible by ⇒ last digit is or ; only is allowed, so ends in 0. (1)
- Divisible by ⇒ digit sum divisible by ; digit sum = number of s, so we need at least nine 1s. (2)
Smallest such number: nine s followed by a : . (2)
Check: digit sum (÷9 ✓), ends in 0 (÷5 ✓), so ÷45 ✓. (1)
(b) [4 marks]
, digits .
Divisibility by : last three digits divisible by 8. , so ⇒ ⇒ . (2)
Divisibility by : alternating sum must be . With : ⇒ (invalid) or (invalid)... check : not a digit.
Reconsider: need , so ; no valid digit .
Thus no pair satisfies both. State: with but no valid ; hence no solution exists. (2)
(Full marks awarded for correctly deriving and correctly concluding no valid exists.)
Question 2
(a) [4 marks]
Let . Period length 3 ⇒ multiply by : (1) (2) (1)
(b) [6 marks]
Suppose, for contradiction, with integers, , . (1)
Then , so . Since 3 is prime, . (2) Write : , so . (2) Then and contradicts . Hence is irrational. (1)
Question 3
(a) [4 marks] Euclidean algorithm: (1) (1) (1) (1)
(b) [5 marks] Back-substitute: (1) (1) (2)
So . Check: ✓ (1)
(c) [3 marks] General solution (, , ): (2) has no solution because any such linear combination is divisible by , and . (1)
Question 4
(a) [7 marks] Moduli coprime; . . (1) Inverses: , ; , inv ; , inv . (2) (2) . (1) Check: ✓ (1)
(b) [3 marks] Solutions are . Smallest : . (3)
Question 5
(a) [2 marks] If is prime and , then . (Equivalently for all .) (2)
(b) [4 marks] , ⇒ . (1) , so . (2) . (1)
(c) [2 marks] ; cycle length 4. ⇒ . Last digit . (2)
[
{"claim":"0.135135... = 5/37", "code":"result = (Rational(135,999) == Rational(5,37))"},
{"claim":"gcd(1234,588)=2 and Bezout 71*1234-149*588=2", "code":"result = (gcd(1234,588)==2) and (71*1234 - 149*588 == 2)"},
{"claim":"CRM solution 23 satisfies all three congruences and 128 is smallest >100", "code":"result = (23%3==2 and 23%5==3 and 23%7==2 and (23+105)==128 and 128>100)"},
{"claim":"3^100 mod 7 = 4 and last digit 7^2024 = 1", "code":"result = (pow(3,100,7)==4 and pow(7,2024,10)==1)"}
]