#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n, flag = 0, f = 0;
    cin >> n;
    vector<long long> v;
    for (int j = 0; j < n; j++) {
      long long a;
      cin >> a;
      v.push_back(a);
    }
    for (int j = 0; j <= n / 2; j++) {
      if (v[j] < j) {
        flag = 1;
      }
    }
    int c = 0;
    for (int j = v.size() - 1; j > n / 2; j--) {
      if (v[j] < c) {
        flag = 1;
      }
      c++;
    }
    for (int j = 0; j < n / 2 - 1; j++) {
      if (v[j] < j) {
        f = 1;
      }
    }
    c = 0;
    for (int j = v.size() - 1; j >= n / 2 - 1; j--) {
      if (v[j] < c) {
        f = 1;
      }
      c++;
    }
    if (flag == 1 && f == 1) {
      cout << "No" << endl;
    }
    if (flag == 0 || f == 0) {
      cout << "Yes" << endl;
    }
  }
  return 0;
}
