#include <bits/stdc++.h>
using namespace std;
using namespace std;
void test_case() {
  int n;
  vector<long long> a, cnt;
  cin >> n;
  a.resize(n);
  cnt.resize(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    cnt[i] = 0;
  }
  for (int i = 0; i < n; ++i) {
    cnt[((a[i] % n) + n + i) % n]++;
  }
  for (int i = 0; i < n; i++) {
    if (cnt[i] != 1) {
      cout << "NO\n";
      return;
    }
  }
  cout << "YES\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int tests;
  cin >> tests;
  for (int test = 0; test < tests; ++test) {
    test_case();
  }
  return 0;
}
