#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double ld;

#define forn(i, l, n) for(int i = l; i < n; i++)
#define pb push_back
#define mp make_pair

template<class T>
ostream& operator<< (ostream& out, vector<T> &a){
    for(auto &i: a){
        out << i << " ";
    }
    return out;
}

template<class T>
istream &operator>> (istream &in, vector<T> &a){
    for(auto &i: a){
        in >> i;
    }
    return in;
}

void solve(){
    ll n;
    cin >> n;
    vector<ll> a(n);
    cin >> a;

    ll sum = 0;
    forn(i, 0, n){
        sum += a[i];
        if(sum * 2 < i * (i + 1)){
            cout << "no\n";
            return;
        }
    }
    cout <<"yes\n";
}

int main() {
    ios_base::sync_with_stdio(false); cin.tie(nullptr);
    cout.tie(nullptr);

    int t = 1;
    cin >> t;
    while(t){
        solve();
        t--;
    }
}
