#include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <algorithm>
#include <set>
#include <utility>
#include <queue>
#include <map>
#include <assert.h>
#include <stack>
#include <string>
#include <ctime>
#include <chrono>
#include <random>
#define int long long int
using namespace std;

void solve()
{
	int n;
	cin>>n;
	vector<int> h(n+2, 0);
	for (int j=1; j<=n; j++) cin>>h[j];
	h[0] = -1;
	for (int j=1; j<=n; j++)
	{
		if (h[j]<=h[j-1])
		{
			cout<<"No\n";
			
			return;
		}
		h[j+1]+=h[j]-(h[j-1]+1);
		h[j] = h[j - 1] + 1;
	}
	cout<<"Yes\n";
	return;
}

signed main()
{
	ios::sync_with_stdio(0);
	cin.tie(NULL); cout.tie(NULL);
	int t;
	cin >> t;
	//t=1;
	while (t--)
	{
		solve();
	}
	return 0;
}