#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0), cin.tie(0);
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> input(n);
    for (long long i = 0; i < n; i++) {
      cin >> input[i];
    }
    set<long long> s;
    for (long long i = 0; i < n; i++) {
      long long x = i + input[i];
      x = x % n;
      if (x < 0) x = x + n;
      s.insert(x);
    }
    if (s.size() != n)
      cout << "NO";
    else
      cout << "YES";
    cout << "\n";
  }
  return 0;
}
