Let $p_n$ be the number of partitions of n into size either 1 or 2, and by definition take $p_0=1$. For example, one such partition of 5 is $5=2+2+1$. I have been given that the generating function for $p_n$ is
$P(x)=\sum_{n\ge0} p_nx^n=\frac{1}{1-x-x^2-x^3}$
and from that have found the following recurrence relation for $p_n$:
$p_{n+3}=p_{n+2}+p_{n+1}-p_{n}$
My question is how do I come up with a combinatorial explanation for the above recurrence relation?
My first thought was to consider whether the "last" term in the sum was either a one or a two. If the last term is a 1, then we have $p_{n+2}$ partitions for the remaining contribution of n+2. If the last term is 2, then we have $p_{n+1}$ partitions for the remaining contribution of n+1. Of course, this doesn't explain why we subtract off a $p_n$ term. We must be double counting $p_n$ somehow, but I am unsure as to why. We are also considering partitions of n rather than compositions where order doesn't matter, so there isn't really a "last" term.
If anyone can provide some explanation/hints as to justify this recurrence relation combinatorically I would greatly appreciate it!