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