>>7
For n=8, 11, 14, 17, etc:
First we prove that it holds for n=8. Simple: n=3*1+5*1.
Now, let's assume 8+3x (x being a non-negative integer) can be represented as 3a+5b. Then 8+3(x+1) = 8+3x+3 can be represented as 3a+5b+3 = 3(a+1)+5b:
8+3(x+1)
= (taking 3 outside the parentheses)
8+3x+3
= (by assumption (formal term: "induction hypothesis"))
(3a+5b)+3
= (taking 3 inside the parentheses)
3(a+1)+5b
That's it, we're done (for n=8, 11, 14, 17, etc). We've shown that the condition we're interested in holds for n=8 (n=8+0x), and we've shown that IF it holds for n=8+3x, THEN it also holds for n=8+3(x+1). This is enough to conclude that it holds for n=8+3x, for all (non-negative integer) x.
Constructing a similar proof for the other two cases is left as an exercise to the reader.