#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    unordered_set<int> u;
    for (int i = 0; i < n; i++) {
      int t;
      cin >> t;
      u.insert(((i + t) % n + n) % n);
    }
    if (u.size() == n)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
