#include <bits/stdc++.h>
using namespace std;
long long a[200013], b[200013];
int main() {
  long long n, t, p;
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (int i = 0; i < n; i++) {
      p = (i + a[i]) % n;
      if (p < 0) p += n;
      if (b[p]) {
        cout << "NO" << endl;
        break;
      }
      b[p] = 1;
      if (i == n - 1) {
        cout << "YES" << endl;
      }
    }
    memset(b, 0, sizeof(b));
  }
  return 0;
}
