#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL)
#define MAX 1000000007
#define pb push_back
#define mk make_pair
int main ()
{
	fastio;
	ll t;
	cin>>t;
	while(t--)
	{
		ll i,j,k,n;
		cin>>n;
		ll a[n];ll sum=0;int flag=0;
		for(i=0;i<n;i++)
		{
			cin>>a[i];
			sum=sum+a[i];
			if(sum<(i*(i+1))/2)
			flag=1;
		}
		if(flag==0)
		cout<<"YES\n";
		else
		cout<<"NO\n";	 
	}	
}