/*long long or int&the MAX_INT or MIN_INT*/
/*the size of a[]&inline*/
/*xx 396*/
#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
using namespace std;
typedef long long ll;
typedef double db;
typedef long double ldb;
template<class T>inline void checkmin(T &a,const T &b){if(b<a)a=b;}
template<class T>inline void checkmax(T &a,const T &b){if(b>a)a=b;}
const int maxn=110;
int n,T;
ll a[maxn],sum[maxn];
void solve(){
	cin>>n;
	for(int i=0;i<n;i++)cin>>a[i];
	for(int i=1;i<n;i++)a[i]+=a[i-1];
	for(int i=0;i<n;i++){
		if(a[i]<sum[i]){
			cout<<"NO\n";
			return;
		}
	}
	cout<<"YES\n";
}
int main(){
	sum[0]=0;
	for(int i=1;i<maxn;i++)sum[i]=sum[i-1]+i;
	cin>>T;
	while(T--)solve();
	return 0;
}