#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, i, k, j;
    cin >> n;
    for (i = 1; i <= n; i++) cout << i << " ";
    cout << "\n";
  }
  return 0;
}
