#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long mod = 1000000007;
  long long arr[200001];
  arr[0] = 1;
  long long ans = 1;
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    n *= 2;
    long long anss = 1;
    for (long long i = 3; i <= n; i++) {
      anss = (anss * i) % mod;
    }
    cout << anss % mod << endl;
  }
}
