#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<long long> a(n);
  for (auto &x : a) {
    cin >> x;
  }
  vector<int> b(n, 0);
  for (int i = 0; i < n; i++) {
    long long tmp = i + a[i];
    tmp = ((tmp % n) + n) % n;
    b[tmp]++;
  }
  for (auto x : b) {
    if (x == 0) {
      cout << "NO" << '\n';
      return;
    }
  }
  cout << "YES" << '\n';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout << setprecision(32);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
