#include <cstdio>
int main() {
	int T;
	scanf("%d", &T);
	while (T--) {
		int mn = 1e9 + 7, id, x, n;
		scanf("%d", &n);
		for (int i = 1; i <= n; ++i) {
			scanf("%d", &x);
			if (x < mn) mn = x, id = i;
		}
		int t = mn + 1;
		if (id == 1) printf("%d\n", n - 1);
		else printf("%d\n1 %d %d %d\n", n, id, mn, t);
		for (int i = 2; i <= n; ++i)
			printf("1 %d %d %d\n", i, mn, t++);
	}
	return 0;
}
