{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"Given the value of N, you will have to find the value of G. The definition of G is given below:\n\n$$G \u003d \\sum_{i \u003d 1}^{n-1} \\sum_{j \u003d i + 1}^n GCD(i, j)$$"}},{"title":"Input","value":{"format":"MD","content":"The input file contains at most 100 lines of inputs. Each line contains an integer N (1 \u003c N \u003c 501).\nThe meaning of N is given in the problem statement. Input is terminated by a line containing a single\nzero. This zero should not be processed."}},{"title":"Ouput","value":{"format":"MD","content":"For each line of input produce one line of output. This line contains the value of G for corresponding\nN.\n"}},{"title":"Example","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e\n10\n100\n500\n0\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\n67\n13015\n442011\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}