#include <bits/stdc++.h>
using namespace std;
void IO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
template <typename... T>
void read(T&... args) {
  ((cin >> args), ...);
}
template <typename... T>
void write(T&&... args) {
  ((cout << args << " "), ...);
}
int mpow(int, int);
int n;
void solve() {
  read(n);
  long long int a[n], b;
  set<long long> s;
  for (int i = 0; i < n; i += 1) {
    read(a[i]);
  }
  for (int i = 0; i < n; i += 1) {
    b = ((a[i] + i) % n + n) % n;
    if (s.count(b)) {
      write("NO");
      cout << "\n";
      return;
    }
    s.insert(b);
  }
  write("YES");
  cout << "\n";
}
int main() {
  IO();
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
int mpow(int base, int exp) {
  base %= 1000000007;
  int result = 1;
  while (exp > 0) {
    if (exp & 1) result = ((long long int)result * base) % 1000000007;
    base = ((long long int)base * base) % 1000000007;
    exp >>= 1;
  }
  return result;
}
