#include <bits/stdc++.h>
inline int read() {
  register int x = 0, f = 1;
  register char s = getchar();
  while (s > '9' || s < '0') {
    if (s == '-') f = -1;
    s = getchar();
  }
  while (s >= '0' && s <= '9') {
    x = x * 10 + s - '0';
    s = getchar();
  }
  return x * f;
}
int main() {
  int T = read();
  while (T--) {
    int n = read();
    for (register int i = 1; i <= n; ++i) printf("%d ", i);
    printf("\n");
  }
  return 0;
}
