#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <cmath>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>

using namespace std;

#define int long long

int32_t main() {
    int t;
    cin >> t;
    for (int count = 0; count < t; count++) {
        int n;
        cin >> n;
        bool can = true;
        int k = 0;
        for (int i = 0; i < n; i++) {
            int hi;
            cin >> hi;
            if (hi >= 0) {
                k += hi - i;
            }
            else {
                k -= i - hi;
            }
            can &= k >= 0;
        }
        cout << (can ? "YES" : "NO") << endl;
    }
}