If P is a permutation of the integers 1, ..., n, the maximum in the cycle of 1 is the maximum of the values P(1), P(P(1)), P(P(P(1))), etc. For example, if P is the permutation:
|1 2 3 4 5 6 7 8|
|3 2 5 4 1 7 8 6|
we have:
P(1) = 3
P(P(1)) = P(3) = 5
and
P(P(P(1))) = P(5) = 1
so the maximum in the cycle of 1 is 5.
For this problem, you will write a program which takes as input integers n, (n > 0) and k(1 <= k <= n), and returns the number of permutations of the integers 1, ..., n, for which the maximum in the cycle of 1 is k.