Question 3

OCR B (MEI) Further Maths June 2017 Further pure mathematics with technology (4798-01)Older specification23 marks

On the specification

(i)
OT1 Overarching theme: mathematical argument, language and proofT8-T10 Further Pure with Technology: Diophantine equations
(ii)
TT1-T2 Further Pure with Technology: Programming for number theoryT8-T10 Further Pure with Technology: Diophantine equations
(iii)
T4-T7 Further Pure with Technology: Congruences and modular arithmetic
(iv)
TT1-T2 Further Pure with Technology: Programming for number theoryT8-T10 Further Pure with Technology: Diophantine equations
(v)
T4-T7 Further Pure with Technology: Congruences and modular arithmetic
Question text

3 This question investigates those positive integers, n, which can be expressed as the sum of the squares of two positive integers a and b, and those which can be expressed as the sum of the squares of three positive integers a, b and c. 22 (i) Show that if n = a +b then a 1 n and b 1 n. [1] 22 (ii) Create a program that will find all possible values of a and b such that n = a +b for a given value of n, where a G b. You should write out your program in full. 22 Use your program to find all such ways of expressing n in the form a +b for n = 1009, n = 10 91 and n = 1037. [8] 22 (iii) By considering all the possible values of a (mod4) and b (mod4), show that if n / 3(mod4) then n 22 cannot be expressed in the form a +b . [5] 22 2 (iv) Edit your program so that it will find all possible values of a, b and c such that n = a +b +c for a given value of n, where a G b G c. You should state the changes you have made to your program. 22 2 Use your program to find all such ways of expressing n in the form a +b +c for n = 161 and n = 167. [4] 22 2 (v) Show that if n / 7(mod8) then n cannot be expressed in the form a +b +c . [5]