#include<bits/stdc++.h>
using namespace std;
int main(){
	int t;
	cin >> t;
	while(t--){
		int n;
		cin >> n;
		vector <int> a(n);
		int k = INT_MAX,z = -1;
		for(int i=0;i<n;i++){
			cin >> a[i];
			k = min(k,a[i]);
			if(k==a[i]){
				z = i;
			}
		}
		cout << n-1 << endl;
		for(int i=0;i<n;i++){
			if(i!=z){
				cout << i+1 << " " << z+1 << " " << max(1,k+abs(z-i)) << " " << k << endl;
			}
		}
		//cout << endl;
	}
}