#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cout << name << " : " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cout.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
void bolt() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  bolt();
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> v(n);
    for (long long i = 0; i < n; i++) cin >> v[i];
    if (n == 1) {
      cout << "YES" << endl;
      continue;
    }
    set<long long> s;
    bool flag = true;
    for (long long i = 0; i < n; i++) {
      long long num = v[i] % n;
      num = (num + n + i) % n;
      if (s.count(num) != 0) {
        flag = false;
        break;
      }
      s.insert(num);
    }
    if (!flag)
      cout << "NO" << endl;
    else {
      if (s.size() == n)
        cout << "YES";
      else
        cout << "NO";
      cout << endl;
    }
  }
  return 0;
}
