#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline bool chkmax(T &a, T b) {
  return a < b ? a = b, 1 : 0;
}
template <typename T>
inline bool chkmin(T &a, T b) {
  return b < a ? a = b, 1 : 0;
}
const int MAXN = 2e5 + 5;
int T, n, a[MAXN], out[MAXN];
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%d", &n);
    for (register int i = (1), i_end_ = (n); i <= i_end_; ++i)
      scanf("%d", a + i), out[i] = 0;
    for (register int i = (1), i_end_ = (n); i <= i_end_; ++i) {
      int t = (i + a[i]) % n;
      if (t <= 0) t += n;
      ++out[t];
    }
    int mk = 1;
    for (register int i = (1), i_end_ = (n); i <= i_end_; ++i)
      if (out[i] != 1) {
        mk = 0;
        break;
      }
    puts(mk ? "YES" : "NO");
  }
  return 0;
}
