#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, i;
  cin >> t;
  while (t > 0) {
    t--;
    cin >> n;
    for (i = 0; i < n; i++) {
      cout << i + 1 << " ";
    }
    cout << endl;
  }
}
