#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  for (long long int i = n; i >= 1; i--) {
    cout << i << " ";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    solve();
    cout << "\n";
  }
}
