Bojanje
문제
Oliver is a rubber duck that, not only finds bugs, but also likes to paint. His latest painting has parts, each coloured with a unique colour. After he got a lot of critiques his painting is too predictable, he decided to modify his painting in iterations. In every iteration he will do the following steps:
- Oliver will select uniformly at random an index (1 ≤ i ≤ n), and memorize the colour on the -th part od the painting.
- Again, Oliver will select uniformly at random an index (1 ≤ j ≤ n). He will repaint the -th part of the painting with the colour of the -th part od the painting. If the -th part is already painted in that colour, there is no change. Note that can be equal to .
Now, Oliver is afraid his painting will become monotonous or boring. He considers a painting good if there are at least differents colours on it. Help him calculate the probability that his painting will be good at the end.
입력
The first line contains the numbers from the task statement , and (2 ≤ k ≤ n ≤ 10, 1 ≤ t ≤ 10^{18}).
출력
In the first and only line output the answer modulo .
Formally, let . It can be shown that the answer can be expressed as an irreducible fraction , where and are integers and . Output the integer equal to p · q^{-1} \bmod m. In other words, output such an integer that 0 ≤ x < m and x · q \equiv p \pmod m.
힌트
Clarification of the first example: On the painting there are two colours, so the probability that it remains the same after one iteration is .
Clarification of the second example: After two iterations, the number of different colours can’t go from to less than , so in every case the painting will have at least different colours.
예제
예제 1
2 1 2
500000004
예제 2
10 2 5
1
예제 3
3 141592653589793 2
468261332