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; } }