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