MA2011 Discrete Mathematics for Computing
A step-by-step guide to Assessment Item 2
Work through it on your own, at your own pace. Use the arrow keys to move.
Press T at any time for the contents list, so you can jump back to a part you need again.
Always check LearnJCU for the official dates and the grade rubric. If anything here disagrees with the subject outline, the subject outline wins.
| What is it? | A short written report about one puzzle. You explore it, solve it, explain it, then make it harder. |
|---|---|
| How much is it worth? | 30% — the same as two problem sheets put together. |
| How many problems? | You choose one. Forged Coin or Tower of Hanoi. Not both. |
| Can I work with others? | Yes — talk to as many people as you like. But the words you submit must be written by you, alone. |
| What is due first? | A proposal and draft outline, Tuesday of Week 9, 4pm. Compulsory, but not graded. |
| What is due at the end? | The full report, Wednesday 3 December, 11:59pm. |
Put both dates in your phone calendar before you go any further. It takes twenty seconds.
You are not being marked on whether you get the right answer.
You are being marked on how you go looking for it.
This is different from most maths you have done. In this task:
Both puzzles have been solved by other people already. Your lecturer knows the answers. What nobody else can hand in is a record of your thinking.
Both problems are chosen because of two properties:
You need almost no maths to start. You can begin today with a pen, paper, and some coins or coasters. Nothing is stopping you from starting.
You can take them as far as you like. Logic, proof, induction, sets, counting, trees — all of it becomes useful once you go deep enough.
There is no "getting stuck at the start". If you feel stuck, you have simply not made the problem small enough yet. Section 2 shows you exactly how to do that.
Note: this guide is for the MA2011 version of the task. MA2211 students write up a theorem and its proof instead — ask your lecturer for that version.
Two puzzles. Pick one. Do not pick both.
You have 9 coins. One of them is fake.
The fake coin weighs a different amount from the others — but you do not know whether it is heavier or lighter.
You have a two-sided balance. It tells you: left side heavier, right side heavier, or perfectly equal.
Find the fake coin in at most 3 weighings.
You like drawing branching diagrams and thinking about searching and strategy. This one connects naturally to decision trees and to how search algorithms work.
Three poles. Three discs of different sizes, stacked on one pole — biggest at the bottom, smallest on top.
You may move one disc at a time onto another pole.
You may never put a bigger disc on top of a smaller one.
What is the smallest number of moves needed to shift the whole stack to another pole?
You like counting, patterns, and formulas. This one connects naturally to recursion and induction — and it is easy to write code for.
| Forged Coin | Tower of Hanoi | |
|---|---|---|
| Main question | Which coin, and how do I always find it? | How many moves, and why can't I do better? |
| You will mostly draw | Branching trees of outcomes | Tables of numbers, and stacks |
| Maths it leads to | Trees, counting outcomes, strategy, probability | Recursion, induction, formulas, powers of 2 |
| Easiest way to start | Grab 9 identical objects and shuffle them around | Use 3 coins of different sizes, or 3 stacked books |
| Coding it is | Harder, but interesting | Very easy (a few lines of recursion) |
Spend twenty minutes playing with both, physically, with real objects. Choose the one you found yourself still thinking about afterwards. Do not choose based on which looks easier — you will be living with it for five weeks.
Five steps that work on any puzzle of this kind
Whichever puzzle you chose, you follow the same five steps. This is the shape of your whole project.
These five steps are also, roughly, the sections of your report. If you do the steps and write down what you did as you go, the report almost writes itself.
To show you the five steps without spoiling your project, we will run them on a third, different puzzle.
I am thinking of a whole number between 1 and 100. You may only ask me questions I can answer yes or no.
What is the smallest number of questions that always works?
Notice this puzzle has the same shape as yours: there is a hidden thing, you get limited information each step, and you want a strategy that always works in as few steps as possible.
Do not hand in this puzzle. It is a worked demonstration only. Watch the method, then apply that method to your own problem.
Do not sit and think. Actually try things.
"Is it 1? Is it 2? Is it 3? ..."
This works, but in the worst case it takes 99 questions. Too slow. Why? Because each question only ever removes one number from the list.
"Is it less than 50?" Whatever the answer, roughly half the numbers are gone at once. That feels much better.
Write the failed attempt and the reason it failed. "Each question only removes one option" is the sentence that led directly to the better idea. That sentence is worth marks.
100 is too big to think about. So do not think about 100. Ask the same question for tiny cases first, and put the answers in a table.
| How many numbers | Questions needed |
|---|---|
| 1 | 0 |
| 2 | 1 |
| 4 | 2 |
| 8 | 3 |
| 16 | 4 |
A picture like this is called a decision tree. It is the single most useful drawing in this whole assessment, because it shows every possible thing that could happen — so you can see that you have not missed a case.
Look at the table again: 1, 2, 4, 8, 16 need 0, 1, 2, 3, 4 questions.
Each extra question doubles how many numbers I can handle. With \(k\) questions I can cope with up to \(2^k\) numbers.
Now turn that observation into a clear claim about every case, not just the ones in the table:
To find one hidden number out of \(n\) possibilities, the smallest number of yes/no questions that always works is the smallest \(k\) with $$2^k \ge n.$$
A conjecture is just a careful guess that you believe but have not proved yet. Writing "I conjecture that..." is completely normal and expected. It is not a weak thing to say.
A good justification almost always has two separate halves. Students usually only do the first and lose marks.
Describe a method and show it always works. "Always ask about the middle of the remaining list. That halves it every time, so after \(k\) questions at most \(n/2^k\) options remain."
Show fewer steps is impossible. "With \(k\) questions there are only \(2^k\) different answer-sequences. If \(2^k < n\), two different numbers give the same sequence, so I cannot tell them apart."
Half 1 alone proves a method works. Only Half 2 proves it is the best possible. Your task explicitly asks you to discuss whether your solution is optimal — that means Half 2.
Ask yourself now: in your puzzle, how much information does one step give you? Coin weighings and disc moves do not behave like yes/no questions. What changes?
Now change one rule and ask the same question again. This is where the higher marks live.
| Change one rule... | ...and ask |
|---|---|
| What if I am allowed to lie once? | How many extra questions do I need? |
| What if answers can be yes / no / maybe? | Does the \(2^k\) become \(3^k\)? |
| What if some numbers are more likely? | Should I still split down the middle? |
| What if questions cost money? | Do I now want the fewest questions on average, not in the worst case? |
Writing "if I changed X, I would expect Y to happen, because Z" earns marks even without a full answer — as long as your reasoning is sensible. Guessing with a reason is maths. Guessing with no reason is not.
| Step | Practice puzzle | Forged Coin | Tower of Hanoi |
|---|---|---|---|
| 1. Play | Ask silly questions, see what fails | Weigh coins at random, notice what you learn nothing from | Move discs by hand, get stuck, restart |
| 2. Organise | Table for 1, 2, 4, 8, 16 numbers | Try 2 coins, then 3, then 4... | Try 1 disc, then 2, then 3... |
| 3. Spot | \(2^k \ge n\) | How many coins can \(k\) weighings handle? | How does the count for \(n{+}1\) discs relate to \(n\)? |
| 4. Justify | Method works + nobody can beat it | Draw the full decision tree; check no case is missed | Prove your formula by induction |
| 5. Stretch | Lies, three answers, costs | More fakes? Different balance? Costly weighings? | More poles? Move two discs at once? |
Do row 2 for your chosen problem. Just the smallest cases. That single table is the foundation of everything else you will write.
What goes in each section, and what to actually type
Your report must have these, in this order. Use these as your headings — do not invent your own structure.
| 1 | Title and abstract — the problem in a nutshell, and what you found |
|---|---|
| 2 | Introduction — state the problem clearly, and preview the whole project |
| 3 | Strategy — first observations, small cases, attempts that failed, then your method or conjecture |
| 4 | Analysis — proofs where relevant, plus is it complete? is it optimal? |
| 5 | Extensions — how you would change the problem, and what you'd expect to happen |
| 6 | Conclusion — what you'd do with more time; what you still wonder about |
| 7 | References — anything you read, plus your AI declaration if you used AI |
Open a document today and type these seven headings with nothing under them. Then fill them in as you go. You will never face a blank page.
One short paragraph: what the problem was, what you did, what you found, how far you got. Write this last, once you know what you actually found.
"This report investigates [problem]. I first solved the case of [small case] by hand, and used it to build a general method. I conjecture that [claim], and prove this using [method]. I also consider what happens when [changed rule], and argue that [expected outcome]."
State the problem so precisely that a stranger could not misunderstand it. Then tell the reader what is coming: "In Section 3 I..., in Section 4 I...". Add background reading here if you did any.
Being precise matters. "Find the fake coin" is vague. "Find which of 9 coins differs in weight, and whether it is heavy or light, using at most 3 weighings on a balance" is precise.
This is the story of your thinking, in order. Include all four of these:
| Assumptions | State them at the start. e.g. "I assume exactly one coin is fake." Later, check: did you actually use each one? Did you quietly add more? |
|---|---|
| Small cases | Your table from Step 2. Show the actual working for at least one small case, not just the answer. |
| Failed attempts | What you tried, and precisely why it did not work. This is asked for explicitly. |
| Your method | Written so someone else could follow it without asking you a single question. Numbered steps are ideal. |
Hand your written method to a classmate doing the other problem. If they can carry it out correctly without you speaking, it is clear. If they ask you anything, that answer belongs in the report.
Does it cover every possible case?
If any situation could arise where your method does not tell you what to do next, it is not complete. Say so honestly, and say which cases are missing.
How to show it: list every branch of your decision tree, or argue by cases, and show each one ends with an answer.
Could anyone possibly do better?
Not "is mine the best I could think of" — "is it impossible for anyone to beat it". These are very different claims.
How to show it: count how many different outcomes are even possible in \(k\) steps, and show that is too few to distinguish all the cases.
Say exactly that, and explain what you would need in order to prove it. Honest limitations are marked well. Claiming something you have not shown is marked badly.
Take your problem and change one parameter at a time. For each change, write:
Summarise what you established. Then list the questions you would chase with more time. Ending with open questions is a strength — it is how real research papers end.
List anything you read — Rosen, Wikipedia, articles, videos. Consistent format, and every source you list must actually be cited somewhere in your text.
If you freeze when writing, start with one of these and complete it.
There is no minimum and no maximum. It is worth 30%, which is two problem sheets — so spend about that much effort.
Finish the smaller version, and write your original bigger plan into the "further work" part of the conclusion. This is exactly what researchers do, and it is not penalised.
How to avoid losing marks you did not need to lose
| Earns marks | Earns little or nothing |
|---|---|
| A table of small cases with your working shown | Jumping straight to a formula with no working |
| A failed attempt, with the reason it failed | A tidy report that hides all the struggle |
| A decision tree covering every case | "It works, I tried a few examples" |
| A proof, or a clear reasoned argument | A claim with the word "obviously" in front of it |
| Honest statements of what you could not do | Claiming results you did not establish |
| Extensions with reasoning, even unsolved | A list of extensions with no thoughts attached |
| Your own voice, even if imperfect | Polished text that does not sound like you |
Skipping the Week 9 proposal because it is not graded. It is compulsory, and it is your one chance to find out you are heading the wrong way while you still have time to turn.
You are not banned from using AI, and you will not lose marks for using it. But if you use it, you must declare it fully. Failing to declare it can count as academic misconduct.
In 2024, ChatGPT consistently got the forged coin problem wrong. In 2025 it reached a correct answer, but with a badly argued and needlessly complicated explanation. AI is unreliable on exactly this kind of puzzle — and the argument quality is precisely what is being marked.
Put this in an appendix. Copy the shape, fill in your own truth.
AI USE DECLARATION
Software: [name and version, e.g. ChatGPT, GPT-4, October 2025]
Prompt 1: "Check the grammar and clarity of the following paragraph: [...]"
Output 1: It rewrote the paragraph and shortened two sentences.
Used how: I accepted two wording changes and rejected one that changed
my meaning. The mathematical content is unchanged.
Why: English is not my first language and I wanted the writing clearer.
Evaluation: Useful for wording. I did not use it for the mathematics, because
the reasoning is the part I am being assessed on, and because it
has a known record of getting this problem wrong.
Sensible uses: checking grammar, tidying wording, explaining a term you met in Rosen. Poor uses: asking it to solve your problem, or to write your analysis. You would be handing over the exact part that earns the marks.
What to do, week by week
Time is set aside in tutorials and seminars in Weeks 6–10 to work on this and to ask questions. Use it — it is the cheapest help you will ever get.
Always check LearnJCU for the official deadlines and submission process before you rely on this diagram.
Do not try to plan the whole project today. These three things will take you about an hour, and after them you will know far more than you do now.
Roughly one page. It is not marked, so do not polish it. Answer these five questions:
1. Which problem am I doing? 2. What have I worked out so far? (Include your small-cases table, even if it is messy.) 3. What is my current conjecture or method? (A guess is fine here. Say it is a guess.) 4. What am I planning to do next? (Which extension am I heading towards?) 5. What am I stuck on, or unsure about? (This is the most useful part. Be specific.)
Question 5 is where you get real value. Being vague — "I'm a bit stuck" — gets you vague help. "I can prove my method works but I have no idea how to show nothing faster exists" gets you exactly the help you need.
| Tutorials and seminars | Time is set aside in Weeks 6–10 specifically for this project. Bring your table and your stuck questions. |
|---|---|
| Your classmates | You are allowed and encouraged to discuss the problem as much as you like. Only the final writing must be yours alone. |
| Padlet | Post questions, and answer someone else's. Explaining something to another person is the fastest way to find the gaps in your own understanding. |
| Your lecturer | Ask. Especially about probability and expected cost if you head that way — that help was explicitly offered. |
| Rosen | Section 8.1, Example 2 (p. 529) is directly relevant to the Tower of Hanoi. |
These are recreational puzzles. The best way in is to be curious, try things, talk to people, and keep asking "what would happen if...?". If you are enjoying it, you are doing it right.
Press T or Escape to close