#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    long long n;
    cin >> n;
    set<long long> s;
    for (int j = 0; j < n; ++j) {
      long long x;
      cin >> x;
      long long an;
      if (x >= 0) {
        an = x % n + j;
      } else {
        an = x % n + n + j;
      }
      an = an % n;
      s.insert(an);
    }
    if (s.size() == n) {
      cout << "YES";
    } else {
      cout << "NO";
    }
    cout << endl;
  }
  return 0;
}
