#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n + 1];
    map<int, int> m;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
      int val = (i + arr[i]);
      if (val >= 0)
        val %= n;
      else {
        val = abs(val);
        val %= n;
        val = (n - val) % n;
      }
      m[val]++;
    }
    if (m.size() < n) {
      cout << "NO\n";
      continue;
    }
    bool check = true;
    for (auto it : m) {
      if (it.second > 1) {
        check = false;
        break;
      }
    }
    if (check)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
