Revision as of 22:52, 12 June 2024 by Admin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
BBy Bot
Jun 09'24

Exercise

Modify the program AllPermutations to count the number of permutations of [math]n[/math] objects that have exactly [math]j[/math] fixed points for [math]j = 0, 1, 2,...,n[/math]. Run your program for [math]n = 2[/math] to 6. Make a conjecture for the relation between the number that have 0 fixed points and the number that have exactly 1 fixed point. A proof of the correct conjecture can be found in Wilf.[Notes 1]

Notes

  1. H. S. Wilf, “A Bijection in the Theory of Derangements,” Mathematics Magazine, vol. 57, no. 1 (1984), pp. 37--40.