LCM Sum#5141

LCM Sum

1 segundo
128 megabytes
Media
\mathrm{LCM}(1, n) + \mathrm{LCM}(2, n) + \dots + \mathrm{LCM}(n, n)

Given a positive integer , calculate the sumwhere \mathrm{LCM}(i, n) denotes the least common multiple of the integers and .

Entrada

The first line contains the number of test cases (1 \le t \le 300\,000). Each of the next lines contains an integer (1 \le n \le 10^6).

Salida

Print lines, one for each test case, containing the required sum.

Ejemplos

Ejemplo 1

Loading
Loading