#include <bits/stdc++.h>
#define ll long long int
#define vect std::vector<ll>
#define Fr(i,a,n) for(i=a;i<=n;i++)
#define FR(i,n) for(i=0;i<n;i++)
#define revFR(i,n) for(i=n-1;i>=0;i--)
#define pb push_back
#define mp make_pair
#define testcase ll t;std::cin >> t;while(t--)
#define mod 1000000007
#define ln cout<<"\n"
#define all(x) x.begin(),x.end()
using namespace std;

#define INF INT_MAX

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

    ll n,i,actualsum,h,requiredsum,flag;
    testcase{
        actualsum=0;
        requiredsum=0;
        flag=1;
        cin>>n;
        FR(i,n)
        {
            cin>>h;
            actualsum += h;
            requiredsum +=i;
            if(actualsum<requiredsum)
            {
                flag=0;
            }
        }
        if(flag)
        {
            cout<<"YES";ln;
        }
        else
        {
            cout<<"NO";ln;
        }


    }


	return 0;
}
