#include <bits/stdc++.h>
using namespace std;
int MOD = 1000000007;
const long long INF = 1LL << 60;
void solve() {
  long long n;
  cin >> n;
  for (int i = n - 1; i >= 0; i--) {
    cout << i + 1 << " ";
  }
  cout << endl;
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int t;
  cin >> t;
  for (int _ = 0; _ < (t); _++) {
    solve();
  }
  return 0;
}
