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