If $A_n$ represents the number of ways to write $n$ as an ordered sum of positive odd integers, then $A_n = A_{n-1} + A_{n-2}$.
For example, $A_2 = 1$ $(1+1)$, $A_3 = 2$ $(1+1+1)$, $(3)$, and $A_4 = 3$ $(1+1+1+1)$, $(1+3)$, $(3+1)$
The $A_{n-1}$ part looks straightforward to me. I just put a "$+1$" after every solution of $A_{n-1}$. But I couldn't understand the $A_{n-2}$ part. I tell myself that for each partition of $A_n$, I look at its rightmost number. If it's $1$, then I take it away, so the rest would correspond to a solution of $A_{n-1}$. And if it's not $1$, I subtract $2$ from that number, which will still remain an odd number, and the numbers would correspond to a solution of $A_{n-2}$. But I just couldn't convince myself. How can I make sure I can get all the solutions with this idea? And why can't I subtract $4$, or $6$ from the rightmost number?
Is there a better (or mathematical) way to look at this recurrence relation?
As an exercise, I changed the question to:
$A_n$ now represents the number of ways to write $n$ as an ordered sum of positive integers, where each summand is at least 2.
I found the recurrence relation was the same as above (but I'm not sure), and I also didn't know how to justify my answer.
I believe the two questions have the same logic behind, please help! Thanks!