Number of dearrangements of a large number.... also code for Codechef/PRESTI