#include <iostream>
using namespace std;
int n;
long long a[105];
int main()
{
	//freopen("data.txt", "r", stdin);
	int t;
	cin >> t;
	while(t--)
	{
		cin >> n;
		for(int i = 1; i <= n; i++)
		{
			cin >> a[i];
		}
		a[2] += a[1];
		a[1] = 0;
		bool flag = 1;
		for(int i = 2; i <= n; i++)
		{
			if(a[i] <= a[i - 1])
			{
				flag = 0;
				break;
			}
			a[i + 1] += a[i] - a[i - 1] - 1;
			a[i] = a[i - 1] + 1;
		}
		if(flag) cout << "YES";
		else cout << "NO";
		cout << endl;
	}
	return 0;
}