Cube Summation

아직 제출이 없습니다시간 제한4초메모리 제한512 MB

문제

Given an integer NN, consider all multi-sets of positive integers such that their sum is NN.

For example, if N=3N = 3, there are three possible multi-sets: 1,1,1\\{1, 1, 1\\}, 1,2\\{1, 2\\}, and 3\\{3\\}.

For each multi-set, calculate the cube of its size, and output the sum of all these values modulo 998,244,353998\\,244\\,353.

입력

The first line of input contains an integer TT, the number of test cases (1T1051 \le T \le 10^5).

Each test case consists of a single line containing a single integer NN (1N1051 \le N \le 10^5).

출력

For each test case, output a single line with a single integer: the answer to the problem.

힌트

For the first case, the only possible multi-set is 1\\{1\\}. So the answer is 13=11^3 = 1.

For the second case, there are two possible multi-sets: 1,1\\{1, 1\\} and 2\\{2\\}. So the answer is 23+13=92^3 + 1^3 = 9.

For the third case, there are three possible multi-sets: 1,1,1\\{1, 1, 1\\}, 1,2\\{1, 2\\}, and 3\\{3\\}. So the answer is 33+23+13=363^3 + 2^3 + 1^3 = 36.