#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    set<long long> s;
    for (int i = 0; i < n; i++) {
      long long x;
      cin >> x;
      a[i] = i + x;
      a[i] = ((a[i] % n) + n) % n;
      s.insert(a[i]);
    }
    if (s.size() == n)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
