User:Gwern/Permutations.hs