#include<bits/stdc++.h>
using namespace std;
#define int long long
#define vvi vector<vector<int>>
const int mod =1e9+7;
#define ll long long
#define pii pair<ll,ll>
#define vi vector< ll >
#define vp vector<pii>
#define ld long double
#define S second
#define F first
#define ii pair<int, int>
#define IOS std::ios_base::sync_with_stdio(false)
#define pb push_back
#define pf push_front
#define inf INT_MAX
#define forf(i, a, b) for (int i = (a); i < (b); i++)
#define forr(i, a, b) for (int i = (a); i >=(b); i -= 1)
#define print(vec, l, r) \
for (int i = l; i <= r; i++) \
cout << vec[i] << " "; \
cout << endl;
#define all(x) x.begin(), x.end()
#define take(n) \
int n; \
cin>>n;
#define yn "YES":"NO"
#define input(vec, N) \
for (int i = 0; i < (N); i++) cin >> vec[i];
#define input1(vec, N) for (int i = 1; i <=(N); i++) cin >> vec[i];
const int N = (1e5+2);
const int M = (2e2+2);
const int MAXN = 1e6+12;
const ll INF = 2e18;
#define BLOCK 555
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin>>t;
while(t--){
int n;
cin>>n;
cout<<(n+1)*(n+1)+1<<endl;
}
}
Divisible | Three primes |
Coprimes | Cost of balloons |
One String No Trouble | Help Jarvis! |
Lift queries | Goki and his breakup |
Ali and Helping innocent people | Book of Potion making |
Duration | Birthday Party |
e-maze-in | Bricks Game |
Char Sum | Two Strings |
Anagrams | Prime Number |
Lexical Sorting Reloaded | 1514A - Perfectly Imperfect Array |
580A- Kefa and First Steps | 1472B- Fair Division |
996A - Hit the Lottery | MSNSADM1 Football |
MATCHES Playing with Matches | HRDSEQ Hard Sequence |
DRCHEF Doctor Chef | 559. Maximum Depth of N-ary Tree |
821. Shortest Distance to a Character | 1441. Build an Array With Stack Operations |