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