#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  vector<bool> c(n);
  for (int i = 0; i < n; i++) c[((a[i] + i) % n + n) % n] = true;
  for (int i = 0; i < n; i++) {
    if (!c[i]) {
      cout << "NO" << endl;
      return;
    }
  }
  cout << "YES" << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
}
