//#include "bits/stdc++.h"
#pragma GCC optimize("Ofast")
//#pragma GCC target("avx,avx2,fma,sse,sse2")
#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
//#undef LOCALKL
#define IO \
ios_base::sync_with_stdio(0);(cin).tie(0);(cout).tie(0)
#define y1 y1_
#define prev prev_
#define all(a) (a).begin(),(a).end()
#define pb push_back
#define eb emplace_back
#define F first
#define S second
#ifdef LOCALKL
#define cerr cerr<<"\33[1;32m"
#define cout cout<<"\33[0m"
#else
#define endl '\n'
#define cerr if(1){}else cerr
#endif
#define OK cout<<"OK\n"<<endl;
#define setpre(k) fixed<<setprecision(k)
#define mmset(k,y) memset(k,y,sizeof(k))
#define sz(x) ((int)(x).size())
using pii = pair<int,int>;
using pll = pair<long long,long long>;
using ull = unsigned long long;
using intt = long long;
using ll = long long;
using ld = long double;

const ll m9 = 998244353;
const ll m7 = 1000000007;
const ll m18 = 1000000000000000000;
const ll i127 = 2193062143;
const ll l127 = 9187201950435737471;
int n, a[100001];
int main()
{
    IO;
    int T;
    cin>>T;
    while(T--)
    {
    	cin>>n;
    	int x = 1;
    	for(int i=1;i<=n;i++)
    	{
    		cin>>a[i];
    		if(a[i]<a[x]) x=i;
    	}
    	cout<<n-1<<endl;
    	for(int i=1;i<=n;i++)
    	{
    		if(i==x) continue;
    		cout<<x<<' '<<i<<' '<<a[x]<<' '<<a[x]+abs(x-i)<<endl;
    	}
    }
    return 0;
}