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