#include <bits/stdc++.h>
using namespace std;
const long long int M = 1000000007;
long long int arr[1000006];
char str[1000006];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t, n, k, m, ans, x, y;
  t = 1;
  cin >> t;
  while (t--) {
    cin >> n;
    bool flag = true;
    int x = 0;
    for (int i = 1; i <= n; i++) cout << i << ' ';
    ans = 0;
    cout << '\n';
  }
  return 0;
}
