If one types e.g. "Derangements[4]" in MMA, all it does is echo the command itself. If one goes to the help page for "Derangements" and expand the "details" section, all it says is: "To use Derangements, you first need to load the Combinatorica Package using Needs["Combinatorica`"]." So, I add that to my notebook. Now, the first thing MMA does is respond: " Combinatorica Graph and Permutations functionality has been superseded by preloaded functionality. The package now being loaded may conflict with this. Please see the Compatibility Guide for details." The Derangements function now works, but it also tells you that it is shadowed by another version. Moreover, lots of my other combinatorial functions stop working (presumably since the commands were different in Combinatorica than in the now-preloaded versions, making loading it crash my code). The Compatibility guide for Combinatorica is no help and seems out of date. In Wolfram Mathworld, it gives an explicit function for Derangements[] but the code doesn't work in MMA 12 which I am using. So, I am stuck.
Please, what is the up-to-date way to ask for Derangements[] and why is the documentation out-of-date? Thanks.