#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  int i, j, k, x, y, n, ct = 0, flag = 0;
  while (t--) {
    flag = 0;
    cin >> n;
    int a[n];
    for (i = 0; i < n; i++) cin >> a[i];
    if (n % 2 == 0) {
      x = n / 2 - 1;
      for (i = 0; i < x; i++) {
        if (a[i] >= i && a[n - i - 1] >= i)
          continue;
        else {
          flag = 1;
          cout << "No"
               << "\n";
          break;
        }
      }
      if (flag == 0) {
        if ((a[x] >= i && a[x + 1] >= i + 1) ||
            (a[x] >= i + 1 && a[x + 1] >= i))
          cout << "Yes"
               << "\n";
        else
          cout << "No"
               << "\n";
      }
    } else {
      x = n / 2 + 1;
      for (i = 0; i < x; i++) {
        if (a[i] >= i && a[n - i - 1] >= i)
          continue;
        else {
          flag = 1;
          cout << "No"
               << "\n";
          break;
        }
      }
      if (flag == 0)
        cout << "Yes"
             << "\n";
    }
  }
  return 0;
}
