#include <bits/stdc++.h>
using namespace std;
vector<long long int> v, v1, v2, v3, v4;
vector<pair<string, string> > vec1, vec2;
vector<pair<long long int, long long int> > vec, Vec;
vector<int> adj[100005];
map<long long int, long long int> Mp;
set<long long int> st, st1, st2;
queue<long long int> Q;
stack<char> Stk;
multiset<pair<long long int, long long int> > S, B;
vector<string> vs;
long long int n, a, b;
void Reset() {}
void Input() { cin >> n; }
void Calculation() {
  for (int i = 1; i <= n; i++) {
    cout << i << " ";
  }
  cout << endl;
}
void solve() {
  Reset();
  Input();
  Calculation();
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
