#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long l[n];
    long long temp;
    for (int i = 0; i < n; i++) {
      cin >> temp;
      if (temp >= 0) {
        l[i] = (temp + i) % n;
      } else {
        l[i] = ((temp + i) % n + n) % n;
      }
    }
    bool b[n];
    for (int i = 0; i < n; i++) {
      b[i] = false;
    }
    bool f = true;
    for (int i = 0; i < n; i++) {
      if (b[l[i]]) {
        f = false;
        break;
      } else {
        b[l[i]] = true;
      }
    }
    string ans = f ? "YES" : "NO";
    cout << ans << "\n";
  }
}
