#include <bits/stdc++.h>
using namespace std;
int a[201010], cnt[201010];
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) cnt[i] = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      a[i] %= n;
      a[i] = (a[i] + n) % n;
      a[i] = (i + a[i]) % n;
      cnt[a[i]]++;
    }
    bool flag = true;
    for (int i = 0; i < n; i++)
      if (cnt[i] > 1) flag = false;
    printf(flag ? "YES\n" : "NO\n");
  }
  return 0;
}
