#include #include using namespace std; using namespace atcoder; typedef long long ll; typedef long double ld; typedef vector vi; typedef vector vll; typedef vector vld; typedef vector vvi; typedef vector vvll; #define _overload3(_1,_2,_3,name,...) name #define _rep(i,n) repi(i,0,n) #define repi(i,a,b) for(int i=int(a);iint(b);--i) #define rrep(...) _overload3(__VA_ARGS__,rrepi,_rrep)(__VA_ARGS__) #define all(x) (x).begin(),(x).end() #define SORT(x) sort(all(x)) #define REVERSE(x) reverse(all(x)) templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b istream& operator>>(istream& is, vector& vec) { for (T& x : vec) is >> x; return is; } template ostream& operator<<(ostream& os, const vector& vec) { for (const T& x : vec) os << x << ' '; return os; } int main() { using mint = modint998244353; int M = 200001; mint R[M], E[M]; R[1] = 1, R[2] = 1, E[1] = 1, E[2] = 3; rep(i, 3, M) R[i] = R[i-1] + R[i-2], E[i] = E[i-2] + E[i-1]; int Q; cin >> Q; rep(i, Q) { int N; cin >> N; cout << 5*R[N]*R[N]-E[N]*E[N] << endl; } }