#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    vector<int> a(n);
    for (int &x : a) {
      scanf("%d", &x);
      x %= n;
      if (x < 0) x += n;
    }
    vector<bool> used(n, false);
    for (int i = 0; i < n; i++) {
      used[(i + a[i]) % n] = true;
    }
    bool ok = true;
    for (int i = 0; i < n; i++) {
      if (!used[i]) {
        ok = false;
      }
    }
    printf("%s\n", ok ? "YES" : "NO");
  }
}
