#include<iostream>
using namespace std;
int main()
{
    int T;
    cin>>T;
    while(T--)
    {
        int n;
        cin>>n;
        long long int a[n];
        long long int x=0;
        bool bo=0;
        long long y=n;
        y=y*(n-1)/2;
        for(int i=0;i<n;i++)
        {
            cin>>a[i];
        }
        for(int i=0;i<n;i++)
        {
            y-=i;
            x=a[i]+x-i;
            if(x>=y){break;}
            if(x<0){bo=1; break;}
        }
        if(bo==0){cout<<"YES"<<endl;}
        else
        {
            cout<<"NO"<<endl;
        }
    }
}