#include <bits/stdc++.h>
using namespace std;
void solveCase() {
  long long n = 0;
  cin >> n;
  vector<long long> v(n);
  for (long long i = 0; i < n; i++) cin >> v[i];
  vector<bool> seen(n, false);
  bool ans = true;
  for (long long i = 0; i < n; i++) {
    long long cur = (i + v[i] + (1 << 30) * n) % n;
    if (seen[cur]) ans = false;
    seen[cur] = true;
  }
  cout << (ans ? "YES" : "NO") << '\n';
}
int32_t main() {
  ios::sync_with_stdio(false), cin.tie(NULL);
  long long t = 0;
  cin >> t;
  while (t--) solveCase();
}
