#include <bits/stdc++.h>
using namespace std;
void fun(long long int n, long long int* arr) {
  int i = 0;
  int j = n - 1;
  int index = 0;
  while (i <= j) {
    if (arr[i] < index || arr[j] < index) {
      cout << "No" << endl;
      return;
    }
    index++;
    i++;
    j--;
  }
  if (n % 2 != 0)
    cout << "Yes" << endl;
  else {
    int pos = n / 2 - 1;
    if (arr[pos] > pos || arr[pos + 1] > pos) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  for (long long int i = 0; i < t; i++) {
    long long int n;
    cin >> n;
    long long int arr[n];
    for (long long int i = 0; i < n; i++) cin >> arr[i];
    if (n == 1)
      cout << "Yes" << endl;
    else
      fun(n, arr);
  }
}
