#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define forn(n) for(int i=0;i<n;i++)

void solve()
{
   int n;
   cin>>n;
   vector<int> arr(n);
   forn(n)
   {
       cin>>arr[i];
   }
   ll extra=0;
   forn(n)
   {
       if(arr[i]>=i)
       {
           extra+=(arr[i]-i);
       }
       else if(arr[i]+extra>=i)
       {
           extra-=(-arr[i]+i);
       }
       else
       {
           cout<<"NO"<<endl;
           return;
       }
       
   }
   cout<<"YES"<<endl;
   
   return;
}
int main()
{
    
    int t;
    cin>>t;
    while(t--){
    
        solve();
    
    }
	return 0;
}

