#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  for (long long int i = 0; i < n; i++) cout << i + 1 << " ";
  cout << "\n";
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int test;
  cin >> test;
  for (long long int tc = 1; tc <= test; tc++) {
    solve();
  }
  return 0;
}
