#include <bits/stdc++.h>
int main() {
  int t, n;
  scanf("%d", &t);
  for (register int i = 0; i != t; i++) {
    scanf("%d", &n);
    for (register int j = 1; j <= n; j++) {
      printf("%d ", j);
    }
    puts("");
  }
  return 0;
}
