#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-- > 0) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (auto& i : a) {
      cin >> i;
    }
    vector<bool> b(n, false);
    bool yes = true;
    for (int i = 0; i < n; ++i) {
      a[i] %= n;
      a[i] += 2 * n;
      a[i] %= n;
      int q = (a[i] + i) % n;
      if (b[q]) {
        yes = false;
        break;
      }
      b[q] = true;
    }
    if (yes) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
