题目描述
Read problems statements in Mandarin chinese, Russian and Vietnamese as well.
Chef is an intern at Zoozle. He has a co-intern named Ajar who's good at maths. Chef wants to impress Ajar with his zoozliness, so he decided to play the following game with A
Consider $n$ force vectors in a 2D plane.
First, Ajar uniformly randomly chooses a non-negative real magnitude for each vector such that the sum of all magnitudes is equal to $k$. (More formally, each valid $n$-tuple of magnitudes can be chosen with the same probability.)
Then, Chef must choose a direction for each force vector in such a way that the net force (vector sum of all forces) is equal to zero. Chef wins the game if he is able to do that; otherwise, Ajar wins the game.
Since Chef knows that it may not always be possible to choose the directions such that he wins the game, he would like to know the probability that he'll be able to win if he plays optimally. Can you help him?
It can be proven that this probability can be written as a fraction $P/Q$, where $P ≥ 0$ and $Q > 0$ are coprime integers. Since we are in the 21st century, nobody is interested in fractions. Therefore, you should compute $P\cdot Q^{-1}$ modulo $10^{9}+7$, where $Q^{-1}$ denotes the modular inverse of $Q$ modulo $10^{9}+7$. (It is guaranteed that this inverse exists and is unique.)
------ Input ------
The first line of the input contains a single integer $n$ denoting the number of force vectors.
The second line contains a single integer $k$ denoting the sum of magnitudes of all force vectors.
------ Output ------
Print a single line containing one integer — the value of $P\cdot Q^{-1}$ modulo $10^{9}+7$.
------ Constraints ------
$1 ≤ k ≤ 100$
$2 ≤ n ≤ 3\cdot10^{5}$
------ Subtasks ------
Subtask 1 (20 points): $2 ≤ n ≤ 50$
Subtask 2 (80 points): original constraints
----- Sample Input 1 ------
5
5
----- Sample Output 1 ------
187500002
----- explanation 1 ------
Answer = $11/16 = 11\cdot16^{-1} = 187500002$
输入格式
见题面
输出格式
见题面