#include <bits/stdc++.h>
using namespace std;
long long ar[200005];
void work() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%lld", &ar[i]);
  set<long long> st;
  for (int i = 0; i < n; i++) {
    long long vv = 1e9 / n;
    long long off = (vv + 1) * n;
    long long val = ((long long)i + ar[i] + off);
    st.insert(val % n);
  }
  if ((int)st.size() == n) {
    puts("YES");
  } else {
    puts("NO");
  }
}
int main() {
  int tc;
  scanf("%d", &tc);
  while (tc--) work();
  return 0;
}
