#include <bits/stdc++.h>
using namespace std;
bool check(vector<int> a, int i, int j) {
  int curr = 0;
  for (int k = i; k <= j; k++) {
    curr |= a[k];
    if (curr >= j - i + 1) return 1;
  }
  return 0;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> ans(n);
    for (int i = 0; i < n; i++) ans[i] = i + 1;
    for (int c : ans) cout << c << " ";
    cout << endl;
  }
  return 0;
}
