Six friends are going to give each other gifts in a such a way that everybody gives one gift and receives one . In how many ways is this possible?
Condition: No one should receive his own gift.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Relevant wiki: Derangements
Using the derangement formula = 6 ! ( 1 1 − 1 1 + 2 1 − 6 1 + 2 4 1 − 1 2 0 1 + 7 2 0 1 ) = 7 2 0 ( 1 4 4 5 3 ) = 2 6 5