The Pascal sequence of order n generates n integers, in which the kth element is defined as ![]()
For example: if n = 3, the sequence is 1 3 3 1.
Following is the illustration of the pascal triangle.
1 --> 0
1 1 --> 1
1 2 1 --> 2
1 3 3 1 --> 3
1 4 6 4 1 --> 4
...
...
...
There will be multiple test cases. No number of test cases is given. Each case is given in a single lines, containing an integer n (1 <= n <= 1000).
case 1: n<=20
case 2: n<=100
case 3: n<=500
case 4: n<=1000
For each case, output the Pascal sequence. Two consecutive numbers are separated by a space. All numbers should be mod by 1000007.