This is a question the prof asked in my university math proofs course. I've tried this for a bit over an hour and I am stuck.
The method I personally chose was proof by cases:
Case 1: n is even:
Thus $n = 2k$ for some k ∈ Z. So $n = 2k = 5a + 2b$
Here I can choose $a=0$, thus $n = 2k = 2b$ Therefore, if n is even there always exists some a,b∈ Z such that $n = 5a + 2b$ and case 1 is true.
Case 2: n is odd:
Thus $n = 2k+1$ for some k ∈ Z. So $n = 2k+1 = 5a + 2b$
This is where I'm stuck, I cant seem to show that the case is always true for when n is odd.
If you could give me a hint in the right direction or complete my method of proof by cases that would be great, or if you had another method of proving it that would be helpful too.
Thanks, John
Doing cases is inefficient and I hope you play around a bit to see why but:
If $n = 2k + 1$ is odd.
Then $n = 2k + 1 = 2k + 5 - 2 = 2(k-2) + 5$ so let $a= 1$ and $b=k-2$.
=====
But it might be nicer to note:
$1 = (1)*5 + (-2)*2$.
So $n = n*1 = n*5 + (-2n)*2$. SO let $a = n$ and $b = -2n$.
I'll let you play around and try to figure out why I consider that "nicer".