intmain(){ sum[2] = 2; for (int i = 3; i < maxn; ++i) { sum[i] = sum[i - 1] + i; } int t; scanf("%d", &t); while (t--) { int n; scanf("%d", &n); int p = int(upper_bound(sum, sum + maxn, n) - sum) - 1; n -= sum[p]; int num = p - 2 + 1, pl = n / num; n = p - (n % num); for (int i = 2; i <= p; ++i) { printf("%d%c", i <= n ? i + pl : i + pl + 1, i == p ? '\n' : ' '); } if (t) { puts(""); } } return0; }