#include <bits/stdc++.h>
using namespace std;
using lint = long long;
template <class T>
ostream &operator<<(ostream &o, const vector<T> &v) {
  o << "{";
  for (int i = 0; i < (int)v.size(); i++) o << (i > 0 ? ", " : "") << v[i];
  o << "}";
  return o;
}
int main() {
  int t, n;
  cin >> t;
  for (int r = 0; r < t; r++) {
    cin >> n;
    for (int i = 1; i <= n; i++) {
      if (i == n)
        cout << i << "\n";
      else
        cout << i << " ";
    }
  }
}
