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