Number of Self-Divisible Permutations

Number of Self-Divisible Permutations - Coding Problem | K5kC