There are six friends in a book club and each of them gives their book to one friend and receives a book from another friend. How many different ways can the books be exchanged, assuming that no two friends can exchange (give and receive) books?
1 Answer
Explanation:
We can represent the exchanging of the books by a directed graph with
If they all exchange books at once, then every node has an arrow going from it and one going to it.
Since there are a finite number of friends, the arrows must form cycles.
From the conditions of the question, there are no
Hence the only possible simultaneous exchanges fall into two categories:
-
One
66 -cycle. -
Two
33 -cycles.
Consider each case in turn:
Case: One
-
The first friend has
55 possible friends to choose. -
The friend to whom the book is given has
44 possible choices. -
The next friend has
33 possible choices. -
The next friend has
22 possible choices. -
The next friend has
11 possible choice. -
This last friend gives their book to the first friend.
So there are
Case: Two
-
The first friend has
55 possible friends to choose. -
The friend to whom the book is given has
44 possible choices. -
The next friend has just one choice - to give their book to the first friend.
-
The first of the
33 remaining friends has22 choices. -
The next friend has
11 choice, to give their book to the last remaining friend. -
The last friend gives their book to the first friend of their
33 -cycle.
So there are