Find a recurrence for $$i_n$$ the number of integer compositions of $n$ which only have $1$s and $2$s as parts.
How do you approach this problem?
Find a recurrence for $$i_n$$ the number of integer compositions of $n$ which only have $1$s and $2$s as parts.
How do you approach this problem?
Hint: what are the choices for the last part? For each choice, how many compositions are there for what is left?