#include <bits/stdc++.h>

using namespace std;

typedef unsigned long long int ull;
typedef unsigned short us;
typedef unsigned int ui;
typedef long long int ll;

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    int t;
    cin>>t;

    while(t--)
    {
        int n;
        cin>>n;

        ll sum=0,a;
        bool ans = true;
        for (int i = 1; i <= n; i++)
        /* 'for' inside */
        {
            cin>>a;
            sum += a;

            /* 'if' begin */
            if(sum < (i*i-i)/2)
                /* 'if' inside */
                ans = false;
        }
        
        /* 'if' begin */
        if( ans )
            /* 'if' inside */
            cout<<"YES\n";
        else
            cout<<"NO\n";
    }

    return 0;

}