#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void read(T &x) {
  x = 0;
  int f = 1;
  char c = getchar();
  while (c > '9' || c < '0') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c <= '9' && c >= '0') {
    x *= 10;
    x = x + c - '0';
    c = getchar();
  }
  x *= f;
}
int main() {
  int t;
  cin >> t;
  int a;
  while (t--) {
    cin >> a;
    for (int i = a; i >= 1; i--) {
      cout << i << ' ';
    }
    cout << endl;
  }
  return 0;
}
