How many permutations of $1, 2,\dots , 7$ are NOT derangements?
To start, do I do an inclusion exclusion starting with the total number of permutations minus derangements with 1, then with 2, etc?
How many permutations of $1, 2,\dots , 7$ are NOT derangements?
To start, do I do an inclusion exclusion starting with the total number of permutations minus derangements with 1, then with 2, etc?
Copyright © 2021 JogjaFile Inc.
$5040-\lfloor\frac{5040}{e}\rfloor=5040-1854=3186$ if you follow Numberphile's video on the topic. https://oeis.org/A000166 is subtracted from https://oeis.org/A000142