Prove that for every integer $n \ge 8$, there exist nonnegative integers $a$ and $b$ such that $n = 3a + 5b$.
Proof: Let $n \in \mathbb Z$ with $n \ge 8$. Then $n = 3q$ where $q \ge 3, n = 3q + 1$ where $q \ge 3$ or $n = 3q + 2$ where $q ≥ 2$. We consider these three cases.
Case 1. $n = 3q$ where $q \ge 3$. Then $n = 3a + 5b$, where $a = q \ge 3$ and $b = 0$.
Case 2. $n = 3q + 1$ where $q \ge 3$. Then $n = 3(q − 3) + 10$, where $q − 3 \ge 0$. Thus $n = 3a + 5b$, where $a = q − 3 \ge 0$ and $b = 2$.
Case 3. $n = 3q + 2$ where $q \ge 2$. Then $n = 3(q − 1) + 5$, where $q − 1 \ge 1$. Thus $n = 3a + 5b$, where $a = q − 1 \ge 1$ and $b = 1$.
For every integer $n \ge 7$, there exist positive integers $a$ and $b$ such that $n = 2a + 3b$.
Proof: Let $n$ be an integer such that $n \ge 7$. Then $n = 2q$ or $n = 2q + 1$ for some integer $q$. We consider these two cases.
Case 1. $n = 2q$. Since $n \ge 7$, it follows that $q \ge 4$. Thus $n = 2q = 2(q − 3) + 6 = 2(q − 3) + 3 \cdot 2$. Since $q \ge 4$, it follows that $q − 3 \in \mathbb N$.
Case 2. $n = 2q + 1$. Since $n \ge 7$, it follows that $q \ge 3$. Thus $n = 2q + 1 = 2(q − 1) + 2 + 1 = 2(q − 1) + 3 \cdot 1$. Since $q \ge 3$, it follows that $q − 1 \in \mathbb N$.
Once the cases are chosen, the proofs are simple. Why do we we use $3$ cases in the first problem and $2$ cases in the second one? And why exactly these cases? Looks like it has to do with the integers in front of $a$ and $b$ in the problem statements. But why does that influence(if it does) the number of cases we choose?