I'm wondering if there is a way to calculate arrangements for this problem without enumerating all possibilities.
There are 4 work-pieces that 4 guys A, B, C, D work on during a single day. At the end of the day each person transfers his assigned work-piece to another person. Each person works on only 1 work-piece during a day. How many arrangements of transfer are possible?
E.g. A can transfer his workpiece to C (AC), or A can transfer it to B, or A can transfer it to D, but A can't transfer it to A.
One arrangement is:
AC (A transfers to C)
BD (B transfers to D)
CA
DB
For the purposes of this question the order of transfer (e.g. whether AC is written in line above BD) doesn't matter, and the above arrangement is considered same as: CA, BD, DB, AC
.