#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

ll gcd(ll a,ll b){
	if(b==0) return a;
	return gcd(b,a%b);
}



int main(){
	
// 	freopen ("output.txt","w",stdout);
// 	freopen ("input.txt","r",stdin);

	int t=1;
	cin>>t;
	while(t--){
		ll n;
		vector<ll> arr,temp;
		ll tmp;
		cin>>n;
		for(int i=0;i<n;i++){
			cin>>tmp;
			arr.push_back(tmp);
		}
		ll first=1000000007,second=1000000021;
		cout<<n-1<<endl;
		for(int i=0;i<n-1;i++){
			cout<<i+1<<' '<<i+2<<' ';
			if(i%2==0){
				tmp=min(arr[i],arr[i+1]);
				arr[i]=second;
				arr[i+1]=tmp;
				cout<<second<<' '<<tmp;
			}
			else{
				tmp=min(arr[i],arr[i+1]);
				arr[i]=first;
				arr[i+1]=tmp;
				cout<<first<<' '<<tmp;
			}
			cout<<endl;
		}
	}
}