#include <bits/stdc++.h>
using namespace std;
long long power(long long a, long long b) {
  long long r = 1;
  while (b != 0) {
    if (b % 2 != 0) {
      r = r * a;
      r %= 998244353ll;
    }
    a = a * a;
    a = a % 998244353ll;
    b = b / 2;
  }
  return r;
}
void solve() {
  long long n;
  cin >> n;
  for (long long i = (n); i >= (1); i--) {
    cout << i << " ";
  }
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
}
