#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    set<int> s;
    int n, t;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> t;
      int num = ((i + t) % n + n) % n;
      s.insert(num);
    }
    if (s.size() == n)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
