#include <bits/stdc++.h>
using namespace std;
template <typename Tp>
void read(Tp &num) {
  num = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) c == '-' ? f = -1 : 1, c = getchar();
  while (isdigit(c)) num = (num << 3) + (num << 1) + (c ^ 48), c = getchar();
  num *= f;
}
template <typename Tp, typename... etc>
void read(Tp &num, etc &...more) {
  read(num);
  read(more...);
}
const int maxn = 3e5;
int t, n, a[maxn], hv[maxn];
int main() {
  read(t);
  while (t--) {
    bool ed = 0;
    read(n);
    for (register int i = 1; i <= n; ++i) read(a[i]);
    for (register int i = 1; i <= n; ++i) hv[((a[i] + i - 1) % n + n) % n]++;
    for (register int i = 0; i <= n; ++i)
      if (hv[i] > 1) {
        ed = 1;
        break;
      }
    for (register int i = 0; i <= n; ++i) hv[i] = 0;
    if (ed)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
  return 0;
}
