#include<bits/stdc++.h>
using namespace std;
#define endl "\n"
#define ll long long
#define pb push_back
#define all(x) x.begin(),x.end()

void solve()
{
  ll n;cin>>n;
  ll a[n],sum=0,add=0;
  for(int i=0;i<n;i++){
    cin>>a[i];
  }
  if(n==1){
    cout << "YES" << endl;
    return;
  }

  for(int i=0;i<n;i++){
    sum+=a[i];
    add+=i;
    if(sum>=add)
      continue;
    else{
      cout << "NO" << endl;
      return;
    }
  }
  cout << "YES" << endl;
}
 
int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);

  int t=1;
  cin>>t;
  while(t--)
    solve();

  return 0;
}

/* 
*/