#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int T;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    for (auto i = 1; i <= n; ++i) {
      if (i > 1) {
        cout << " ";
      }
      cout << i;
    }
    cout << endl;
  }
}
