#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int in() {
  int x;
  cin >> x;
  return x;
}
long long lin() {
  long long x;
  cin >> x;
  return x;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline void print(pair<T, T> p) {
  cout << "(" << p.first << "," << p.second << ") ";
}
template <class T>
inline void print(vector<pair<T, T>> v) {
  for (auto e : v) print(e);
  cout << endl;
}
template <class T>
inline void print(T v) {
  for (auto e : v) cout << e << " ";
  cout << endl;
}
template <typename T>
istream& operator>>(istream& is, vector<T>& vec) {
  for (T& x : vec) is >> x;
  return is;
}
const long long mod = 1e9 + 7;
int main() {
  long long t;
  cin >> t;
  for (long long i = 0; i < t; i++) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
    }
    bool flag = true;
    if (n % 2 == 1) {
      for (long long i = 0; i < n; i++) {
        if (i <= n / 2) {
          if (a[i] < i) {
            flag = false;
            break;
          }
        } else {
          if (a[i] < n - 1 - i) {
            flag = false;
            break;
          }
        }
      }
    } else {
      bool flag1 = true;
      bool flag2 = true;
      for (long long i = 0; i < n; i++) {
        if (i <= n / 2) {
          if (a[i] < i) {
            flag1 = false;
          }
          if (a[n - 1 - i] < i) {
            flag2 = false;
          }
        } else {
          if (a[i] < n - 1 - i) {
            flag1 = false;
          }
          if (a[n - 1 - i] < n - 1 - i) {
            flag2 = false;
          }
        }
      }
      if (flag1 == false && flag2 == false) {
        flag = false;
      }
    }
    if (flag) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
