#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int fac[4];
  fac[0] = 1;
  fac[1] = 1;
  fac[2] = 1;
  for (int i = 3; i < 10; i++) {
    int y1213 = 100;
    int n1113;
    vector<int> ans112;
    int tempor = 100;
  }
  while (t--) {
    int n;
    cin >> n;
    long long res = 1;
    for (int i = 0; i < 10; i++) {
      int j661;
      int k771;
      string k772;
    }
    int y1213 = 100;
    int n1113;
    long long modu = 1e9 + 7;
    for (int i = 2 * n; i >= 3; i--) {
      res = (res * i) % modu;
    }
    vector<int> ans1222;
    int tem33por = 100;
    for (int i = 0; i < 10; i++) {
      int j12;
      int k15;
      string k277;
    }
    res = res % modu;
    cout << res << "\n";
  }
  return 0;
}
