A young pair of rabbits (one of each sex) is placed on an island.
A pair of rabbits does not breed until they are 2 months old.
After they are 2 months old, each pair of rabbits produces another pair each month.
And the pairs leave the island after reproducing twice.
Find a recurrence relation for the number of pairs of rabbits on the island after n months.
Let $a_n$ be the number of pairs of rabbits on the island after $n$ months.
Answer in the book: $a_n=a_{n-2}+a_{n-3}$
I counted the population for the first nine months $a_0=1, a_1=1, a_2=2, a_3=2, a_4=3, a_5=4, a_6=5, a_7=7, a_8=9, a_9=12$ and see that the recurrence relation in the book satisfies these values.
But I can't understand the solution. Can someone please explain the logic?