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