#include <bits/stdc++.h>
const int mod = 1000000007;
const int modx = 998244353;
using namespace std;
void thunder() {
  long long n;
  cin >> n;
  vector<long long> a(n), b(n);
  long long i, j;
  for (i = 0; i < n; i++) cin >> a[i];
  map<long long, long long> m;
  for (i = 0; i < n; i++) {
    long long idx = i + a[i % n];
    idx %= n;
    idx += n;
    idx %= n;
    if (m.count(idx) == 0)
      m[idx]++;
    else {
      cout << "NO"
           << "\n";
      return;
    }
  }
  cout << "YES"
       << "\n";
  return;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cin >> t;
  while (t--) thunder();
}
