#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    vector<long long int> a(n), c(n, 0);
    for (long long int i = 0; i < n; i++) {
      cin >> a[i];
      a[i] = (a[i] + i) % n;
      if (a[i] < 0) {
        a[i] += n;
      }
      c[a[i]]++;
    }
    bool flag = true;
    for (long long int i = 0; i < n; i++) {
      if (c[i] > 1) {
        flag = false;
        break;
      }
    }
    if (flag) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
