#include <bits/stdc++.h>
using namespace std;
int ar[300005];
map<int, int> mp, mp2;
bool vis[300005];
vector<int> v[300005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) cout << i << " ";
    cout << "\n";
  }
  return 0;
}
