#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    for (long long int i = 1; i < n + 1; i++) cout << i << " ";
    cout << endl;
  }
}
