#include <bits/stdc++.h>
#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx,avx,tune=native")
std::mt19937_64 rng(
    std::chrono::steady_clock::now().time_since_epoch().count());
using namespace std;
int main(int argc, char* argv[]) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int test = 1;
  cin >> test;
  for (int kase = 1; kase <= test; kase++) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) cout << i << " ";
    cout << "\n";
  }
}
