#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, t, l, r, n, m, p, a, b, c, d, flag;
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 0; i < n; i++) {
      cout << (i + 1) << " ";
    }
    cout << endl;
  }
  return 0;
}
