#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  vector<int_fast64_t> v;
  vector<bool> has;
  int_fast64_t t;
  cin >> t;
  while (t--) {
    int_fast64_t n;
    cin >> n;
    v.clear();
    copy_n(istream_iterator<int_fast64_t>(cin), n, back_inserter(v));
    has.assign(n, false);
    bool ok = true;
    for (int_fast64_t i = 0; i < n; ++i) {
      v[i] = ((v[i] + i) % n + n) % n;
      if (has[v[i]]) {
        ok = false;
        break;
      }
      has[v[i]] = true;
    }
    if (!ok)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}
