This does not answer your question about counting the valid derangements, but it gives an algorithm to generate one (which might be what you want) with the following properties:
- it guaranties that there is a single cycle in Santa's relationship (if you play at 4, you do not end up with 2 Santa couples --> 2 cycles),
- it works efficiently even with very large number of player,
- if applied fairly, nobody knows whose who Santa's,
- it does not need a computer, only some paper.
Here the algorithm:
- Every player writes her/his name on an envelope and puts her/his name in a folded paper in the envelope.
- One trusted player (for property # 3 above) takes all the envelopes and shuffles them looking at their back side (where no name is written).
- Once the envelops are shuffled well enough, always looking at the back side, the trusted player moves the paper in each envelope to the following one.
- After shuffling the envelops again, the envelopes are distributed back to the player whose name is on them, and each player is the Santa of the person whose name is in the envelope.