/****Bismillahir rahmanir rahim****/
 
#include<bits/stdc++.h>
 
using namespace std;
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long> vl;

template <typename T>
void get_vector(T &a)
{
    for(auto &e: a) cin >> e;
}

template <typename T>
void put_vector(T a)
{
    for(auto e :a)cout << e << " ";
    cout << endl;
}

void solve()
{
    ll n;
    cin >> n;
    ll sum= 0;
    ll inp;
    bool ok = true;
    for(ll i = 0 ; i< n; i++)
    {
        cin >> inp;
        sum+= inp;
        if(sum<i*(i+1)/2)
            ok = false;
        
    }
    cout << (ok?"YES":"NO") << endl;
    return; 
}
 
int main()
{
    int T;
    cin >> T;
    while(T--)
        solve();
    return 0;
}