#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  set<long long> s;
  while (t--) {
    long long p, n;
    cin >> n;
    vector<long long> a(n);
    set<long long> s;
    for (long long i = 0; i < n; i++) {
      cin >> p;
      s.insert(((i + p) % n + n) % n);
    }
    if ((long long)(s).size() == n) {
      cout << (1 ? "YES" : "NO") << '\n';
      ;
    } else {
      cout << (0 ? "YES" : "NO") << '\n';
      ;
    }
  }
  return 0;
}
