#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> v;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      v.push_back(x);
    }
    vector<int> p;
    for (int i = 0; i < n; i++) {
      int x = v[i] + i;
      if (x < 0) {
        x = x * -1;
        int r = (n - 1) * (x % n);
        r = r % n;
        x = r;
      } else {
        x = x % n;
      }
      p.push_back(x);
    }
    sort(p.begin(), p.end());
    bool ans = true;
    for (int i = 1; i < n; i++) {
      if (p[i] == p[i - 1]) {
        ans = false;
        break;
      }
    }
    if (ans) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
