#include <bits/stdc++.h>
using namespace std;
void go() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
void solve() {
  int n;
  cin >> n;
  vector<long long> v(n);
  for (long long i = 0; i < n; i++) cin >> v[i];
  ;
  set<long long> s;
  long long x;
  for (int i = 0; i < n; i++) {
    if (i == 0) {
      x = n + v[i];
      x %= n;
      if (x < 0) {
        x = (x + n) % n;
      }
    } else {
      x = i + v[i];
      x = x % n;
      if (x < 0) {
        x = (x + n) % n;
      }
    }
    s.insert(x);
  }
  if (s.size() != n) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
  }
}
int main() {
  go();
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
