#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  long long t, n, x;
  cin >> t;
  while (t--) {
    cin >> n;
    long long ara[n + 1];
    map<long long, int> room;
    for (int i = 0; i < n; i++) {
      cin >> ara[i];
      x = (((ara[i] + i) % n) + n) % n;
      room[x] = 1;
    }
    if (room.size() == n)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
