﻿#include <bits/stdc++.h>
#define int long long
#define vi vector<int>
#define vvi vector<vector<int>>
#define si set<int>
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define int long long
using namespace std;
int mod = 1000*1000*1000+9;

void solve(){
    int n; cin >> n;
    vi A(n);
    for (int &i : A) {cin >> i;}
    int sum = A[0];
    for (int i = 1; i < n; i++){
        sum += A[i];
        if (sum < i){
            cout << "NO\n";
            return;
        }
        sum -= i;
    }
    cout << "YES\n";
}

signed main(){
    ios::sync_with_stdio(false);
    cin.tie();
    int t; cin >> t;
    while (t--){
        solve();
    }

}