#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  set<int> s;
  for (int i = 0; i < n; i++) {
    int c;
    cin >> c;
    c += i;
    c = (c % n + n) % n;
    s.emplace(c);
  }
  if (s.size() == n)
    cout << "YES\n";
  else
    cout << "NO\n";
  return;
}
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
