#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t, a;
  bool b[200001], yes = true;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    fill(b, b + n, 0);
    yes = true;
    for (int i = 0; i < n; i++) {
      cin >> a;
      b[((a + i) % n + n) % n] = 1;
    }
    for (int i = 0; i < n; i++) {
      if (!b[i]) yes = false;
    }
    if (yes)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
