MATH1081-2017S1 Course Outline
MATH1081-2017S1 Course Outline
MATH1081-2017S1 Course Outline
MATH1081
Discrete Mathematics
Faculty of Science
Semester 1, 2017
1
Contents
1. Staff ..................................................................................................................................................... 3
2. Administrative matters......................................................................................................................... 3
Contacting the Student Services Office............................................................................................... 3
3. Course information .............................................................................................................................. 4
Course summary ................................................................................................................................. 4
Course aims ........................................................................................................................................ 4
Course learning outcomes (CLO) ........................................................................................................ 4
4. Learning and teaching activities .......................................................................................................... 5
Lecture and Tutorial Schedule ............................................................................................................ 5
Tutorials ............................................................................................................................................... 5
UNSW Moodle ..................................................................................................................................... 6
Assessment overview .......................................................................................................................... 6
Class tests ........................................................................................................................................... 7
Calculator Information ......................................................................................................................... 7
5. Expectations of students ..................................................................................................................... 8
School Policies .................................................................................................................................... 8
6. Academic integrity, referencing and plagiarism .................................................................................. 8
7. Readings and resources ..................................................................................................................... 9
Textbook .............................................................................................................................................. 9
Reference Books ................................................................................................................................. 9
8. Getting help outside tutorials .............................................................................................................. 9
Staff Consultations .............................................................................................................................. 9
Mathematics Drop-in Centre................................................................................................................ 9
Additional support for students ............................................................................................................ 9
Applications for Special Consideration .............................................................................................. 10
Important Notes ................................................................................................................................. 11
University Statement on Plagiarism .................................................................................................. 12
Syllabus ................................................................................................................................................. 13
Problem Sets ......................................................................................................................................... 15
2
1. Staff
Staff consultation times are provided on Moodle and in the School of Mathematics and Statistics
website for current students, undergraduate, student services, help for students page, at the
beginning of each semester.
Tutor details for all courses will be provided at the start of semester in Moodle.
2. Administrative matters
Change of tutorials, due to timetable clashes or work commitments, permission to take class tests
outside your scheduled tutorial, advice on course selection and other administrative matters are
handled in the Student Services Office. Constructive comments on course improvement may also be
emailed to the Director of First Year Mathematics, Dr Jonathan Kress. Should we need to contact
you, we will use your official UNSW email address of [email protected] in the first
instance. It is your responsibility to regularly check your university email account. Please state
your student number in all emails to the Student Services Office.
3
3. Course information
Units of credit: 6
Pre-requisite(s): The assumed knowledge for this course is equivalent of a combined mark of at
least 100 in the HSC Mathematics and HSC Mathematics Extension 1.
Co-requisite: The formal co-requisite is MATH1131 or MATH1141 or MATH1151.
Teaching times and locations: see the link on the Handbook web page:
Timetable for course MATH1081:
http://www.handbook.unsw.edu.au/undergraduate/courses/2017/MATH1081.html
The subject matter of this course is very different from high school mathematics and success at high
school is no guarantee of success in Discrete Mathematics. In Math1081 emphasis is placed on
reasoned argument and clarity of exposition as well as algebraic and computational skills.
Course summary
MATH1081 will enhance your research, inquiry and analytical thinking abilities as it will provide you
with the mathematical language and mathematical techniques to unravel many seemingly unrelated
problems. The course will engage you in independent and reflective learning through your
independent mastery of a wide range of tutorial problems. The mathematical problem solving skills
that you will develop are generic problem solving skills, based on logical arguments and mathematical
language that can be applied in multidisciplinary work. You will be encouraged to develop your
communication skills through active participation in tutorials, and by writing clear, logical arguments
when solving problems.
Course aims
The aim of MATH1081 is that by the time you finish the course you should understand the concepts
and techniques covered by the syllabus and have developed skills in applying these concepts and
techniques to the solution of appropriate problems. Successful completion of the course will give you
a good foundation for understanding many problems that arise in computer science.
Apply the concepts and techniques of the syllabus to solve appropriate problems.
Understand and apply appropriate algorithms.
Use mathematics and other terminology appropriately to communicate information and
understanding.
4
4. Learning and teaching activities
Lectures are given four times per week, commencing in week 1 and running to week 12. Full details
of the timetable are shown in your timetable on myUNSW and the online Handbook.
The material presented is divided into five sections, and each part will be presented in 2 or 3 week
segments as follows:
* Note that due to the public holidays on Friday of week 7 and Tuesday of week 8, there will be a 2
hour lecture on Tuesday of week 13.
Tutorials
Each student enrolled in MATH1081 has been assigned two tutorial time slots as shown in your
timetable. Students are able to change their tutorials via myUNSW until the end of week 1. After that
time, they can only change tutorials by going to the Student Services Office, Red Centre Building
room RC-3072 with evidence of a timetable clash or work commitments. NB: Classroom tutorials
commence in week 2 and run until week 13.
5
Each student will have two tutorials per week with the same tutor, with tutorials starting in week 2 and
running until week 13. Attendance at tutorials is compulsory and the roll will be called in tutorials.
UNSW Moodle
The School of Mathematics and Statistics uses the Learning Management System called Moodle. To
log into Moodle, use your zID and zPass at the following URL: http://moodle.telt.unsw.edu.au
Here you will find announcements, general information, notes, lecture slide, classroom tutorial and
homework problems and links to online tutorial and assessments
Assessment overview
The final mark will be made up as follows:
Class tests 20%
Final examination 80%
6
Class tests
There will be one test for each of the first four sections outlined in the syllabus above. The best three
will count for assessment. Tests will be held in a tutorial in the weeks shown below. Tests for
sections (1) and (2) will be held at the beginning of the first tutorial of the week and tests for sections
(3) and (4) will be held at the beginning of the second tutorial:
Note:
You MUST TAKE EACH TEST IN THE CLASSROOM TUTORIAL TO WHICH YOU HAVE
BEEN OFFICIAL ALLOCATED.
To each test you must bring your Student ID card, some blank A4 writing paper and a
Stapler (so that you can staple a cover sheet to your answers).
Normal exam conditions apply in tests.
You will not be allowed to use a calculator in class tests.
Your best three scores in the four tests will be counted towards your final assessments
mark.
If you miss a class test due to illness, please DO NOT apply for Special Consideration on-
line. You should provide your tutor with a medical certificate in the following week so that
your absence can be converted to an M grade to signify a Medical Absence. The M grade
is converted to a mark that is the average result from completed tests, and is recorded
towards the end of semester. No more than two Ms will be accepted in any one semester.
Tutors are expected to enter class test marks within a fortnight of the test being taken. Your
mark will be accessible via the Maths & Stats Marks link on the MATH1081 Moodle
homepage.
It is your responsibility to check that these marks are correct and you should keep marked
tests until the end of semester in case an error has been made in recording the marks. If
there is an error, either speak to your tutor or bring your test paper to the Student Services
Office as soon as possible, but no later than Friday in Week 13.
Calculator Information
For end of semester UNSW exams, students must supply their own calculator. Only calculators on the
UNSW list of approved calculators may be used in the end of semester exams. Before the exam
period, calculators must be given a UNSW approved sticker, obtained from the School of
Mathematics and Statistics Office, and other student or Faculty centres. The UNSW list of calculators
approved for use in end of semester exams is available at: https://student.unsw.edu.au/exams
7
5. Expectations of students
School Policies
The School of Mathematics and Statistics has adopted a number of policies relating to enrolment,
attendance, assessment, plagiarism, cheating, special consideration etc. These are in addition to the
Policies of The University of New South Wales. Individual courses may also adopt other policies in
addition to or replacing some of the School ones. These will be clearly notified in the Course Initial
Handout and on the Course Home Pages on the Maths Stats web site.
Students in courses run by the School of Mathematics and Statistics should be aware of the School
and Course policies by reading the appropriate pages on the Maths Stats web site starting at:
http://www.maths.unsw.edu.au/currentstudents/assessment-policies
The School of Mathematics and Statistics will assume that all its students have read and understood
the School policies on the above pages and any individual course policies on the Course Initial
Handout and Course Home Page. Lack of knowledge about a policy will not be an excuse for failing
to follow the procedure in it.
1
International Center for Academic Integrity, The Fundamental Values of Academic Integrity, T.
Fishman (ed), Clemson University, 2013.
8
7. Readings and resources
Textbook
S.S. Epp, Discrete Mathematics with Applications, Fourth Edition, 2011 OR Second (or Third)
Edition, PWS 1995.
J Franklin and A. Daoud, Introduction to Proofs in Mathematics, Prentice Hall, 1988 or Proof in
Mathematics: An Introduction, Quakers Hill Press, 1995.
Reference Books
Any book with Discrete Mathematics and many with Finite Mathematics in their title should help.
Previous texts include K.H. Rosen Discrete Mathematics and its Application and K. Kalmanson, An
Introduction to Discrete Mathematics and its Applications. A more advanced reference is Discrete
Mathematics by K. Ross and C.R.B. Wright.
For interesting applications within Computer Science, try the three part classic D.E.Knuth, The Art
of Computer Programming.
Staff Consultations
From week 3 there will be a roster which shows for each hour of the week a list of names of members
of staff who are available to help students in the first year mathematics courses, no appointment is
necessary. This roster is displayed on the same Notice Board as timetables, near the School Office
(room 3070, Red Centre), it is also available from the web page:
http://www.maths.unsw.edu.au/currentstudents/consultation-mathematics-staff
9
Applications for Special Consideration
If you feel that your performance in, or attendance at a final examination has been affected by illness
or circumstances beyond your control, or if you missed the examination because of illness or other
compelling reasons, you may apply for special consideration. Such an application may lead to the
granting of Additional Assessment.
1. Within 3 days of the affected examination, or at least as soon as possible, you must submit a
request for Special Consideration to UNSW Student Central ON-LINE with supporting documentation
attached. Visit website to Apply for Special Consideration:
https://student.unsw.edu.au/special-consideration
2. Please do not expect an immediate response from the School. All applications will be
considered together. See the information below.
3. If you miss a class test due to illness or other problems, then you should provide the
appropriate documentation to your tutor who will record an M. No more than two Ms will be
accepted in any one semester. DO NOT apply on-line for Special Consideration for class tests or for
on-line or computing tests.
4. If your course involves a MAPLE/MATLAB lab test which you missed, you should contact the
lecturer in charge of computing as soon as possible. A resit will be organised for later in the session.
5. You will NOT be granted Additional Assessment in a course if your performance in the
course (judged by attendance, class tests, assignments and examinations) does not meet a
minimal standard. A total mark of greater than 40% on all assessment not affected by a request for
Special Consideration will normally be regarded as the minimal standard for award of Additional
Assessment.
6. It is YOUR RESPONSIBILITY to find out from the School of Mathematics and Statistics,
whether you have been granted Additional Assessment and when and where the additional
assessment examinations will be held. Do NOT wait to receive official results from the university, as
these results are not normally available until after the Mathematics Additional Assessment Exams
have started.
Information about award of Additional Assessment and a provisional list of results will be made
available on the Maths & Stats Marks page later in the semester. A link to the Maths & Stats Marks
page is provided on Moodle.
7. Additional Assessment exam will be on Monday 17th and Tuesday 18th July, 2017. A
link to the Additional Assessment timetable, including locations, will be placed on the Current
Students Notice Board under heading Special Consideration and Additional Assessment
information.
Web link: http://www.maths.unsw.edu.au/currentstudents/current-students
8. If you have two Additional Assessment examinations scheduled for the same time, please
consult the Student Services Office either by email or phone ([email protected] or 9385
7011), so that special arrangements can be made.
9. You will need to produce your UNSW Student Card to gain entry to the Additional
Assessment examination.
10
Important Notes
The Additional Assessment exam may be of a different form to the original exam and must be
expected to be at least as difficult.
If you believe your application for Special Consideration has not been processed, you should
immediately consult the Director for First Year Mathematics, Dr Jonathan Kress (Room 3073,
Red Centre).
If you believe that the above arrangements put you at a substantial disadvantage, you should
send full documentation of the circumstances to: Director of First Year Mathematics, School
of Mathematics and Statistics, University of NSW, Sydney NSW 2052, at the earliest possible
time.
If you suffer from a chronic or ongoing illness that has, or is likely to, put you at a serious
disadvantage, then you should contact the Disability Support Services who provide
confidential support and advice. Their web site is: https://student.unsw.edu.au/disability
Disability Support Services (DSS) may determine that your condition requires special
arrangements for assessment tasks. Once the School has been notified of these we will
make every effort to meet the arrangements specified by DSS.
Additionally, if you have suffered misadventure during semester then you should provide full
documentation to the Director of First Year Mathematics as soon as possible. In these
circumstances it may be possible to arrange discontinuation without failure or to make special
examination arrangements.
Professor B. Henry
Head, School of Mathematics and Statistics
11
University Statement on Plagiarism
This statement has been adapted from statements by the St James Ethics Centre, the University of
Newcastle, and the University of Melbourne.
Plagiarism is the presentation of the thoughts or work of another as one's own. Examples include:
Direct duplication of the thoughts or work of another, including by copying work, or knowingly
permitting it to be copied. This includes copying material, ideas or concepts from a book,
article, report or other written document (whether published or unpublished), composition,
artwork, design, drawing, circuitry, computer program or software, web site, Internet, other
electronic resource, or another person's assignment without appropriate acknowledgement
Paraphrasing another person's work with very minor changes keeping the meaning, form
and/or progression of ideas of the original;
Piecing together sections of the work of others into a new whole;
Presenting an assessment item as independent work when it has been produced in whole or
part in collusion with other people, for example, another student or a tutor; and,
Claiming credit for a proportion a work contributed to a group assessment item that is greater
than that actually contributed.
Submitting an assessment item that has already been submitted for academic credit
elsewhere may also be considered plagiarism.
The inclusion of the thoughts or work of another with attribution appropriate to the academic
discipline does not amount to plagiarism.
Students are reminded of their Rights and Responsibilities in respect of plagiarism, as set out in the
University Undergraduate and Postgraduate Handbooks, and are encouraged to seek advice from
academic staff whenever necessary to ensure they avoid plagiarism in all its forms.
The Learning Centre website is the central University online resource for staff and student information
on plagiarism and academic honesty. It can be located at: www.lc.unsw.edu.au/plagiarism
The Learning Centre also provides substantial educational written materials, workshops, and tutorials
to aid students, for example, in:
Correct referencing practices;
Paraphrasing, summarising, essay writing, and time management;
Appropriate use of, and attribution for, a range of materials including text, images, formulae
and concepts.
Students are also reminded that careful time management is an important part of study and one of the
identified causes of plagiarism is poor time management. Students should allow sufficient time for
research, drafting, and the proper referencing of sources in preparing all assessment items.
12
13
Syllabus
References are to the textbook by Epp, unless marked otherwise. F indicates the textbook by Franklin
and Daoud and R indicates the book Discrete Mathematics with Applications by K.H. Rosen (6th
edition). The UNSW Library has multiple copies of Rosen numbered P510/482A,B,C, etc.
The references shown in the righthand column are not intended to be a definition of what you will be
expected to know. They are just intended as a guide to finding relevant material. Some parts of the
course are not covered in the textbooks and some parts of the textbooks (even in sections mentioned
in the references below) are not included in the course.
In the Reference column below, column A refers to Epp 3rd edition, and Rosen 2nd edition, while
column B to Epp 4th edition and Rosen 6th edition.
Within sections of the course, the topics may not be covered in exactly the order in which they are
listed below.
5. Graphs
Basic terminology. simple graphs, Kn . Directed graphs. 11.1 10.1
Subgraphs, complementary graphs.
Degree, the Handshaking Theorem 11.1 10.1
(Epp Theorem 10.1.1 (11.1.1 in ed. 3))
Bipartite graphs, Km,n . 11.1 10.1
Adjacency and incidence matrices. 11.3 10.3
Isomorphism, isomorphism invariants. 11.4 10.4
Walks, paths and circuits. Euler and Hamilton paths. 11.2 10.2
Connected graphs, connected components.
Planar graphs. Eulers formula. Dual graphs. Necessary R7.7 R9.7
conditions for planarity. Kuratowskis Theorem.
Trees, spanning trees. 11.5, 11.6 10.5,10.7
Weighted graphs. Minimal spanning trees. Kruskal and 11.6 10.6,10.7
Dijkstra algorithms.
15
PROBLEM SETS
Recommended Problems: It is strongly recommended that you attempt all questions marked by .
You should regard these questions as the minimum that you should attempt if you are to pass this
course. However, the more practice in solving problems you get the better you are likely to do in class
tests and exams, and so you should aim to solve as many of the problems on this sheet as possible.
Ask your tutor about any problems you cannot solve.
Problems marked by a star () are more difficult, and should only be attempted after you are sure
you can do the unstarred problems.
PROBLEM SET 1
Basic Set Theory
1. Are any of the sets A = {1, 1, 2, 3}, B = {3, 1, 2, 2}, C = {1, 2, 1, 2, 4, 2, 3} equal?
2. Show that
A = {x R | cos x = 1}
is a subset of
B = {x R | sin x = 0}.
Is the first a proper subset of the second? Give reasons.
4. Given the sets X = {24k + 7 | k Z}, Y = {4n + 3 | n Z}, Z = {6m + 1 | m Z}, prove that
X Y and X Z but Y * Z.
a) |P (S)|,
b) P P (S) ,
c) P P P (S) .
a) a {a},
b) {a} {a},
c) {a} {a},
d) a {a},
e) {a} = {a, {a}},
f) {a} {a, {a}},
g) {a} {a, {a}},
B = { letters in the words set theory }, list the elements of the sets
a) A B,
b) A B,
c) A B,
d) B A.
R = {x Z | x is divisible by 2}
S = {x Z | x is divisible by 3}
T = {x Z | x is divisible by 6}.
a) Is S = T ?
b) Is R T ?
c) Is T R?
d) Is T S?
e) Find R S.
11. In a class of 40 people studying music: 2 play violin, piano and recorder, 7 play at least violin
and piano, 6 play at least piano and recorder, 5 play at least recorder and violin, 17 play at
least violin, 19 play at least piano, and 14 play at least recorder. How many play none of these
instruments?
12. Prove the following statements if they are true and give a counter-example if they are false.
13. Let A and B be general sets. Determine the containment relation (, , =, none) that holds
between
14. Let A and B be general sets. Determine the containment relation (, , =, none) that holds
between
P (A B) and P (A) P (B)
15. Show that A B = A B c and hence simplify the following using the laws of set algebra.
a) A (A B).
b) (A B) (A B).
c) (A B) (C A) (A B)c .
(A B c ) (B (A B)c ).
17
17. Simplify
[A (A B c )] [(A B) (B Ac )] ,
and hence simplify
[A (A B c )] [(A B) (B Ac )] .
18. Draw a Venn diagram for the general situation for three sets A, B and C. Use it to answer the
following:
If B A = C A then B = C.
(R P ) Q = R (P Q)
A B = (A B) (B A).
22. Let
Ak = {n N | k n k2 + 5}
for k = 1, 2, 3, .... Find
4
[
a) Ak ;
k=1
90
\
b) Ak ;
k=10
\
c) Ak
k=1
25. Recall from lectures that x is the largest integer less than or equal to x, and that x is the
smallest integer greater than or equal to x. Evaluate
a) ,
b) ,
c) ,
d) .
27. Determine which of the following functions are one-to-one, which are onto, and which are bijec-
tions.
a) f : Z Z, f (x) = 2x.
b) f : Q Q, f (x) = 2x + 3.
c) f : R Z f (x) = x.
*d) f : R R f (x) = x x.
29. Define f : R R by
f (x) = x2 4x + 6.
a) What is the range of f ?
b) Is f onto? Explain.
c) Is f one-to-one? Explain.
35. For each of the following bijections find the inverse and the domain and range of the inverse.
a) f : R R, f (x) = 5x + 3.
b) * g : Z N
2|x| 1 if x < 0
g(x) =
2x if x 0
a) f (A) if A = {x | 2 x 3},
b) f 1 (B) if B = {y | 1 y 17}.
f (m, n) = m2 n2 .
38. Suppose f is a function from X to Y and A, B are subsets of X, and suppose that S, T are
subsets of Y .
N N
X N X N
k = (N + 1) and k2 = (N + 1)(2N + 1)
2 6
k=1 k=1
to evaluate
22
X
(3k + 4)2 .
k=3
a) 19 is divided by 7,
b) 111 is divided by 11,
c) 1001 is divided by 13.
a) 22 35 53 and 25 33 52 ,
b) 22 3 53 and 32 7,
c) 0 and 3.
3n 1 (mod 7).
a) gcd(12, 18),
b) gcd(111, 201),
c) gcd(13, 21),
d) gcd(83, 36),
e) gcd(22, 54),
f) gcd(112, 623).
10. Solve, or prove there are no solutions. Give your answer in terms of the original modulus and
also, where possible, in terms of a smaller modulus.
*11. Let a, b be integers, not both zero, let S be the set of integers defined by
S = {ax + by | x, y Z},
The aim of this question is to use the Division Algorithm and the definition of greatest common
divisor (gcd) to show that d0 = gcd(a, b).
12. a) Prove that if a, b and m are integers with the properties gcd(a, b) = 1 and a | m and b | m,
then ab | m. (Hint: use 11(d).)
b) Prove that if a and b are coprime integers and a | bc, then a | c. (Hint: use 11(d).)
23
Relations
13. List the ordered pairs in the relations R , for i = 1, 2, 3, from A = {2, 3, 4, 5} to B = {2, 4, 6}
i
where
a) (m, n) R1 iff m n = 1,
b) (m, n) R2 iff m | n,
c) (m, n) R3 iff gcd(m, n) = 1.
a) an arrow diagram,
b) a matrix MRi .
15. Construct arrow diagrams representing relations on {a, b, c} that have the following properties.
18. Define a relation on the set S = {0, 1, 2, 3, 4, 5, 6, 7, 8} by x y if and only if x2 y 2 (mod 5).
19. a) Let A1 = {0}, A2 = {1, 2}, A3 = {3, 4} be subsets of S = {0, 1, 2, 3, 4}. Define a relation
on the set S by x y if and only if x, y Ai for some i {1, 2, 3}. Show that is an
equivalence relation on S.
b) Let B1 = {0}, B2 = {1, 2}, B3 = {3} be subsets of S = {0, 1, 2, 3, 4}. Explain why the
relation on S defined by x y if and only if x, y Bi for some i {1, 2, 3} is not an
equivalence relation on S.
c) Let C1 = {0, 1}, C2 = {1, 2}, C3 = {3, 4} be subsets of S = {0, 1, 2, 3, 4}. Explain why the
relation on S defined by x y if and only if x, y Ci for some i {1, 2, 3} is not an
equivalence relation on S.
24
20. The following diagram represents a set V = {u, v, x, y, z} of six cities and direct flights between
them.
w x
v y
u z
21. Consider the set S = {0, 1, 2, . . . , 11} of integers modulo 12. Define the relation on S by x y
iff x2 y 2 mod 12. Given that is an equivalence relation, partition S into equivalence classes.
22. Let a and b be two fixed real numbers. Define a relation on R2 by (x , y ) (x , y ) iff
1 1 2 2
ax1 + by1 = ax2 + by2 . Prove that is an equivalence relation and give a geometric description
of the equivalence class of (1, 1).
24. Answer the following questions for the Poset ({2, 4, 6, 9, 12, 27, 36, 54, 60, 72}, |):
26. A relation | is defined on A = { 1, 2, 4, 6, 8, 9, 12, 18, 36, 72, 108 } by a | b iff a divides b.
In this problem set, F&D refers to the book by Franklin and Daoud, and the problems have been
printed here with the permission of the author. Note the solutions to some of the F&D questions are
available in the book Introduction to Proofs in Mathematics by J. Franklin and A. Daoud.
Basic Proofs
1 1 2
1. (F&D Chapter 1 Q1) Show that: <
1, 000 1, 002 1, 000, 000
6. a) Suppose that n is a positive integer. Use the Binomial theorem and appropriate inequalities
to prove that
1 n
0 < 1+ < 3.
n
9. (F&D Chapter 2 Q3) Prove that the product of any two odd numbers is an odd number.
11. (F&D Chapter 2 Q12) Prove that the product of three consecutive whole numbers, of which the
middle one is odd, is divisible by 24.
27
12. (F&D Chapter 2 Q19) Find a generalisation of:
1 1 2
<
1000 1002 (1000)2
13. (F&D Chapter 2 Q21) Prove that for all whole numbers n, (n + 1)(n + 2) . . . (2n 1)(2n) =
2n .1.3.5 . . . (2n 1)
14. (F&D Chapter 5 Q9) Consider the following statement concerning a positive integer x 2.
If x is not divisible by any positive integer n satisfying 2 n x then x is a prime
number.
*15. a) Let a and n be integers greater than 1. Prove that an 1 is prime only if a = 2 and n is
prime. Is the converse of this statement true?
b) [V ] Show that 2n + 1 is prime only if n is a power of 2.
17. a) Use the result of part (a) of the previous question to prove that if p is prime, a is an integer
and p | a2 , then p | a.
*b) Are there any integers n other than primes for which it is true that for all integers a, if
n | a2 then n | a? If so, describe all such n.
*c) Prove that if p is prime then p is irrational.
18. a) Show that 2 is a multiplicative inverse for 4 (mod 7) and 3 is a multiplicative inverse for
5 (mod 7). Hence determine the value of 5! (mod 7)
*b) [V] Prove that if p is prime then
19. In the following questions you are given a theorem, together with the basic ideas needed to
prove it. Write up a detailed proof of the theorem. Your answer must be written in complete
sentences, with correct spelling and grammar. It must include a suitable introduction and
conclusion; reasons for all statements made; correct logical flow; and any necessary algebraic
details.
20. Prove the following statement, then write down its converse. Is the converse true or false? Prove
your answer.
For all x Z, if x 1 (mod 7) then x3 1 (mod 7).
22. (F&D Chapter 3 Q6) Prove that a whole number is odd if and only if its square is odd.
23. (F&D Chapter 3 Q10) Prove that a triangle is isosceles if and only if two of its angles are equal.
(An isosceles triangle is by definition a triangle with two equal sides.)
24. (F&D Chapter 3 Q13) Show that a number is divisible by 3 if and only if the sum of its digits
is divisible by 3.
25. (F&D Chapter 3 Q18) Prove that a real number is rational if and only if its decimal expansion
is terminating or (eventually) repeating.
*26. For integers x and y, show that 7|x2 + y 2 if and only if 7|x and 7|y.
27. A parallelogram is defined to be a quadrilateral with both pairs of opposite sides parallel. Use
properties of congruent and similar triangles to prove that a quadrilateral is a parallelogram if
and only if two opposite sides are equal and parallel.
29
Some statements
28. (F&D Chapter 4 Q11) Show that there is a solution of, x100 + 5x 2 = 0 between x = 0 and
x = 1.
29. [V] (F&D Chapter 4 Q4) A perfect number is one which equals the sum of its factors (counting
1 as a factor, but not the number itself). Show that there exists a perfect number.
x2 x3 xn
1+x+ + + + + ...
2! 3! n!
Show that e3 = 20.1, correct to 1 decimal place, by showing:
a) For any n 4,
n3
3n 9 3
<
n! 2 4
b) Hence, that there exists N such that,
3N +1 3N +2 1
+ + <
(N + 1)! (N + 2)! 20
*32. (F&D Chapter 5 Q11) Every one of six points is joined to every other one by either a red or a
blue line. Show that there exist three of the points joined by lines of the same colour.
Multiple quantifiers
*33. [V] (F&D Chapter 5 Q8) Prove that between any two irrational numbers there is a rational
number.
un = n 2 for all n N
M N N N n > N un > M.
35. A function f (x) is called continuous at x = a iff:
37. (F&D Chapter 6 Q16) Prove that each of the following is irrational:
3
a) 4
b) 1 + 3
c) 3 2
41. (F&D Chapter 6 Q11) Are the following statements true or false? Prove your answers.
a) Let a, b, c be three integers. If a divides c and b divides c, then either a divides b or b divides
a.
b) If a, b, c, d are real numbers with a < b and c < d, then ac < bd.
43. (F&D Chapter 7 Q14) A set of real numbers is called bounded if it does not go to infinity.
More precisely, S is bounded if there exist real numbers M, N such that for all
s S, M < s < N .
(For example, the set of real numbers x such that 1 < x3 < 2 is bounded, since for all x S, 1 <
x < 1.5.)
U = {u R : u = s + t for some s S, t T }
Show that U is bounded. It might help to calculate some examples first, say,
(The set U is sometimes denotes S + T , since it is the set of all sums of something in S
with something in T .)
44. (F&D Chapter 7 Q15) A region in the plane is called convex if the line segment joining any
two points in the region lies wholly inside the region. For example, an ellipse, a parallelogram,
a triangle and a straight line are convex, but on annulus and a star-shaped region are not. In
symbols, R is convex if, for all (x1 , y1 ) and (x2 , y2 ) in R, (x1 + (1 )x2 , y1 + (1 )y2 ) R
for all [0, 1].
45. (F&D Chapter 6 Q24) Show that there do not exist three consecutive whole numbers such that
the cube of the greatest equals the sum of the cubes of the other two.
Mathematical induction
1 1 1 1 1
46. (F&D Chapter 8 Q2) Show that, 1 + + + + (1)n1 is always positive.
2 3 4 5 n
n3 + 3n2 + 2n is divisible by 6.
b) Prove the same result without mathematical induction by first factorising n3 + 3n2 + 2n.
a) Calculate,
1 2 3 n
+ + + +
2! 3! 4! (n + 1)!
for a few small values of n.
b) Make a conjecture about a formula for this expression.
c) Prove your conjecture by mathematical induction.
32
49. (F&D Chapter 8 Q8) The following is a famous fallacy that uses the method of mathematical
induction. Explain what is wrong with it.
Theorem
Everything is the same colour.
Proof
Let P (n) be the statement, In every set of n things, all the things have the same colour.
We will show that P (n) is true for all n = 1, 2, 3, . . . , so that every set consists of things of the
same colour.
Now, P (1) is true, since in every set with only one thing in it, everything is obviously of the
same colour.
Now, suppose P (n) is true.
Consider any set of n + 1 things.
Take an element of the set, a. The n things other than a form a set of n things, so they are all
the same colour (since P (n) is true).
Now take a set of n things out of the n + 1 which does include a.
These are also all the same colour, so a is the same colour as the rest.
Therefore P (n + 1) is true.
2
n(n+1)
50. Show that 13 + 23 + + n3 = 2 whenever n Z+ .
then !n !n !
1 1+ 5 1 5
un =
5 2 2
for all n 0.
56. Prove, using induction, that if the sequence {un } is defined by:
u1 = 12
u = 30
2
un = 5un1 6un2 for n 3,
58. [V] Prove that there exists N N such that for all n N with n N we have 3n < n!.
60. Using letters for the component propositions, translate the following compound statements into
symbolic notation:
a) If prices go up, then housing will be plentiful and expensive; but if housing is not expensive,
then it will still be plentiful.
b) Either going to bed or going swimming is a sufficient condition for changing clothes; how-
ever, changing clothes does not mean going swimming.
c) Either it will rain or it will snow but not both.
d) If Janet wins or if she loses, she will be tired.
e) Either Janet will win or, if she loses, she will be tired.
61. Write a statement that represents the negation of each of the following:
63. Show, by using truth tables, that the following pairs of propositions are logically equivalent.
a) (p q), p q;
b) p q, p q;
c) p (q r), q ( r p);
d) p (p q), p.
64. Use standard logical equivalences to simplify each of the following logical expressions.
a) (p q) (p q)
b) [p (q p)] (p q)
c) (p q) ( p q) (q r)
d) (p q) ( p q)
a) q (p r);
b) (q p) (q r);
c) (q p) ( q r).
Good Lord Holmes,replied Dr Watson, what can you make of all this?
Elementary my dear Watson, Moriarty is dead!
(1) Either Einstein or Bohr is right, but they are not both right.
(2) Einstein is right only if quantum mechanics is wrong, and the world is crazy if quantum
mechanics is right.
a) Write the two sentences (1) and (2) as symbolic expressions involving e, b, q and w.
b) Suppose the world is not crazy. From the truth of (1) and (2) is it valid to deduce that
Einstein is right? Explain.
(1) If either Peta or Queenie has passed then either Roger and Peta have both passed, or
Roger and Queenie have both passed.
and
(2) If either Peta has passed or Queenie has failed then Roger has passed.
a) Write the two statements (1) and (2) in symbolic form by letting p stand for Peta has
passed, q stand for Queenie has passed and r stand for Roger has passed.
b) Suppose that the statement (1) is false. Deduce that Roger has failed.
c) Suppose that the statement (1) is false and that the statement (2) is true. Decide whether
or not Peta has passed.
36
PROBLEM SET 4
Enumeration and Probability
3. How many seven-letter words can be made from the English alphabet which contain
5. a) A set of eight Scrabbler tiles can be arranged to form the word SATURDAY. How many
three-letter words can be formed with these tiles if no tile is to be used more than once?
b) How many ten-letter words can be formed from the letters of PARRAMATTA? How many
nine-letter words? How many eight-letter words?
c) How many four-letter words come before UNSW if all four-letter words are listed in
alphabetical order?
6. How many eight-letter words constructed from the English alphabet have
Problem: How many eight-card hands chosen from a standard pack have at least one suit
missing?
Solution: Throw out one entire suit (4 possibilities), then select 8 of the remaining 39 cards.
The number of hands is 4C(39, 8).
9. What is the probability that a hand of eight cards dealt from a shuffled pack contains:
a) exactly three cards of the same value and the remaining cards all from the remaining suit
(for example, 4, 4, 4 and five clubs not including the 4);
b) exactly three cards in at least one of the suits;
c) exactly three cards in exactly one of the suits. (Hint. First find the number of ways in
which five cards can be chosen from three specified suits, with none of the three represented
by three cards.)
10. For any positive integer n we define (n) to be the number of positive integers which are less
than or equal to n and relatively prime to n. Given that p, q, r are primes, all different, use the
inclusion/exclusion principle to find (pq), (p2 q) and (pqr).
11. A hand of thirteen cards is dealt from a shuffled pack. Giving reasons for your answers, determine
which of the following statements are definitely true and which are possibly false.
12. a) Prove that if nine rooks (castles) are placed on a chessboard in any position whatever, then
at least two of the rooks attack each other.
b) Prove that if fifteen bishops are placed on a chessboard then two of them attack each other.
13. Let A be the set { 1, 2, 3, 4, 5, 6, 7, 8 }. Prove that if 5 integers are selected at random from A,
then at least one pair of these integers has sum 9.
14. In a square with sides of length 3cm, 10 points are chosen at random. Prove
that there must be
at least two of these points whose distance apart is less than or equal to 2 cm.
15. If 31 cards are chosen from a pack, prove that there must be at least 3 of the same value, and
there must be at least 8 in the same suit.
16. a) To each integer n we assign an ordered pair p(n) whose members are the remainders when
n is divided by 3 and 4 respectively. For example, p(5) and p(17) are both equal to (2, 1). If
ten thousand integers are chosen at random, how many can you say for certain must have
the same value for p?
*b) Repeat part (a) with the divisors 3 and 4 replaced by 4 and 6.
17. Let S and T be finite sets with |S| > |T |, and let f be a function from S to T . Show that f is
not one-to-one.
18. Prove that there were two people in Australia yesterday who met exactly the same number of
other people in Australia yesterday.
38
19. Twenty hotel management students all guess the answers on the final examination, so it can be
taken that all orders of students on the list of results are equally likely. The top student is given
a mark of 100, the next 95, and so on, down to 5 for the last student and no two students get
the same mark. Find the probability that Polly gets an HD, both Manuel and Sybil get a CR
or better, and Basil fails.
20. A die is rolled 21 times. Find the probability of obtaining a 1, two 2s, . . . and six 6s.
21. For this problem assume that the 365 dates of the year are equally likely as birthdays.
a) Find the probability that two people chosen at random have the same birthday.
b) Find the probability that in a group of n people, at least two have the same birthday.
c) How large does n have to be for the probability in (b) to be greater than 21 ?
d) Criticise the assumption made at the beginning of this question.
22. Twenty cars to be bought by a company must be selected from up to four specific models. In
how many ways may the purchase be made if
a) no restrictions apply?
b) at least two of each model must be purchased?
c) at most three different models must be purchased?
23. How many outcomes are possible from the roll of four dice
a) if the dice are distinguishable (for example, they are of different colours)?
b) if the dice are not distinguishable?
x1 + x2 + x3 + x4 + x5 + x6 = 40
if x1 , x2 , x3 , x4 , x5 , x6 are non-negative integers,
a) with no further assumptions?
b) with each xj 3?
c) with each xj 10?
*d) with each xj 8?
e) if each xj is even?
f) if at least one xj is odd?
*g) if every xj is odd?
*h) with x1 9, 5 x2 14 and 10 x3 19?
*26. By counting in two ways the number of non-negative integer solutions of the inequality
x1 + x2 + + xr n, prove that
n + r n + r 1 n + r 2 r r 1
= + + + + .
r r1 r1 r1 r1
Interpret this result in Pascals triangle.
39
Recurrence Relations
27. Write down the first four terms of the sequences defined recursively by
a) an = 23 an1 , a0 = 16;
b) an = 3an1 2an2 , a0 = 2, a1 = 5;
c) an = 2(an1 + an2 + + a1 + a0 ), a0 = 1.
28. Write down a recurrence and initial conditions to describe each of the following sequences.
29. Let a be the number of ways to climb n steps, if the person climbing the stairs can only take
n
two steps or three steps at a time.
30. Let a denote the number of bit strings of length n where no two consecutive zeros are allowed.
n
a) Find a1 , a2 , a3 .
b) Show that an satisfies the recurrence an = an1 + an2 for n 3.
31. A bank lends me $50,000 at 18% per year interest, compounded monthly, and I pay
back $900
per month. (So at the end of each month the amount I owe is increased by 1812 % and then
reduced by $900.)
If $un is the amount still owing after n months, write down a recurrence relation for un .
32. a) Find the general solution of the first order recurrence an = 5an1 .
b) Find the solution of the first order recurrence an +4an1 = 0 subject to the initial condition
a1 = 12.
33. Find the general solution of the following recurrence relations, each holding for n 2.
a) an + an1 6an2 = 0.
b) an = 3an1 2an2 .
c) an = 6an1 9an2 .
d) an 2an1 4an2 = 0.
34. Find the solution of the following recurrence relations (defined for n 2) subject to the given
initial conditions
a) an + 2an1 15an2 = 0, a0 = 7, a1 = 3.
b) an = 5an1 6an2 , a0 = 5, a1 = 13.
40
c) an + 4an1 + 4an2 = 0, a0 = 2, a1 = 4.
d) an 4an1 6an2 = 0, a0 = 2, a1 = 4.
35. Find the general solution of the following recurrence relations (defined for n 2).
a) an + an1 6an2 = 4n
b) an = 3an1 2an2 + 2n
c) an = 6an1 9an2 + 8n + 4
d) an = 6an1 9an2 + 3n
37. Suppose we wish to tile a 2 n rectangular board with smaller tiles of size 1 2 and 2 2.
*38. An n-digit quaternary sequence is a string of n digits chosen from the numbers 0, 1, 2, 3.
Let an be the number ndigit of quaternary sequences with an even number of 0s.
and
a0 = 1, a1 = 3.
(B) x, y S
40. We call a word on the alphabet {x, y, z} z-abundant if the letter z appears at least once in any
two successive letters. (So, for example, the empty word is z-abundant and so is xzzxzy but
xzyxzy is not.)
an = an1 + 2an2 .
(Hint: Consider the possible ways in which a z-abundant word can begin.)
c) Find an explicit formula for an .
*41. a) Show that the set {1, 2, 3, ...., n} can be partitioned into two non-empty sets in precisely
2n1 1 ways.
b) Let sn be the number of ways in which the set {1, 2, 3, ..., n} can be partitioned into three
non-empty sets.
Show that s1 = 0, s2 = 0, s3 = 1 and write down the six such partitions for n = 4.
c) Show that, for n 2, the sequence sn defined above satisfies sn = 3sn1 + 2n2 1 and
find a closed formula for sn .
42
PROBLEM SET 5
Graphs
1. Draw the graph G = (V, E, f ) with vertex set V = {v1 , v2 , v3 , v4 , v5 , v6 } and edge set
E = {e1 ,e2 , e3 , e4 , e5 , e6 , e
7 } and edgeendpoint or incidence function
f : E {x, y} | x, y V
e f (e)
e1 {v3 , v4 }
e2 {v1 }
e3 {v1 , v5 }
e4 {v2 , v5 }
e5 {v2 }
e6 {v5 , v2 }
e7 {v4 , v2 }
e14
v4
v9
e15 e16
v1 v2
e3 v3
e1
e2
e4 e6 e13
v5 e5 v6 e9 v8
e7 e11
e12
e8
v7 e10
Find
G1 G2 G3 G4 G5
4. How many edges does a graph have if it has vertices of degree 4, 3, 3, 2, 2? Draw a simple graph
with these vertex degrees. (Is it the only example?)
5. Determine whether or not there is a graph or simple graph for each of the following sequences
of vertex degrees. Draw examples of those that exist. (Try to minimise the number of loops or
parallel edges in nonsimple examples.)
i) 4, 4, 3, 2, 2, 1. ii) 4, 4, 3, 3, 2, 1. iii) 5, 5, 3, 2, 2, 1.
iv) 5, 4, 3, 2, 2. v) 6, 5, 4, 4, 2, 2, 1. vi) 6, 5, 4, 3, 2, 1, 1.
i) K6 . ii) K2,3 .
7. Find the total number of vertices and edges for the special simple graphs
a) Kn
b) Km,n
c) Cn , (cyclic graph with n vertices)
d) Qn (n-cube graph)
c d
G
9. Recall that two vertices in the complement G are neighbours iff they are not neighbours in G.
Find the following
10. If a simple graph G has n vertices and m edges how many edges does G have?
44
Bipartite Graphs
B
a) b)
A C
A C
B
E
D F
G
E
D G
H
F
c) A B C d)
A B
E
C D F G
I
D E F H J K
e) B C f) C
B D
A D
H E A G
E
G F F
C
g)
B D E
K
H
F G
A I J
i) Kn ii) Cn iii) Qn
45
Adjacency Matrices
a) e1
A e1 B A e2 B
e5
e3 e5
e2 e4 C e3 e6 E
e4
e7
e6
e7
D E C D
(Order vertices alphabetically)
b) K4
c) K2,3 .
Isomorphism
15. Determine, with reasons, whether or not the following pairs of graphs are isomorphic.
y
a)
a b x z
c
d e t u
G1 G2
a
b) c
u
b
x y
d t
e z
f v
G1 G2
c)
a b c e f h x y t u v s
d G1 g z G2 w
46
d) r
c s
q
b d t
p u
a e
i f x v
h g w
G1 G2
e) b
y z
c d
a e
x t u
f g v w
G1 G2
f)
b v
a c u w
g t
f d z x
e y
G1 G2
a) 2 vertices,
b) 3 vertices,
c) 4 vertices.
47
Connectivity
A B
D E C
G
H I F
J
K
L M N
19. What is the number of walks of length n between any two adjacent vertices of K4 for
n = 2, 3, 4, 5?
e3
C
e2
e1 B e4
A e5
e6
D
H I G
A
e1
d)
B
B C
c) F
C D e2 D
A
G
E E F
e) f) C
B D
A D
B C A E
E F G F
23. For what values of n does Kn , Cn , Qn have an Euler path which is not a circuit?
a) an Euler circuit,
b) an Euler path which is not a circuit,
c) a Hamilton circuit.
49
*25. Show each Qn has a Hamilton circuit.
[Hint: Construct one recursively, constructing Hamiltonian paths between adjacent vertices of
Qn . Construct such a path for Qn+1 from one such path for Qn ].
*26. The Knights Tour Puzzle asks if it is possible to find a sequence of 64 knights moves so that
a knight on a chessboard visits all the different squares and ends up on the starting point.
Planar Graphs
27. Show that the following graphs are planar by redrawing them as planar maps.
a) b) c)
B
b
A
b
Bb
A B
A b b
C b b
b b b b b b b b
D E D C C D E F
B A B
e) f)
d) B A C
A C A B
D F D F
E E C C
50
28. For each of
b b
b
b b b
*b
b
*
b b
* b
b * b
b b
* b
b
* b
b
b b b b b
b
a) Find the degree of each of the regions indicated by an asterisk in each map.
b) What is the sum of the degrees of the regions in each map?
c) Give the dual of each of the planar maps, drawing it on a separate diagram.
d) Verify Eulers formula in the maps.
29. A connected planar graph has 11 vertices; 5 have degree 1, 5 have degree 4, and 1 has degree 5.
30. a) Show if G is a connected planar simple graph with v vertices and e edges with v 3 then
e 3v 6.
b) Further show if G has no circuits of length 3 then e 2v 4.
31. Apply the last question to show the following graphs are nonplanar.
a) b)
a) b)
A B C
B C
D E
A D
G E
F G H F
c) d)
B
A B A
C
C D E G
D
F E
F G
*e) B
G
A F H C
J I
E D
34. Show the converses of Q30 a) and b) are false by considering the following examples. (Hint:
Kuratowskis Theorem.)
a) C b)
D G F E
F B
H D
E
A A B C
52
Trees
*37. Use Q36 to prove by induction that a tree with n vertices has n 1 edges.
38. a) Use Kruskals algorithm to find a minimal spanning tree for the following weighted simple
graph.
A b
B C b b
3 2
3 3 1
2 2 3
1 D b b
E 3
1 1
3 2
b
4 b
2 b
F G H
b) Use Dijkstras algorithm to construct a tree giving shortest paths from A to each of the
other vertices in the weighted graph in part (a).
39. a) Use Kruskals algorithm to find a minimal spanning tree for the following weighted graph.
Then find a second minimal spanning tree for the graph. How many other minimal spanning
trees are there?
A 1 B
4 1 1 5
D
C 4 5 E
2 3
2
4 5
F 2 G 3 H
b) Use Dijkstras algorithm to construct a tree giving shortest paths from A to each of the
other vertices in the weighted graph in part (a).
40. Use Dijkstras algorithm to find a shortest path from the vertex v0 to the vertex v1 in the
following weighted graph.
A b
C E J b b b
2 4 10 3
3
4 4
v0 b
2 3 2 6 b v1
6
5
1 4 7 8
b b b b
B D F H
53
ANSWERS TO SELECTED PROBLEMS
Important Note
Here are some answers (not solutions) and some hints to the problems. These are NOT intended as
complete solutions and rarely are any reasons given. To obtain full marks in test and examination
questions FULL reasoning must be given, and your work should be clearly and logically set out.
Problem Set 1.
1. A = B.
2. Yes.
5. a) 4; b) 16; c) 65536.
6. a) T; b) F ; c) T ; d) F ; e) F; f) T ; g) T
8. Yes.
11. 6.
15. a) A B; b) A; c) U.
16. B.
17. A B; A B.
89
23. a) (0, 4]; b) ( 90 , 10]; c) {1}.
25. a) 3; b) 4; c) 4; d) 3.
27. a) 1 1, not onto; b) bijection; c) onto, not 1 1; d) not 1 1 and not onto.
x3
35. a) f 1 (x) = 5 .
39. 40430.
9 4
42. 2 n1 n1 .
N +1
44. 2N .
Problem Set 2.
2. T, F, T, F.
3. T, F, T, F, F, F.
5. a) 22 33 52 , 25 35 53 ; b) 3, 22 32 53 7; c) 3, not defined.
6. 1, 3, 2.
8. a) n = 6, 4; b) 58 1, 6; c) 2, 10.
d) x 502 (mod 1001); e)x 99, 206, 313 (mod 321) or x 99(mod 107)
g)x 29, 70, 111, 152, 193, 234, 275, 316, 357, 398, 439, 480, 521 (mod 533) or
x 29 (mod 41)
13. c) R3 = {(3, 2), (3, 4), (5, 2), (5, 4), (5, 6)}.
55
14. R3
a)
2
2
3
4
4
6
5
0 0 0
1 1 0
b) MR3 =
0
0 0
1 1 1
Problem Set 3.
21. b) True.
c) True.
59. a, c, e and f
62. a) Contradiction.
56
b) Contingency.
c) Tautology.
d) Tautology
64. a) q
b) p
c) p q r
d) p q.
66. I did my homework, but there is no way of deciding whether or not I studied.
1. a) 52 94 ; b) 4 52 63 ; c) P (9, 6) = 9 8 7 6 5 4; d) C(6, 3) 83 ;
6 5 4
e) 8 + 6 8 + C(6, 2)8 ; f) C(6, 3)P (8, 3); g) 4 94 .
2. a) 21!/13!, 21!/8! 13!, 321!/123! 198!, (2n)!/(n!)2 ; b) 840, 35, 120, 6, 20100.
4. a) C(7, 1)P (5, 1)P (21, 6); b) C(7, 2)P (5, 2)P (21, 5); c) C(7, 3)P (5, 3)P (21, 4);
d) C(7, 3)P (5, 3)P (21, 4) + C(7, 4)P (5, 4)P (21, 3) + C(7, 5)P (5, 5)P (21, 2).
8. a) 143; b) 128.
10. (pq) = (p 1)(q 1), (p2 q) = p(p 1)(q 1), (pqr) = (p 1)(q 1)(r 1);
19. 4 7 6 9 16!/20!.
1
21. a) 365 ; b) 1 P (365, n)/365n ; c) n 23.
57
22. a) C(23, 3); b) C(15, 3); c) C(23, 3) C(19, 3).
30. 2, 3, 5.
18
31. un = 1 + 1200 un1 900, for n 1, u0 = 50000.
33. a) an = A(2n ) +
B(3)
n; b) an = A + B(2n );
c) an = A(3n ) + Bn(3n );
d) an = A(1 + 5) + B(1 5)n .
n
1
2n+1 + (1)n .
37. a) a1 = 1, a2 = 3; b) an = 3
38. b) an = 2n1 + 12 4n
n
39. a) 0, 2, 4, 12, 32, 88; b) an = 2an1 + 2an2 ; c) 1 (1 + 3)n (1 3) .
3
1
2n+2 + (1)n+1
40. c) an = 3
1
3n1 + 1 2n
41. c) 2
Problem Set 5.
4. Number of edges = 7.
It is the only simple graph with these degrees. (The two degree 2 vertices cannot be adjacent.)
5. a) simple examples
8. 35 (= 15 + 12 + 6 + 1 + 1)
9. a) K n
= En , ie, the graph with n vertices and no edges.
Km Kn (disjoint union)
b) K m,n =
n(n 1)
10. m
2
11. Y =Bipartite, N =Not Bipartite.
a) Y b) N c) Y d) N e) Y f) N g) N .
B
14. a)
A
C
f: a b c d e
t u y x z
f: a b c d e f
v z y t u x
60
c) Not isomorphic.
d) Not isomorphic.
e) Isomorphic eg. f : V (G1 ) V (G2 )
f: a b c d e f g
y t u v w x z
f) Not isomorphic.
and
17. a) n = 2 : 2 possible
b) n = 3 : 4 possible
c) n = 4 : 11 possible
18. There are 4 components with vertex sets {A, B, H, L}, {C, F }, {D, G, I, M }, {E, J, K, N }.
19. a) 2 b) 7 c) 20 d) 61.
0 1 0 0
1 0 1 1
20. a) M = 0
1 1 2
0 1 2 0
1 0 1 1 0 3 3 2
0 3 3 2 3 5 10 9
b) M 2 = M3 =
,
1 3 6 3 3 10 15 15
1 2 3 5 2 9 15 8
c) 3 and 10 respectively.
BDe4 C
BDe5 C
BCe3 C
61
Walks of length 3 B to C are
BABC
BDBC
BCBC
BCe4 De4 C
BCe4 De5 C
BCe5 De4 C
BCe5 De5 C
BDe4 Ce3 C
BDe5 Ce3 C
BCe3 Ce3 C
d) i) This means there are 20 walks of length 3 from C to D.
ii) This means G is connected.
21. a) ) N
) Y eg. ABCDEF CGEICHA
) N
) N
b) ) N
) N
) Y
) N
c) ) Y eg CBAECDEGe1 BF Ge2 BD.
) N
) Y eg DCEABF G
) N
d) ) Y eg BAEBCADCF DEF
) N
) Y eg ABCDF E
) Y eg ABCDF EA.
e) ) Y eg BAEBCDF C
) N
) Y eg EABCDF
) N
f) ) Y eg GBAEDBCGF CEG
) N
) Y eg ABDECGF
) N .
23. a) n = 2
b) Never
c) n = 1.
62
24. a) m, n both even
b) m = 2 and n odd or n = 2 and m odd
c) m = n 2.
28. i) a) 2 b) 8
ii) a) 1 b) 8
iii) a) 4 b) 12
iv) a) 3 b) 12
v) a) 6 b) 6
vi) a) 9 b) 12
29. a) 15 b) 6
2. (3 marks)
Let f be a function from A to B and g a function from B to C. Show that if the composite
function g f is onetoone (injective), then f is onetoone (injective).
3. (4 marks)
Prove that if k > 1 then
1 1 4k
= 2 .
(k 1)2 (k + 1)2 (k 1)2
Hence simplify
n
X k
.
(k2 1)2
k=2
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2008
TEST 1 VERSION 1B
This sheet must be filled in and stapled to the front of your answers
2. (3 marks)
Let f be a function from A to B and g a function from B to C. Show that if the composite
function g f is onetoone (injective), then f is onetoone (injective).
3. (4 marks)
Prove that if k > 1 then
1 6 7 8k 6
+ = .
k1 k k+1 k(k2 1)
Hence simplify
n
X 4k 3
.
k(k2 1)
k=2
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S1 2009
TEST 1 VERSION 1B
This sheet must be filled in and stapled to the front of your answers
2. (3 marks)
A function f : R R is defined by
3. (4 marks)
Prove that if k > 1 then
5 3 2 9k + 6
= .
k1 k k+2 (k 1)k(k + 2)
Hence simplify
n
X 3k + 2
.
(k 1)k(k + 2)
k=2
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2009
TEST 1 VERSION 1A
This sheet must be filled in and stapled to the front of your answers
2. (3 marks)
Let f be a function from A to B and let g be a function from B to C.
(i) State what it means to say that f is a onetoone function, and what it means to say that
g is a onetoone function.
(ii) Prove that if both f and g are onetoone functions, then the composite function g f is
also onetoone.
3. (4 marks)
Use the laws of set algebra to simplify
(A B c ) (Ac B c )c .
2. (3 marks)
Let f and g be functions from R to R defined by
3. (4 marks)
Use the formula
tan A tan B
tan(A B) =
1 + tan A tan B
to prove that
tan k tan(k 1)
tan k tan(k 1) = 1 .
tan 1
Hence simplify
n
X
tan k tan(k 1) .
k=1
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S1 2008
TEST 2 VERSION 2A
This sheet must be filled in and stapled to the front of your answers
2. (3 marks)
Consider the divisibility relation on the set
It is given that this relation is a partial order on S (do not prove it!).
(i) Draw the Hasse diagram for this partial order.
(ii) Find all maximal elements and all minimal elements of S.
(iii) Does S have a greatest element? Does S have a least element? If so, write them down; if
not, explain why not.
3. (4 marks)
A relation is defined on Z+ by
(note that k may be positive, negative or zero). Prove that is an equivalence relation.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2008
TEST 2 VERSION 2A
This sheet must be filled in and stapled to the front of your answers
2. (3 marks)
Let a, b and c be integers. Prove that if a2 | b and b3 | c then a4 b5 | c3 . Be sure to set out your
answer clearly and logically.
3. (4 marks)
A relation is defined on the set of all real numbers by
2. (3 marks)
Let a and m be integers. Prove that if a | m and a + 1 | m then a(a + 1) | m. Be sure to set out
your answer clearly and logically.
3. (4 marks)
A relation is defined on the set of all positive integers by
2. (3 marks)
Let x, y and m be integers. Prove that if m | 4x + y and m | 7x + 2y then m | x and m | y.
3. (4 marks)
Let F be the set of all functions f : R R. A relation is defined on F by
2. (3 marks)
(i) Find the prime factorisation of 6500, and of 1120.
(ii) Hence write down, in factorised form, gcd(6500, 1120) and lcm(6500, 1120).
3. (4 marks)
We write R+ for the set of positive real numbers. A relation is defined on R+ by
p (q p) and (p q) q .
(ii) Giving reasons for your answer, determine whether the first formula logically implies the
second, or the second logically implies the first, or both, or neither.
2. (3 marks)
Prove that log6 11 is irrational.
3. (4 marks)
Show that
q(n) = 11n2 + 32n
is a prime number for two integer values of n, and is composite for all other integer values of
n.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2008
TEST 3 VERSION 1A
This sheet must be filled in and stapled to the front of your answers
(ii) Giving reasons for your answer, determine whether the first formula logically implies the
second, or the second logically implies the first, or both, or neither.
2. (3 marks)
You are given a theorem, together with the basic ideas needed to prove it. Write up a detailed
proof of the theorem. Your answer must be written in complete sentences, with correct spelling
and grammar. It must include a suitable introduction and conclusion; reasons for all statements
made; correct logical flow and any necessary algebraic details.
3. (4 marks)
Prove that if a is any positive real number then the equation
ax = cos x
p ((q (p)))
is a tautology. Show all your working and give a reason for every step. You may assume that
u v is logically equivalent to (u) v.
2. (3 marks)
You are given a theorem, together with the basic ideas needed to prove it. Write up a detailed
proof of the theorem. Your answer must be written in complete sentences, with correct spelling
and grammar. It must include a suitable introduction and conclusion; reasons for all statements
made; correct logical flow and any necessary algebraic details.
(1 2) + (2 5) + (3 8) + + n(3n 1) = n2 (n + 1) .
3. (4 marks)
Prove that if x is a real number and 2x2 3 = 0 then x is irrational.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2009
TEST 3 VERSION 1A
This sheet must be filled in and stapled to the front of your answers
2. (3 marks)
You are given a theorem, together with the basic ideas needed to prove it. Write up a detailed
proof of the theorem. Your answer must be written in complete sentences, with correct spelling
and grammar. It must include a suitable introduction and conclusion; reasons for all statements
made; correct logical flow and any necessary algebraic details.
Theorem. Between any two different rational numbers there is another rational number.
x+y
Basic ideas: if x and y are rational then so is .
2
3. (4 marks)
Prove that if n is a positive integer then 42n + 10n 1 is a multiple of 25.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S1 2010
TEST 3 VERSION 2B
This sheet must be filled in and stapled to the front of your answers
(p q) (q (p r))
is logically equivalent to p (q r) . Show all your working and give a reason for every step.
You may assume that u v is logically equivalent to (u) v.
2. (3 marks)
Prove that if n is a positive integer then
3. (4 marks)
Prove that if n is any positive integer than 4n 2 is irrational.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S1 2008
TEST 4 VERSION 3B
This sheet must be filled in and stapled to the front of your answers
2. (2 marks)
An ordinary sixsided die is rolled ten times. Find the probability that five different faces come
up twice each.
3. (3 marks)
Find a particular solution of the recurrence relation
an 8an1 + 15an2 = 21 2n .
4. (3 marks)
How many hands of 13 cards can be chosen from a standard pack which have exactly five cards
in some suit?
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2008
TEST 4 VERSION 1B
This sheet must be filled in and stapled to the front of your answers
2. (2 marks)
Find the probability that a hand of eight cards dealt from a standard 52-card pack contains
exactly three kings.
3. (3 marks)
(i) How many solutions has the equation
x1 + x2 + x3 + x4 + x5 = 16
4. (4 marks)
Find the general solution of the recurrence relation
an 16an2 = 9 2n .
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S1 2009
TEST 4 VERSION 1A
This sheet must be filled in and stapled to the front of your answers
x1 + x2 + x3 + x4 + x5 = 66 ,
(i) if x1 , x2 , x3 , x4 , x5 are nonnegative integers?
(ii) if x1 , x2 , x3 , x4 , x5 are even numbers?
2. (2 marks)
In a survey, viewers are given a list of 20 TV programmes. They are asked to label their three
favourites 1, 2 and 3, and to put a tick against those they have heard of (if any) from the
remaining 17. In how many ways can the form be filled out? (Assume that everyone has three
favourite programmes to nominate.)
3. (3 marks)
Find the solution of the recurrence relation
an 10an1 + 21an2 = 0
4. (3 marks)
There are 50 houses along one side of Discrete St. A survey shows that 26 of these houses have
MATH1081 students living in them (what a coincidence). Prove that there are two MATH1081
students who live exactly five houses apart in Discrete St.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S2 2009
TEST 4 VERSION 2B
This sheet must be filled in and stapled to the front of your answers
2. (2 marks)
How many thirteencard hands can be selected from a standard pack which contain exactly four
spades or exactly four diamonds?
3. (3 marks)
Find the general solution of the recurrence relation
an + 3an1 10an2 = 2n .
4. (3 marks)
A course has seven elective topics, and students must complete exactly three of them in order
to pass the course. Show that if 200 students passed the course, at least six of them must have
completed the same electives as each other.
UNIVERSITY OF NEW SOUTH WALES
SCHOOL OF MATHEMATICS AND STATISTICS
MATH1081 DISCRETE MATHEMATICS S1 2010
TEST 4 VERSION 2A
This sheet must be filled in and stapled to the front of your answers
2. (2 marks)
How many solutions has the equation
x1 + x2 + x3 + x4 + x5 = 55 ,
3. (3 marks)
Find the solution of the recurrence relation
an 7an1 + 10an2 = 0
4. (3 marks)
How many elevenletter words (constructed from the English alphabet) contain the subword
FRED?