#include<bits/stdc++.h>
using namespace std;
#define l1 long long
void solve() {
    int n; cin>>n;
    vector<int> v(n);
    for(auto &i:v) cin>>i;
    l1 sum = 0;
    l1 need = 0;
    for(int i=0;i<n;i++) {
        sum+=v[i];
        need+=i;
        if(sum<need) {cout<<"NO"<<endl; return;}
    }
    cout<<"YES"<<endl;
    
}
int main() {
    int t; cin>>t;
    while(t--) {
        solve();
    }
}