#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  vector<long long int> v(n, 0);
  for (int i = 0; i < n; i++) cin >> v[i];
  set<long long int> second;
  for (int i = 0; i < n; i++) {
    v[i] = ((i + v[i]) % n + n) % n;
    if (second.find(v[i]) != second.end()) {
      cout << "NO";
      return;
    }
    second.insert(v[i]);
  }
  cout << "YES";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    solve();
    cout << "\n";
  }
  return 0;
}
