#include <bits/stdc++.h>
#define ll long long
#define forn ll a[n]; for(int i=0;i<n;i++)cin >> a[i];
using namespace std;

int main()
{
	ll t;
	cin >> t;
	while(t--)
	{
		int n;
		cin >> n;
		forn;
		bool flag=true;
		for(int i=0;i<n-1;i++)
		{
			if(a[i]>i)
			{
				a[i+1]=a[i+1]+a[i]-i;
			}
		}
		for(int i=0;i<n;i++)
		{
			if(a[i]<i)
			{
				flag=false;
				break;
			}
		}
		if(flag)
			cout <<"YES\n";
		else
			cout << "NO\n";
	
	}
}