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