Hi guys. To day i meet a problem that : give you integer t is number of test case (t <= 10) each line have an interger n ( n <= 1e6) , Count the number of ways to choose a distinct (at least 1) set of numbers (elements in the ascending set) such that they form an arithmetic progression.
example : if n = 3 , the answer is 7 : (1,2,3,12,13,23,123)