#include"bits/stdc++.h"
using namespace std;
int t;
int n;
long long a[105];
int main()
{
	cin >> t;
	while (t--)
	{
		scanf("%d", &n);
		long long sum = 0;
		bool buneng = 0;
		for (int i = 0; i < n; i++)
		{
			scanf("%lld", &a[i]);
			sum += a[i] - i;
			a[i] = i;
			if (sum < 0) buneng = 1;
		}
		if (buneng) printf("no\n");
		else printf("yes\n");
	}
}