I'm having trouble proving that the number of ways n>3 people can be divided into groups of either one or two is equal to:
$A_n = A_{n-1} + (n-1)⋅A_{n-2} $
I'm trying to prove this by counting but am open to suggestions.
So far, I've got:
The base cases:
$A_1 =1$
$A_2 =2$
$A_3 =4$
And I think that the first part $A_{n-1}$ is just counting all the ways if the $n$th term is added to $A_{n-1}$ on a group by itself.
I also believe that the second term $(n-1)⋅A_{n-2} $ is counting the number of groups of 1 in $A_{n-1}$ that the $n$th term can pair up with, although I don't know how to even start proving this since I can't get the logic behind exactly how it's counting these groups of 1.
I'd really appreciate any guidance on how to go about this...
When you have $n$ people, consider what you do with the last person.
If you let him alone, you have $A_{n-1}$ ways to group the other $n-1$ people.
If you group him with someone else, you have $n-1$ ways to do that. And after that you need to group the other $n-2$ people. That's where comes from $(n-1)A_{n-2}$