The sequence $1,2,3,4,5,10,20,40,\ldots$ starts as an arithmetic series, but after the first five terms, it becomes a geometric series. The problem is to prove by induction that any positive integer can be written as a sum of distinct numbers from this sequence.
I came up with the following solution, but I'm not satisfied. I'd like some help to better formalize my proof and also identify potential flaws.
Proof. Fix a positive integer $n$. Suppose that every positive integer $k < n$ can be written as a sum of distinct numbers from $s=(1,2,3,4,5,10,20,40,\ldots)$. We prove that this claim holds for $n$. There are two cases:
- If $0 < n < 6$, then the result follows by the definition of $s$.
- If $n \geq 6$, then, by the induction hypothesis, we know that $n - 5 > 0$ can be written as a sum of distinct numbers from $s$. By adding 5 to $n - 5$, two things can happen: either 5 is already a term in the sum or it is not. If it is not, then we are done. Otherwise, add the two 5's to get a 10. If 10 is already a term in the sum, add the two 10's, and so on. By repeating this process, we guarantee that the terms in the sum are distinct and that we are only adding multiple of 5, which are always present in $s$.
QED
The way I wrote the last case is, of course, quite informal. In addition, it feels to me that there is another proof by induction lurking in the last case, but I was not able to formalize it properly. Could you help me improve this proof? (And if there are any flaws, please do point them out.)
This may be an alternative to your induction step, for $n \ge 6$:
If $n\in s$, then that's a way to represent $n$ as a sum of one term.
Otherwise, pick the largest number $k\in s$ that satisfies $k < n < 2k$. By the induction hypothesis, $n-k$ can be represented as a sum that doesn't contain $k$. (Because $0< n-k < k$)
These two cases can be further merged, by adding the $n=0$ case to the base cases and to the induction hypothesis.
The induction step only requires having some $k\in s$ such that $k\le n < 2k$, i.e. the next larger element after $k$ should be at most $2k$, regardless of whether $2k\in s$. So for example, this proof still works by skipping one of $3$ or $4$ in the sequence $s$.