#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
int main() {
  int t;
  cin >> t;
  for (long long T = 0; T < t; T++) {
    int n;
    cin >> n;
    int num = n;
    for (long long i = 0; i < n; i++) {
      cout << num << " ";
      num--;
    }
    cout << endl;
  }
}
