ch08 Student
ch08 Student
8.1 Divisibility
1
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
2
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
8.1.3 Prove that if x and y are non-zero integers such that x | y and
y | x then either x = y or x = −y. [Hint: you may assume that if a
and b are integers such that ab = 1 then a = b = 1 or a = b = −1.
But how would you prove this?]
3
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
Discussion Both parts can be done either by long division or, with
care, on a calculator, and such practice should help in understand-
ing Theorem 8.2 and its consequences. Unless the remainder is 0
(i.e. the division is exact) then, if using a calculator, it is necessary
to round down to get the integer q and then to use that value to
calculate r.
The answers are: (i) q = 91, r = 0; (ii) q = 52, r = 177.
4
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
5
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
6
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
For (ii),
(4165)7 =
5 × 70 + 6 × 71 + 1 × 72 + 4 × 73 =
5 + 42 + 49 + 4 × 243 = (1468)10 ,
or simply 1468.
7
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
8.4.1 Find the gcd of 721 and 448 and express it in the form
721m + 448n with m, n ∈ Z.
Solution We have
721 = 1 × 448 + 273
448 = 1 × 273 + 175
273 = 1 × 175 + 98
175 = 1 × 98 + 77
98 = 1 × 77 + 21
77 = 3 × 21 + 14
21 = 1 × 14 + 7
14 = 2 × 7 + 0
Hence gcd(721, 448) = 7, and reversing the calculation (from the
penultimate line) we have
7 = 21 − 14 = 21 − (77 − 3 × 21) = 4 × 21 − 77 =
4 × (98 − 77) − 77 = 4 × 98 − 5 × 77 =
4 × 98 − 5 × (175 − 98) = 9 × 98 − 5 × 175 =
9 × (273 − 175) − 5 × 175 = 9 × 273 − 14 × 175 =
9 × 273 − 14 × (448 − 273) = 23 × 273 − 14 × 448 =
23 × (721 − 448) − 14 × 448 = 23 × 721 − 37 × 448
/CTD
8
so gcd(721, 448) = 7 = 721 × 23 + 448 × (−37).
9
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
8.4.2 Show that if there are integers m and n such that mu+nv = 1
then gcd(u, v) = 1.
10
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
8.4.3 Let a and b be positive integers and let d = gcd(a, b). Prove
that there are integers x and y which satisfy the equation ax+by = c
if and only if d | c.
11
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
Solution We have
Hence gcd(966, 686) = 14, which does divide 70, and reversing the
calculation (from the penultimate line) we have
14 = 126 − 4 × 28 = 126 − 4 × (280 − 2 × 126) =
9 × 126 − 4 × 280 = 9 × (686 − 2 × 280) − 4 × 280 =
9 × 686 − 22 × 280 = 9 × 686 − 22 × (966 − 686) =
31 × 686 − 22 × 966
and since 70 = 5 × 14 we have 70 = 966 × (−110) + 686 × 31. Thus
we can take x = −110 and y = 31 (though, as at Ex. 8.4.1 this
solution is not unique).
12
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
13
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
Discussion Once the integer N has been identified, the usual first
step is to try small primes, so see if they divide N . But it turns out
that N has no prime factors smaller than 100, which is discouraging.
But looking ahead (to Ex. 8.6.3 below), the presult there suggests it
might be best to start with primes near (N ), rather than with
small primes.
The first few such integers would be 3703, 3701, 3697 (excluding
3699 as an obvious multiple of 3), and so on. With a little more work
it turns out that N = 13717421 = 3607×3803, so is not prime. With
significantly more work still, it is possible (using Ex. 8.6.3 again) to
verify that 3607 and 3803 are themselves both prime, which con-
firms that starting with 2, 3, . . . and working up would be a pretty
time consuming process.
14
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
15
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
8.6.1 Find the prime factorizations of 201, 1001, and 201 000.
16
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
17
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
18
X = ∅; hence every integer m ≥ 2 is divisible by a prime q.
Now let Y be the set of all composite integers n ≥ 2 which do
not have the property that, for some prime divisor p of n, p2 ≤ n:
formally Y =
{n ∈ N | n ≥ 2, n composite, if p ∈ N is prime and p | n then n < p2 }.
Solution
p By direct calculation, 467 < 222 = 484, or by calculator
(467) = 21.6 (1 dec. pl.), so on either ground we need only look
at primes p ≤ 21, that is at 2, 3, 5, 7, 11, 13, 17 and 19. Dividing
either by hand or using a calculator, it is clear that none of these 8
primes does divide 467, which must therefore be prime by the the-
orem just proved.
19
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
20
Solutions to Chapter 8 Exercises
in Discrete Mathematics by Norman L. Biggs;
2nd Edition 2002
21
(4m + 1) × (4n + 1) = 16mn + 4(m + n) + 1 = 4(4mn + m + n) + 1.
Now (4mn + m + n) ∈ {0, 1, 2, . . .} from the properties of Z, so
(4m + 1) × (4n + 1) ∈ H, as required.
It is easy to see that 441 = 9 × 49 = 212 , simply using factoriza-
tion in N, so that a = 9, b = 49, c = 21 would fit the bill if each was
an H-prime. The prime factorization of 9 in N is 9 = 32 , but 3 ∈ /H
and 9 has no other non-trivial factorization in H, since it has none
in N; hence 9 is an H-prime. Virtually identical considerations show
that 49 is an H-prime, and we have the factorization 21 = 3 × 7 in
N which can similarly be used to show that 21 is also an H-prime.
The argument at the start of Section 8.6 can be adopted, virtually
word for word, to show (by the principle of induction) that every
element of H is a product of H-primes, as also can the initial section
of Exercise 8.6.3, Proof 1. But the example of factorizations of 441
shows that the H-primes involved, and the powers to which they
are raised, are not unique.
This is because, in the proof of Theorem 8.6.2, it is essential to use
the crucial property of prime numbers established in Theorem 8.6.1,
which can be mildly restated as:
22