using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args)
{
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
int[] arr = new int[1001];
int temp = 0, box = 0;
for (int i = 1; i <= 600; i++)
{
while (temp <= i)
{
box++;
temp = Factor(box * (box + 1) / 2);
}
arr[i] = box * (box + 1) / 2;
}
int test = Convert.ToInt32(Console.ReadLine());
while (test-- > 0)
{
int n = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(arr[n]);
}
}
static int Factor(int a)
{
int count = 0;
if (a == 1)
{
return 1;
}
for (int i = 1; i < Math.Ceiling(Math.Sqrt(a)); i++)
{
if (a % i == 0)
{
count += 2;
}
}
if (Math.Ceiling(Math.Sqrt(a)) == Math.Floor(Math.Sqrt(a)))
{
count++;
}
return count;
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLklPOwpjbGFzcyBTb2x1dGlvbiB7CiAgICBzdGF0aWMgdm9pZCBNYWluKFN0cmluZ1tdIGFyZ3MpCiAgICAgewogICAgLyogRW50ZXIgeW91ciBjb2RlIGhlcmUuIFJlYWQgaW5wdXQgZnJvbSBTVERJTi4gUHJpbnQgb3V0cHV0IHRvIFNURE9VVC4gWW91ciBjbGFzcyBzaG91bGQgYmUgbmFtZWQgU29sdXRpb24gKi8KICAgICAgICBpbnRbXSBhcnIgPSBuZXcgaW50WzEwMDFdOwogICAgICAgIGludCB0ZW1wID0gMCwgYm94ID0gMDsKICAgICAgICBmb3IgKGludCBpID0gMTsgaSA8PSA2MDA7IGkrKykKICAgICAgICB7CiAgICAgICAgICAgIHdoaWxlICh0ZW1wIDw9IGkpCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGJveCsrOwogICAgICAgICAgICAgICAgdGVtcCA9IEZhY3Rvcihib3ggKiAoYm94ICsgMSkgLyAyKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBhcnJbaV0gPSBib3ggKiAoYm94ICsgMSkgLyAyOwogICAgICAgIH0KICAgICAgICBpbnQgdGVzdCA9IENvbnZlcnQuVG9JbnQzMihDb25zb2xlLlJlYWRMaW5lKCkpOwogICAgICAgIHdoaWxlICh0ZXN0LS0gPiAwKQogICAgICAgIHsKICAgICAgICAgICAgaW50IG4gPSBDb252ZXJ0LlRvSW50MzIoQ29uc29sZS5SZWFkTGluZSgpKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoYXJyW25dKTsKICAgICAgICB9CiAgICB9CiAgICBzdGF0aWMgaW50IEZhY3RvcihpbnQgYSkKICAgIHsKICAgICAgICBpbnQgY291bnQgPSAwOwogICAgICAgIGlmIChhID09IDEpCiAgICAgICAgewogICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICB9CiAgICAgICAgZm9yIChpbnQgaSA9IDE7IGkgPCBNYXRoLkNlaWxpbmcoTWF0aC5TcXJ0KGEpKTsgaSsrKQogICAgICAgIHsKICAgICAgICAgICAgaWYgKGEgJSBpID09IDApCiAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgIGNvdW50ICs9IDI7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaWYgKE1hdGguQ2VpbGluZyhNYXRoLlNxcnQoYSkpID09IE1hdGguRmxvb3IoTWF0aC5TcXJ0KGEpKSkKICAgICAgICB7CiAgICAgICAgICAgIGNvdW50Kys7CiAgICAgICAgfQogICAgICAgIHJldHVybiBjb3VudDsKICAgIH0KfQo=