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