#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using vi=vector< ll >;
using pi=pair<ll,ll>;
#define pb pushback
ll mod=1e9+7;
/*#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using ordered_set=tree <ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update>;
*/

void solve()
{
	ll n;cin>>n;
	ll c=0;
	ll a[n];
	for(ll i=0;i<n;i++)
		cin>>a[i];
	for(ll i=0;i<n-1;i++)
	{
		ll blocks=a[i]-c;
		a[i]=c;
		a[i+1]+=blocks;
		c++;
		if(a[i+1]<=a[i])
		{
			cout<<"NO\n";return;
		}

	}
	cout<<"YES\n";
	
}

signed main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);

	ll t;cin>>t;
	while(t--)
		solve();
}



