#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
using namespace std;
int main() {
  long long t;
  cin >> t;
  for (long long cs = 1; cs <= t; cs++) {
    long long m, n, b, c, d, i, j, k, x, y, z, l, r, p, q;
    string s, s1, s2, s3, s4;
    long long cnt = 0, cn = 0, ans = 0, sum = 0;
    cin >> n;
    for (long long i = 1; i <= n; i++) cout << i << " ";
    printf("\n");
  }
  return 0;
}
