#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false), cin.tie(NULL), cout.tie(0);
  int m;
  cin >> m;
  while (m--) {
    int a;
    cin >> a;
    int b[a];
    set<int> s;
    for (long long int i = 0; i < a; i++) cin >> b[i];
    for (long long int i = 0; i < a; i++) {
      int x = i + b[i];
      x = ((x % a) + a) % a;
      s.insert(x);
    }
    cout << (s.size() == a ? "YES\n" : "NO\n");
  }
  return 0;
}
