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