#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using si = set<int>;
using ii = pair<int, int>;
using vii = vector<ii>;
ll mod(1000000007);
double pi(acos(-1.0));
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int tcs;
  if (cin >> tcs)
    for (int tc = 0; tc < tcs; tc++) {
      int n;
      cin >> n;
      si s;
      bool ok = true;
      for (int i = 0; i < n; i++) {
        int x;
        cin >> x;
        int m = ((x + i) % n + n) % n;
        if (s.count(m))
          ok = false;
        else
          s.insert(m);
      }
      cout << (ok ? "YES" : "NO") << '\n';
    }
  return 0;
}
