
#include <iostream>  
#include <stdio.h>  
#include <string.h>   
#include <stack>  
#include <queue>   
#include <map>  
#include <set>  
#include <vector>  
#include <math.h>  
#include <bitset>  
#include <algorithm>  
#include <climits>   
#define IOS std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
using namespace std;
#define endl "\n"
#define ll long long
const int MAX=1e6+7;
const int MOD=1e9+7;
const ll inf=0x3f3f3f3f;
const double pi=3.1415926535;
int main()
{
 	IOS;
	 int n; 
 	int t; 
	 cin>>t;
	 while(t--)
	 {
	 	cin>>n;
	 	vector<ll>a(n+1,0);
	 	int f=1;
	 	for(int i=0;i<n;i++)
	 	{
	 		cin>>a[i];
	    }
	    for(int i=0;i<n;i++)
	    {
	    	if(a[i]<i)
			{
			  f=0;
	    	break;
	    }
	    a[i+1]+=a[i]-i;
		}
		if(f==0) cout<<"NO"<<endl;
		else cout<<"YES"<<endl; 
     } 
return 0;

}
