#include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VVI = vector<VI>;
using VB = vector<bool>;
using ll = long long;
using VL = vector<ll>;
using VVL = vector<VL>;
int N;
VI a;
void ReadData();
void Solve();
int main() {
  int T;
  cin >> T;
  while (T--) {
    ReadData();
    Solve();
  }
  return 0;
}
void ReadData() {
  cin >> N;
  a = VI(N);
  for (int i = 0; i < N; ++i) cin >> a[i];
}
void Solve() {
  for (int i = 0; i < N; ++i) {
    a[i] += i;
    a[i] %= N;
    if (a[i] < 0) a[i] += N;
  }
  sort(a.begin(), a.end());
  for (int i = 0; i + 1 < N; ++i)
    if (a[i] == a[i + 1]) {
      cout << "NO" << '\n';
      return;
    }
  cout << "YES" << '\n';
}
