#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    set<int> s;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      x = x + i;
      x = (x % n);
      x = (x + n) % n;
      s.insert(x);
    }
    if (s.size() != n) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
  }
  return 0;
}
