#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (long long int i = (long long int)0; i < (long long int)n; i++)
      cout << i + 1 << " \n"[i == n - 1];
  }
  return 0;
}
