#include <bits/stdc++.h>
using namespace std;
template <typename T>
void out(T x) {
  cout << x << endl;
  exit(0);
}
using ll = long long;
const ll mod = 1e9 + 7;
const int maxn = 1e6 + 5;
void check(vector<int> v) {
  int n = v.size();
  for (int i = 0; i < n; i++) {
    for (int j = i; j < n; j++) {
      int cur = 0;
      int len = j - i + 1;
      for (int k = i; k <= j; k++) {
        cur |= v[k];
      }
      assert(cur >= len);
    }
  }
}
void solve(int n) {
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    v[i] = i + 1;
  }
  for (int x : v) cout << x << " ";
  cout << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    solve(n);
  }
  return 0;
}
