Professional Documents
Culture Documents
Complete Solutions To Supplementary 2dasd
Complete Solutions To Supplementary 2dasd
4 Page 18 of 18
a , a , a , , a a , a , a , , a , a
1 2 3 n 1 2 3 n 1 n
We have
gcd a, b, c ab, ac, bc gcd gcd a, b , c ab, ac, bc
gcd gcd a, b , c ab,
c a, b
By result of question
xy , xz xy , z
7;
Applying Proposition (2.22):
gcd x , y x , y xy
To ab gives gcd a, b a, b ab . Putting this into the above derivation:
gcd a, b, c ab, ac, bc gcd gcd a, b , c ab, c a, b
gcd gcd a, b , c gcd a, b a, b , c a, b
by result of question 7
a, b gcd gcd a, b , c gcd a, b , c
a, b
gcd a, b c
By (2.22) gcdx , y x , y xy
with x gcda , b and y c
ab
gcd a, b c
gcd a, b
By Proposition (2.22)
abc
This is our required result so it completes our proof.
■
Complete Solutions to Supplementary Problems 2 Page 1 of 14
1. (a) We know 100 102 and the factors of 10 are 2 and 5 so:
100 102 2 5 22 52
2
1000 103 2 5 23 53
3
(c) We are given the integer 161 for which we must find the prime factors. Using a
calculator and dividing 161 by 7 (clearly 2, 3 and 5 are not factors of 161):
161
23
7
Hence 161 7 23 .
(d) Clearly 201 is divisible by 3 (because the sum of the digits add up to 3 and
3 3 ):
201
67
3
Is 67 a prime?
Yes because none of the prime factors 2, 3, 5, 7 go into 67. We have
201 3 67
(e) We need to factorize 301 into its prime factors. Dividing 301 by 7 gives
301
43
7
Therefore 301 7 43 .
2. This question is testing whether you understand the notation which is the floor
function and which is the ceiling function.
1 1 1
(a) means the closest integer less than so 0 .
2 2 2
1
(b) Similarly we have 1 .
2
(c) Converting into decimal form gives 0.785 (3dp). We have
4
0.785
4
The ceiling function of 0.785 is the closest integer which is greater than 0.785
so
Complete Solutions to Supplementary Problems 2 Page 2 of 14
0.785 0
4
(d) Similarly 0.785 1 .
4
(e) We can evaluate 7.1 7.1 by finding the ceiling and floor of 7.1 :
7.1 8 and 7.1 7
Substituting these we have
7.1 7.1 8 7 15
(f) We are given 7.1 7.1 . Using the definition of the ceiling and floor function
we have
7.1 7.1 8 8 0
4. We need to find x and x for the given x values.
(a) Substituting x 100 into x gives
100 100 10 10
Substituting x 100 into x gives
100 10 10
(b) Similarly, we have
1000 1000 31.62 31
Also 1000 31.622 31 .
Complete Solutions to Supplementary Problems 2 Page 3 of 14
y x
y x
Note that the graph of y x is below or on the graph of y x and the graph of
y x is above or on the graph of y x . Therefore, we have
x x and x x .
y x
y x
22 1 3
Hence the only prime of the form n 2 1 is 3.
■
If n 2 then n 3 1 n 1 n 2 n 1 is composite because it has factors of
n 1 2 and n 2 n 1 2 . Hence 7 is the only factor of the form n 3 1 .
■
Complete Solutions to Supplementary Problems 2 Page 6 of 14
12. It is straightforward to check that both 101 and 103 are primes. The primes p
which satisfy p 103 10 are 2, 3, 5 and 7. None of these numbers go into 101
or 103 so both these numbers are prime.
13. We are asked to prove that gcd p 1, p 2 1 2 where p is an odd prime.
Proof.
Let gcd p 1, p 2 1 g . Required to prove that g 2 .
We are given that p is odd so both p 1 and p 2 1 are even which implies that
g 2.
By the definition of gcd we have
Complete Solutions to Supplementary Problems 2 Page 8 of 14
g p 1 and g p 2
1
Applying the Linear Combination Theorem (1.3):
g p 2 1 p 1
g p 2
p g p p 1
We are given that p is prime and from above we have g 2 so g p and the
gcd g, p 1 . By Euclid’s Lemma g p 1 .
We have g p 1 and g p 1 . Again applying the Linear Combination
Theorem (1.3) we obtain
g p 1 p 1 g 2
g 2
Because g 2
14. We need to show that there are infinitely many primes that end in 111.
Proof.
To prove this result, we use Dirichlet’s Theorem (2.17):
Let a and b be relatively prime positive integers, then the arithmetic progression
a, a b, a 2b, a 3b,
contains infinitely many primes.
Let a 111 and b 1000 then gcd 111, 1000 1 which means we can apply
Dirichlet’s theorem with a 111 and b 1000 . The list
111, 111 1000, 111 2 1000, 111 3 1000,
111, 1111, 2111, 3111, 4111,
contains infinitely many primes. This completes our proof.
■
15. We are asked to prove infinitely many primes of the form 8n 3 . How?
Use Dirichlet’s Theorem:
Proof.
Let a 3 and b 8 then gcd 3, 8 1 and applying Dirichlet’s Theorem with
a 3 and b 8 we have the list of integers:
Complete Solutions to Supplementary Problems 2 Page 9 of 14
p 2 2p 1 p 1
2
2
p 4 4p 2 5 p 2 2 1
By the result of the previous question we know that p 2 is odd. Also odd number
2m 1
2
4m 2 4m 1
2
p 4 4 p 2 5 p 2 2 1 odd integer 1 even
Hence p 4 4 p 2 5 is an even integer so it is composite because the only even
which is prime is 2 and p 4 4 p 2 5 cannot equal 2 for prime p. We have our
result.
■
k k k
19. Proof. Let n ' p1 1 p22 pmm be the prime decomposition of the square root of n.
Then
2
n n ' p1 1 p22 pmm
2 k k k 2k 2k 2k
p1 1 p2 2 pm m
Every exponent of the prime is even. This is our required result.
■
n 3 1 n 1 n 2 n 1 (†)
Of course, this integer is composite because it has a factor of 11.
(b) Similarly we have f n 2n 2 29 is prime for all the integers between 1 and
28 (inclusive) but when n 29 we have
This is clearly a composite number with a factor of 29.
0 if x is an integer
23. We are asked to show that x x
1 if x is not an integer
Proof.
We consider the two different cases.
Case I: Let x be an integer, then
x x x x 0
Case II: Assume x is not an integer. Let x n y where 0 y 1 . Then
x x n y n y
n n y
n n 1 1
In both cases we have our given result.
24. We need to prove that a, b a b provided a and b are relatively prime.
Proof.
We are given that a and b are relatively prime so there exists integers r and s such
that ar bs 1 . Let a, b m then by the definition of LCM we have
a m , b m implies ak m, bl m
We have
m 1 m ar bs m
arm bsm
arbl bsak ab rl sk
Complete Solutions to Supplementary Problems 2 Page 12 of 14
x z and y z , and gcd x , y 1 then x y z
To a m , b m where gcd a, b 1 implies
a b m implies a b m
In (*) we had m a b and now we have a b m therefore
a, b m a b
This completes our proof.
■
25. We are asked to prove that gcd a, b a, b a b .
Proof.
Let m a, b and g gcd a, b then
ab ab ab
a and b implies a, b m (†)
g g g
We also have
a m , b m which implies ak m, bl m
From g gcd a, b we have integers r and s such that
ar bs
g ar bs 1
g
ab
Now we show that m:
g
ar bs ar bs
m m 1 m m m
g g g
ar bs Because m bl ak
bl ak
g g
ab
rl sk
g
ab ab ab
This m rl sk implies m . Hence m a, b .
g g g
By (†) and this we have
ab ab ab
m and m which implies m
g g g
Complete Solutions to Supplementary Problems 2 Page 13 of 14
Therefore ab gm gcd a, b a, b . This completes our proof.
■
26. (a) We are asked to prove that if a n 1 is prime then a 2 and n is prime.
Proof.
Factorizing a n 1 gives
a n 1 a 1 a n 1 a n 2 a 1
If a 1 then a n 1 is zero because a 1 is a factor of this number.
If a 3 then a n 1 is composite because a 1 2 is a factor of a n 1 . This
implies that we must have a 2 because we are given a n 1 is prime.
We also need to show that n is prime. We prove this part by contradiction.
Suppose n rs is composite so r 1 and s 1 . Then by using the following
identity:
x rs 1 x r 1 x r s 1
x
r s 2
x
r s 3
xr 1
With x a we have
a n 1 a rs 1 a r 1 a
r s 1
a
r s 2
a
r s 3
ar 1 (†)
We have already established that a 2 . The first factor on the right hand side of
(†) is equal to a r 1 2r 1 and from above we have r 1 so a r 1 2r 1 is a
factor greater than 2. Hence the integer a n 1 in (†) is composite. This is a
contradiction because we are given that a n 1 is prime. Therefore, our supposition
n rs is composite must be false so n is prime. This completes our proof.
■
(b) We need to prove that if a 3 then a 1 is composite. n
Proof.
We need to use the following algebraic identity:
x n 1 x 1 x n 1 x n 2 x 1
Substituting x a into this gives
a n 1 a 1 a n 1 a n 2 a 1
The first factor a 1 3 1 2 and the second factors are all greater than 2
because a n 1 a n 2 a 1 3 1 4 . Hence a n 1 is composite.
■
Complete Solutions to Supplementary Problems 2 Page 14 of 14
gcd p, a 1 . Writing
p a n as p a a n 1
Applying Euclid’s Lemma (1.13):
If x yz with gcd x , y 1 then x z .
To p a a n 1 we have p a n 1 . We can rewrite this as p a a n 2 . Again, applying
Euclid’s Lemma to this p a a n 2 gives p a n 2 . We can repeat this process until