15.13. A Magic Trick 505
(a)What isjSij?(b)What isˇˇ
Si\Sjˇˇ
wherei¤j?(c)What isˇˇ
Si 1 \Si 2 \\Sikˇˇ
wherei 1 ;i 2 ;:::;ikare all distinct?(d)Use the inclusion-exclusion formula to express the number of non-derangements
in terms of sizes of possible intersections of the setsS 1 ;:::;Sn.
(e)How many terms in the expression in part (d) have the formˇ
ˇSi 1 \Si 2 \\Sikˇ
ˇ?
(f)Combine your answers to the preceding parts to prove the number of non-
derangements is:
nŠ