#include<stdio.h>long long H(int);int main(){int n;scanf("%d", &n);while(n--){int c;scanf("%d", &c);c=H(c);printf("%d\n", c);}return 0;}long long H(int n){long long res = 0;for(int i=1;i<=n;i=i+1){res=(res+n/i);}return res;}