#include<iostream> #include<cstring> #include<queue> #include<cstdio> #include<stack> #include<set> #include<map> #include<cmath> #include<ctime> #include<time.h> #include<algorithm> #include<bits/stdc++.h> using namespace std; #define mp make_pair #define pb push_back #define debug puts("debug") #define LL unsigned long long #define pii pair<int,int> #define eps 1e-10 #define inf 0x3f3f3f3f LL MOD=1e9+7; LL cal(int n){ LL r=n; for(int i=2;i<=n;++i){ r+=(n/i)*i; } return r; } int main(){ int n,i,j,k; cin>>k; while(k--){ scanf("%d",&n); printf("%lld ",cal(n)); } return 0; }