#include <bits/stdc++.h>
using namespace std;
int _ = (cout << fixed << setprecision(9), cin.tie(0), ios::sync_with_stdio(0));
using Int = long long;
int main() {
    int T; cin >> T;
    while (T--) {
        int N; cin >> N;
        vector<Int> H(N); for (auto &h : H) cin >> h;
        bool ans = true;
        for (int i = 0; i < N; i++) {
            Int t = H[i] - i;
            if (t < 0) {
                ans = false;
                break;
            }
            H[i] -= t;
            if (i + 1 < N) H[i + 1] += t;
        }
        cout << (ans ? "YES" : "NO") << '\n';
    }
    return 0;
}