#include <bits/stdc++.h>
using namespace std;
long long n, m, i, j, t, v[200005];
bool used[200005];
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
}
int main() {
  fast();
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 0; i < n; ++i) cin >> v[i];
    for (i = 0; i < n; ++i) used[i] = 0;
    for (i = 0; i < n; ++i) {
      long long p = ((i + v[i]) % n + n) % n;
      if (used[p]) break;
      used[p] = 1;
    }
    cout << (i == n ? "YES\n" : "NO\n");
  }
}
