#include <bits/stdc++.h>
using namespace std;
template <class T>
void read(T &res) {
  int f = 1;
  res = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    res = res * 10 + c - '0';
    c = getchar();
  }
  res *= f;
}
const int ne[8][2] = {1, 0, -1, 0, 0, 1, 0, -1, -1, -1, -1, 1, 1, -1, 1, 1};
const int INF = 0x3f3f3f3f;
const int N = 2e5 + 10;
const long long Mod = 1e9 + 7;
const int M = 1e6 + 10;
int a[N];
map<int, int> m;
int main() {
  int T;
  scanf("%d", &T);
  int n, x;
  while (T--) {
    memset(a, 0, sizeof a);
    scanf("%d", &n);
    int f = 1, mid;
    for (register int i = (0); i < (n); ++i) {
      scanf("%d", &x);
      mid = ((x + i) % n + n) % n;
      if (a[mid]) f = 0;
      ++a[mid];
    }
    if (f)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
