not my doubt, just a good problem so i thought i would post it here

Determine the number of permutations of such that if divides , the th number divides the th number.