(a) (i) By considering Euclid's algorithm, show that the highest common factor of two positive integers a and b can be written in the form αa+βb for suitable integers α and β. Find an integer solution of
15x+21y+35z=1
Is your solution unique?
(ii) Suppose that n and m are coprime. Show that the simultaneous congruences
x≡ax≡b(modn)(modm)
have the same set of solutions as x≡c(modmn) for some c∈N. Hence solve (i.e. find all solutions of) the simultaneous congruences
3x≡15x≡17x≡1(mod5)(mod7)(mod3)
(b) State the inclusion-exclusion principle.
For integers r,n⩾1, denote by ϕr(n) the number of ordered r-tuples (x1,…,xr) of integers xi satisfying 1⩽xi⩽n for i=1,…,r and such that the greatest common divisor of {n,x1,…,xr} is 1 . Show that
ϕr(n)=nrp∣n∏(1−pr1)
where the product is over all prime numbers p dividing n.