#include <bits/stdc++.h>
using namespace std;
const int N=105,INF=1e9;
void solve(){
	int n;
	cin>>n;
	vector<int> a(n,0);
	for(int i=0;i<n;i++){
		cin>>a[i];
	}

	long long mn=0,cur=0;
	for(int i=0;i<n;i++){
		mn+=i;
		cur+=a[i];
		if(cur < mn){
			cout<<"NO\n";
			return;
		}
	}
	cout<<"YES\n";
}
int main(){
    ios_base::sync_with_stdio(false); 
    cin.tie(NULL); cout.tie(NULL);
#ifndef ONLINE_JUDGE
    freopen("input.txt" , "r" , stdin);
    freopen("output.txt" , "w" , stdout);
#endif

    int t;
    cin>>t;
    for(int tc=1;tc<=t;tc++){
    	// cout<<"Case #"<<tc<<": ";
    	solve();
    }
}