Data Chunks
Problem
The situation : You have access to a communications link which you share with other users.
The link sends a stream of data in pulses at set intervals - a little like an escalator where each step carries a character.
The data you need to send comes in chunks of two different sizes - a yellow chunk has $5$ characters and a blue chunk has $9$ characters.
Slots in the data stream become available and you have to decide if you can use them efficiently with your yellow and blue data chunks.
For example a $180$ character slot could take $20$ blue chunks.
And a $78$ character slot could take $3$ yellow and $7$ blue chunks.
Slots come up very frequently so its only worth taking the ones you can fill exactly.
For example a slot of size $31$ cannot be exactly filled with a combination of yellow and blue chunks.
Begin by exploring what slot sizes near to $31$ can, or cannot, be exactly filled.
Don't rush that, but when you have a good feel for the problem move on to generalise this situation.
Your two chunks are not necessarily lengths of $5$ or $9$ characters.
Whatever two lengths you choose there will be slot sizes you cannot exactly fill.
Investigate how the two chunk lengths determine the slot sizes that will or will not work.
Describe your findings
You may find the Excel file Data Chunks useful.
If you spend a moment looking at the numbers you'll soon see how this spreadsheet file works.
There is also something you should know about spreadsheets and mathematical thinking:
Using ICT is often brilliant for getting lots of results fast, leaving your mind free to think about what's going on, but doing some calculating yourself gives you an on-the-ground feel for the process.
So the trick is to use both approaches, getting the benefit from each.
The Data Chunks problem is a challenge.
It takes time and determination, but if you've enjoyed wrestling with it then we feel confident that you'll want to see these links below.
There is an NRICH article by Alan and Toni Beardon about Euclid's Algorithm.
Click for Part One then there's a Part Two to take you on further.
Another article, this time by Vicky Neale and Matthew Buckley is about Modular Arithmetic
Yet another by Vicky is called Introductory Number Theory
Enjoy.
Getting Started
Next have light green with purple, then yellow, and so on.
Next take purple . . . you get the idea?
Making careful notes and producing tables are essential.
Student Solutions
Tom firstly showed that we can't solve it for anything other than multiples of the highest common factor of the length:
Suppose we can send data chunks of length $a$ or $b$, and $c$ is our slot size. We can write an equation $ax+by=c$ where $x$ and $y$ are positive integers. If this equation has solutions for $x$ and $y$, we can fill a slot size of $c$ exactly. However because $x$ and $y$ must be positive, we have to be careful. Let $\text{HCF}(a,b)=d$. First, consider an ordinary (with negative solutions) linear diophantine equation (as in the solution to this question ). So we know this cannot have solutions unless $d$ divides $c$.
Tim called $a$ and $b$, $p$ and $q$ and completed the problem for us, finding that we cannot make $pq-p-q$, but we can make all the numbers after it, as shown below:
Write: $$pq-p-q=xp+yq$$
So: $$0=q(1+y) (\text{mod } p)$$
Since $q$ is non-zero,$$ y=-1 (\text{mod } p)$$
If we try $y=p-1$, then $$pq-p-q=xp+pq-q$$
$$0=p(x+1)$$
But this makes $x$ negative, which is impossible. If we try to make $y$ larger, then $x$ has to be smaller, and so there is no solution.
To make all the numbers bigger than this, firstly we notice that we can multiply through by a constant, and so find x and y such that:
$$px+qy=c$$ for all $c$.
Precisely one of $x$ and $y$ must be positive, so if we add $pq$, then for any $c$ we will have:
$$px'+qy'=c+pq$$
With $x'$ and $y'$ at least $0$. In fact, we can find them so they have to be at least $1$, since if one of them was $0$ (for example, $y'$) then: $$px'=c+pq$$ But $c$ would have to be a multiple of $p$ also ($c=bp$) so we could write: $$c+pq=bp+pq$$ So we can choose $x'=b$ and $y'=q$.
But we only need $x'$ and $y'$ to be at least $0$, so we can subtract $(p+q)$ from each side to get (for any $c$ that is at least $1$):
$$c+pq-p-q=px'+qy'$$
With $x'$ and $y'$ both at least $0$.
To learn more about modular arthmetic, why not read the articles linked to in the question?
Teachers' Resources
Conjectures are important, and should be encouraged, but along with a challenge to really explain why any claim might be true generally.
We hope the problem will give students a genuine pleasure in discerning real structure, and lead their interest on into Number Theory.
The articles on the NRICH site (see link from problem page) are an excellent follow-on.