#include<bits/stdc++.h>
#define fo(i,a,b) for(int i =a ; i <= b; i ++)
using namespace std;

int t,n,h[1004];
long long x;
bool ok;

int main()
{
    cin >> t;
    fo(pp,1,t) {
        cin >> n;
        fo(i,0,n - 1) cin >> h[i];
        x = 0; ok = true;
        fo(i,0,n - 1)
            if(h[i] >= i) x = x + 0LL + h[i] - i;
            else {
                if(i - h[i] > x) {ok = false;break;}
                else x -= 0LL + i - h[i];
            }
        if(ok) cout <<"YES"<<"\n";
        else cout <<"NO"<<"\n";

    }
}
