func_code_string: #include <bits/stdc++.h>   using namespace std;   #define int long long   void solve()   {       int n;       cin >> n;       int a[n];              for(int i = 0; i < n; i++) cin >> a[i];       cout<<(n/2)*6<<endl;       for(int i = 1; i <= n; i+=2){           int j = i + 1;           cout<<1<<   <<i<<   <<j<<endl;           cout<<2<<   <<i<<   <<j<<endl;           cout<<2<<   <<i<<   <<j<<endl;           cout<<1<<   <<i<<   <<j<<endl;           cout<<2<<   <<i<<   <<j<<endl;           cout<<2<<   <<i<<   <<j<<endl;       }   }      int32_t main()   {       ios_base::sync_with_stdio(false);       cin.tie(0);       cout.tie(0);       int t;       cin>> t;       while(t--)solve();       return 0;   }