#include <bits/stdc++.h>
using namespace std;
long long power(long long a, long long n, long long m) {
  if (n == 0) return 1;
  long long p = power(a, n / 2, m) % m;
  p = (p * p) % m;
  if (n & 1) p = (p * a) % m;
  return p;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i <= n - 1; i++) cin >> a[i];
    if (n == 1) {
      cout << "YES\n";
      continue;
    }
    set<long long> s;
    for (long long i = 0; i <= n - 1; i++) {
      long long val = (a[i] % n + n) % n;
      val = (val + i) % n;
      s.insert(val);
    }
    if (s.size() == n)
      cout << "YES";
    else
      cout << "NO";
    cout << "\n";
  }
  return 0;
}
