#include using namespace std; #define rep(i, n) for (int i=0; i> T; while (T--) { int N; cin >> N; ll ans = (ll)(N)*(N-1)-phi[N]+1; printf("%lld\n", ans); } }