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
Oct 8, 2017

160160

Explanation:

We can represent the exchanging of the books by a directed graph with 66 nodes representing the friends and arrows between them representing the direction in which books go.

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 11 or 22-cycles.

Hence the only possible simultaneous exchanges fall into two categories:

  • One 66-cycle.

  • Two 33-cycles.

Consider each case in turn:

Case: One 66-cycle

  • 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 5! = 1205!=120 possible choices of a single 66-cycle.

Case: Two 33-cycles

  • 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 has 22 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 5 * 4 * 2 = 40542=40 possible choices of two 33-cycles.