Master Zhu and Polygons

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Consider a regular polygon with NN vertices, where NN is odd. The vertices are numbered from 11 to NN in circular order. We can select MM of these vertices to form a convex polygon on them. Master Zhu wants you to find how many of such possible convex polygons have exactly KK acute angles. As their number can be very large, find the answer modulo 109+710^{9} + 7. Two polygons are considered different if the sets of numbers in their vertices differ.

입력

The first line of input contains one integer TT, the number of test cases (1T51041 \le T \le 5 \cdot 10^4).

Each test case is described by a single line containing three integers NN, MM, and KK (3N1063 \le N \le 10^6, 3MN3 \le M \le N, 0KM0 \le K \le M, and NN is odd).

출력

For each test case, print the answer modulo 109+710^{9} + 7 on a separate line.