#include <bits/stdc++.h>

using namespace std;

long long MOD=1e9+7;


long long power(long long a,long long b)
{
    a %= MOD;
    long long res = 1;
    while (b > 0) {
        if (b & 1)
            res = res * a % MOD;
        a = a * a % MOD;
        b >>= 1;
    }
    return res;
}


/*________________________________________________________________*/


void solve()
{
    long long n,i,j,ind=0;
    cin>>n;
    long long a[n];
    for(i=0;i<n;i++)
        cin>>a[i];
    for(i=0;i<n;i++)
    {
        if(a[ind]>a[i])
        {
            ind=i;
        }
    }
    cout<<n-1<<"\n";
    if(ind%2==0)
    {
        for(i=1;i<n;i=i+2)
        {

                cout<<i+1<<" "<<ind+1<<" "<<a[ind]+1<<" "<<a[ind]<<"\n";
        }
        for(i=0;i<n;i=i+2)
        {
            if(i!=ind)
            cout<<i+1<<" "<<ind+1<<" "<<a[ind]<<" "<<a[ind]<<"\n";
        }
    }
    else
    {
        for(i=1;i<n;i=i+2)
        {
            if(i!=ind)
                cout<<i+1<<" "<<ind+1<<" "<<a[ind]<<" "<<a[ind]<<"\n";
        }
        for(i=0;i<n;i=i+2)
        {
            cout<<i+1<<" "<<ind+1<<" "<<a[ind]+1<<" "<<a[ind]<<"\n";
        }
    }

}



int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
#ifndef ONLINE_JUDGE
    freopen("Input.txt", "r", stdin);
    freopen("Output.txt", "w", stdout);
    freopen("Error.txt", "w", stderr);
#endif
    int t;
    cin>>t;
    while(t--)
    {
        solve();
    }
}