P14016 [HackerEarth] 2) Krishna had just completed his class on trees. To make things worse , the teacher had asked them to draw all possible ‘Binary Trees’ as an assignment . After persistent requests, the
普及
题目描述

2) Krishna had just completed his class on trees. To make things worse , the teacher had asked them to draw all possible ‘Binary Trees’ as an assignment . After persistent requests, the teacher relaxed the assignment by asking them to tell the number of trees possible given the number of keys. Krishna started of his assignment in excitement but soon realized that the assignment was in no way easier than before when he saw large ‘n’ values. Can you help Krishna with his assignment ?
Output the answer mod 1e9+7
Input
t- no of testcases
n- no of keys

Constraints:
1 ≤ t ≤ 50
1 ≤ n ≤ 1000

SAMPLE INPUT
4
1
2
3
4

SAMPLE OUTPUT
1
2
5
14

输入格式

见题面

输出格式

见题面

样例输入
10 885 798 519 716 670 635 652 576 744 504
样例输出
2577836352 738559760 1891442308 4294726944 4278679056 1630982816 1445767984 1088206816 3503228056 986122620