#Lutece2739. 新月之舞

新月之舞

Migrated from Lutece 2739 新月之舞

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

纯音乐,请您欣赏。

——《三日月の舞 (関西大会突破 Ver.)


i=1nj=1nimodj\sum_{i=1}^n\sum_{j=1}^n i\bmod j

Input

第一行一个整数 T (1T50)T\ (1\le T\le 50),表示有 TT 组测试数据。

接下来 TT 行,每行一个整数 n (1n1012)n\ (1\le n\le 10^{12}),表示式中 nn 的值。

Output

对于每组数据,输出一行一个整数,表示答案。

Samples

1
1
0

Resources

2022 UESTC ICPC Training for Math and Geometry