Discrete Math Full WS
Discrete Math Full WS
(a) Use the Euclidean algorithm to find the greatest common divisor of the numbers
56 and 315.
(4)
(b) (i) Find the general solution to the diophantine equation 56x + 315y = 21.
(ii) Hence or otherwise find the smallest positive solution to the congruence
315x ≡ 21 (modulo 56).
(9)
(Total 13 marks)
A B C D E
A – 19 17 10 15
B 19 – 11 16 13
C 17 11 – 14 13
D 10 16 14 – 18
E 15 13 13 18 –
(a) By first finding a minimum spanning tree on the subgraph of H formed by deleting vertex
A and all edges connected to A, find a lower bound for this problem.
(5)
3. (a) Given that a, b ∈ and c ∈ +, show that if a ≡ 1 (mod c), then ab ≡ b (mod c).
(2)
(b) Using mathematical induction, show that 9n ≡ l (mod 4), for n ∈ .
(6)
(c) The positive integer M is expressed in base 9. Show that M is divisible by 4 if the sum of
its digits is divisible by 4.
(4)
(Total 12 marks)
(a) (i) Determine if any Hamiltonian cycles exist in G. If so, write one down.
Otherwise, explain what feature of G makes it impossible for a Hamiltonian cycle
to exist.
(ii) Determine if any Eulerian circuits exist in G. If so, write one down.
Otherwise, explain what feature of G makes it impossible for an Eulerian circuit to
exist.
(4)
(b) (i) Write down the adjacency matrix for G.
(ii) Find the pair of distinct vertices that are linked by the smallest number of walks of
length 5.
(iv) Identify the vertex that is linked to itself by the largest number of
walks of length 5.
(7)
(c) Prove that no more than 3 edges can be added to G while keeping it planar and simple.
(4)
(d) Given that G′ (the complement of G) is planar, find the number of faces in G′.
(3)
(Total 18 marks)
5. (a) Explaining your method fully, determine whether or not 1189 is a prime number.
(4)
(ii) The positive integers M and N have greatest common divisor G and least common
multiple L. Show that GL = MN.
(6)
(Total 10 marks)
6. (a) Prove that if gcd(a, b) = 1 and gcd(a, c) = 1, then gcd (a, bc) = 1.
(5)
(b) (i) A simple graph has e edges and v vertices, where ν > 2. Prove that if all the
vertices have degree at least k, then 2e ≥ kv.
(ii) Hence prove that every planar graph has at least one vertex of degree less than 6.
(6)
(Total 11 marks)
7. A canal system divides a city into six land masses connected by fifteen bridges, as shown in the
diagram below.
8. (a) Given the linear congruence ax ≡ b(mod p), where a, b ∈ , p is a prime and
p–2
gcd (a, p) = 1, show that x ≡ a b (mod p).
(4)
(ii) Use the solution found in part (i) to find the general solution to the Diophantine
equation 17x + 21y = 14.
(10)
(Total 14 marks)
9. (a) (i) One version of Fermat’s little theorem states that, under certain conditions,
Show that this result is not valid when a = 4, p = 9 and state which condition is not
satisfied.
(ii) Given that 564 ≡ n(mod 7), where 0 ≤ n ≤ 6, find the value of n.
(8)
(b) Find the general solution to the simultaneous congruences
x ≡ 3(mod 4)
3x ≡ 2(mod 5).
(6)
(Total 14 marks)
(a) Show that N is divisible by 3 if the least significant digit, a0, is divisible by 3.
(3)
(c) Without using a conversion to base 10, determine whether or not (464860583)9 is
divisible by 12.
(6)
(Total 12 marks)
v + f – e = 2.
(7)
(b) Assuming that v ≥ 3, explain why, for a simple connected planar graph, 3f ≤ 2e and hence
deduce that e ≤ 3v – 6.
(4)
(c) The graph G and its complement G′ are simple connected graphs, each having
12 vertices. Show that G and G′ cannot both be planar.
(7)
(Total 18 marks)
12. Given that a, b, c, d ∈ , show that
(ii) Write down the degrees of all the vertices of G and all the vertices of G′.
(a) (i) Explain briefly what features of the graph enable you to state that G has an
Eulerian trail but does not have an Eulerian circuit.
(b) (i) Use Kruskal’s algorithm to find and draw the minimum spanning tree for G.
Your solution should indicate the order in which the edges are added.
(c) Use Dijkstra’s algorithm to find the path of minimum total weight joining A to D, and
state its weight. Your solution should indicate clearly the use of this algorithm.
(10)
(Total 18 marks)
16. (a) Find the general solution for the following system of congruences.
N ≡ 3 (mod 11)
N ≡ 4 (mod 9)
N ≡ 0 (mod 7)
(9)
(a) (i) Use Kruskal’s algorithm to find the minimum spanning tree. Indicate the order in
which you select the edges and draw the final spanning tree.
(ii) Write down the total weight of this minimum spanning tree.
(8)
(b) Sketch a spanning tree of maximum total weight and write down its weight.
(4)
(Total 12 marks)
Find a0.
(5)
19. (a) A graph has n vertices with degrees 1, 2, 3, …, n. Prove that n ≡ 0 (mod 4) or
n ≡ 3 (mod 4).
(6)
(b) Let G be a simple graph with n vertices, n ≥ 2. Prove, by contradiction, that at least two
of the vertices of G must have the same degree.
(8)
(Total 14 marks)
20. Sameer is trying to design a road system to connect six towns, A, B, C, D, E and F.
The possible roads and the costs of building them are shown in the graph below.
Each vertex represents a town, each edge represents a road and the weight of each edge is the
cost of building that road. He needs to design the lowest cost road system that will connect the
six towns.
(a) Name an algorithm that will allow Sameer to find the lowest cost road system.
(1)
(b) Find the lowest cost road system and state the cost of building it. Show clearly the steps
of the algorithm.
(7)
(Total 8 marks)
21. (a) Use the Euclidean algorithm to find gcd (12306, 2976).
(5)
(b) Hence give the general solution to the diophantine equation 12306x + 2976y = 996.
(9)
(Total 14 marks)
22. The adjacency matrix of the graph G, with vertices P, Q, R, S, T is given by:
P Q R T S
P 0 2 1 01
Q 2 1 1 01
R 1 1 1 20
S 1 1 0 00
T 0 0 2 0 0
(ii) Which pairs of distinct vertices have more than 15 walks of length 3 between
them?
(8)
(Total 19 marks)
23. Two mathematicians are planning their wedding celebration and are trying to arrange the
seating plan for the guests. The only restriction is that all tables must seat the same number of
guests and each table must have more than one guest. There are fewer than 350 guests, but they
have forgotten the exact number. However they remember that when they try to seat them with
two at each table there is one guest left over. The same happens with tables of 3, 4, 5 and 6
guests. When there were 7 guests per table there were none left over. Find the number of
guests.
(Total 10 marks)
24. (a) Using Fermat’s little theorem, show that, in base 10, the last digit of n is always equal to
the last digit of n5.
(7)
∞
3
26. (a) Find the value of ∑ 9n
n =1
2
+ 3n − 2
.
(6)
∞
(b) (i) Sum the series ∑x
r =0
r
.
(ii) Hence, using sigma notation, deduce a series for
1
(a) ;
1+ x2
(b) arctan x;
π
(c) .
6
(11)
100
(c) Show that ∑ n! ≡ 3(mod15).
n =1
(4)
(Total 21 marks)
27. (a) Given that the integers m and n are such that 3│(m2 + n2), prove that 3│m and 3│n.
(7)
28. An arithmetic sequence has first term 2 and common difference 4. Another arithmetic sequence
has first term 7 and common difference 5. Find the set of all numbers that are members of both
sequences.
(Total 9 marks)
29. The diagram below shows the weighted graph G.
(a) (i) What feature of the graph enables you to deduce that G contains an Eulerian
circuit?
(b) (i) Find the number of distinct walks of length 4 beginning and ending at F.
(c) Use Kruskal’s Algorithm to find the minimum spanning tree for G, showing the order in
which the edges are added.
(6)
(Total 16 marks)
30. (a) Show that a positive integer, written in base 10, is divisible by 9 if the sum of its digits is
divisible by 9.
(7)
(b) The representation of the positive integer N in base p is denoted by (N)p.
If (5 (126 ) 7 ) 7 = (a n a n −1 ... a1 a 0 ) 7 , find a0.
(9)
(Total 16 marks)
31. Use the Euclidean Algorithm to find the greatest common divisor of 7854 and 3315.
Hence state the number of solutions to the diophantine equation 7854x + 3315y = 41 and justify
your answer.
(Total 7 marks)
+
32. (a) Define what is meant by the statement x ≡ y (mod n) where x, y, n∈ .
(1)
(a) Show that when p = 2, N is even if and only if its least significant digit, a0, is 0.
(5)
(b) Show that when p = 3, N is even if and only if the sum of its digits is even.
(6)
(Total 11 marks)
34. (a) Use the Euclidean Algorithm to find the gcd of 324 and 129.
(3)
(b) Hence show that 324x + 129y = 12 has a solution and find both a particular solution and
the general solution.
(6)
(c) Show that there are no integers x and y such that 82x + 140y = 3.
(2)
(Total 11 marks)
35. (a) The matrix below shows the distances between towns A, B, C, D and E.
(i) Draw the graph, in its planar form, that is represented by the matrix.
(ii) Write down with reasons whether or not it is possible to find an Eulerian trail in
this graph.
(iii) Solve the Chinese postman problem with reference to this graph if A is to be the
starting and finishing point. Write down the walk and determine the length of the
walk.
(9)
(b) Show that a graph cannot have exactly one vertex of odd degree.
(2)
(Total 11 marks)
36. (a) (i) Given that a ≡ d (mod n) and b ≡ c (mod n) prove that
(a + b) ≡ (c + d) (mod n).
(ii) Hence solve the system
2 x + 5 y ≡ 1(mod 6)
x + y ≡ 5(mod 6)
(11)
37. (a) (i) Let M be the adjacency matrix of a bipartite graph. Show that the leading diagonal
entries in M37 are all zero.
(c) Prove that the number of edges in a bipartite graph with n vertices is less than or equal to
n2
.
4
(5)
(Total 12 marks)
(a) (i) Show that Euler’s relation f – e + v = 2 is valid for a spanning tree of G.
(ii) By considering the effect of adding an edge on the values of f, e and v show that
Euler’s relation remains true.
(7)
(b) Show that K5 is not planar.
(5)
(Total 12 marks)
(b) Use Dijkstra’s Algorithm to find the shortest path between the vertices A and D. Show
all the steps in the algorithm and state the length of the shortest path.
(8)
(Total 10 marks)
+
40. (a) Given that ax ≡ b (mod p) where a, b, p, x∈ , p is prime and a is not a multiple of p,
use Fermat’s little theorem to show that
3x ≡ 4(mod 5)
5x ≡ 6(mod 7)
(iii) Find the least possible positive integers s and t such that 901s – 612t = 85.
(10)
(c) In each of the following cases find the solutions, if any, of the given linear congruence.
(i) 9x ≡ 3 (mod18);
(ii) 9x ≡ 3 (mod15).
(5)
(Total 19 marks)
42. (a) Use Kruskal’s algorithm to find the minimum spanning tree for the following weighted
graph and state its length.
(5)
(b) Use Dijkstra’s algorithm to find the shortest path from A to D in the following weighted
graph and state its length.
(7)
(Total 12 marks)
n
(b) Numbers of the form Fn = 2 2 + 1, n ∈ are called Fermat numbers.
Find the smallest value of n for which the corresponding Fermat number has more than a
million digits.
(4)
(c) Using the result of part (b), show that the number 10 201 is not divisible by 7.
(2)
(Total 11 marks)