#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n), v;
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 0; i < n; i++) {
      a[i] += i;
      if (a[i] >= 0)
        v.push_back(a[i] % n);
      else {
        v.push_back((n + a[i] % n) % n);
      }
    }
    bool flag = true;
    sort(v.begin(), v.end());
    for (int i = 0; i < n; i++) {
      if (v[i] != i) {
        flag = false;
        break;
      }
    }
    if (flag)
      cout << "YES"
           << "\n";
    else {
      cout << "NO\n";
    }
  }
  return 0;
}
