#include <bits/stdc++.h>
using namespace std;
int t, n;
int a[200005];
int b[200005];
int main() {
  scanf("%d", &t);
  while (t--) {
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      b[i] = 0;
    }
    for (int i = 0; i < n; i++) {
      b[((i + a[i]) % n + n) % n] = 1;
    }
    int can = 1;
    for (int i = 0; i < n; i++) {
      if (b[i] == 0) can = 0;
    }
    if (can == 1)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
