#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
int t, n;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; ++i) cout << i << " ";
    cout << "\n";
  }
  return 0;
}
