#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const double EPS = 1e-6;
const string alpha = "abcdefghijklmnopqrstuvwxyz";
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<bool> mv(n, false);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    int dest = i + a[i];
    if (dest >= 0) {
      dest = dest % n;
    } else {
      dest = (n - (-1 * dest) % n) % n;
    }
    if (mv[dest]) {
      cout << "NO" << endl;
      return;
    }
    mv[dest] = true;
  }
  cout << "YES" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int q;
  cin >> q;
  while (q--) {
    solve();
  }
}
