#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define rep(i,a,b)  for(ll i=a;i<b;i++)
#define nl cout<<endl

#define pii pair<ll,ll>
#define vi  vector<ll>
#define vii vector<pii>
#define mi  map<ll,ll>
#define all(a)  (a).begin(),(a).end()

#define pb push_back
#define make make_pair
#define ff first
#define ss second
#define hell 1000000007
int main()
{
	ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
	ll t;
	cin>>t;
	while(t--)
	{
		ll n;
		cin>>n;
		ll a[n] , min;
		cin>>a[0];
		min = 0;
		rep(i,1,n)
		{
			cin>>a[i];
			if(a[i] < a[min])
				min = i;

		}
		vii ind , p;
		if(min!=0)
		{
			ind.pb(make(1 , min+1));
			p.pb(make(a[min] , a[0]));
			a[0] = a[min];
		}
		
		rep(i,1,n)
		{

			ind.pb(make(1 , i+1));
			p.pb(make(a[0],a[0]+i));
		}
		cout<<ind.size()<<endl;
		rep(i,0,ind.size())
		{
			cout<<ind[i].first<<" "<<ind[i].second<<" "<<p[i].first<<" "<<p[i].second<<endl;
		}
	}
		return 0;
	
}