#include <bits/stdc++.h>
using namespace std;
int n, t;
void read_input() {
  cin >> n;
  while (n--) cout << n + 1 << ' ';
  cout << '\n';
}
void solve() {}
void write_output() {}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> t;
  while (t--) {
    read_input();
    solve();
    write_output();
  }
}
