#include <bits/stdc++.h>
using namespace std;
inline long long min2(long long a, long long b) {
  return (a) < (b) ? (a) : (b);
}
inline long long max2(long long a, long long b) {
  return (a) > (b) ? (a) : (b);
}
inline long long max3(long long a, long long b, long long c) {
  return (a) > (b) ? ((a) > (c) ? (a) : (c)) : ((b) > (c) ? (b) : (c));
}
inline long long min3(long long a, long long b, long long c) {
  return (a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c));
}
using namespace std::chrono;
long long int dx[4] = {0, 0, 1, -1};
long long int dy[4] = {1, -1, 0, 0};
bool valid(long long int x, long long int y, long long int n, long long int m) {
  if (x < 0 or y < 0)
    return false;
  else if (x >= n or y >= m)
    return false;
  else
    return true;
}
void process() {
  long long int n;
  cin >> n;
  for (long long int i = 1; i <= n; i++) cout << i << " ";
  cout << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int t;
  cin >> t;
  ;
  while (t--) process();
}
