ghci> take 10 derangements [1,0,1,2,9,44,265,1854,14833,133496] ghci> derangements !! 20 895014631192902121