#include <bits/stdc++.h>
using namespace std;
int t, n, a[200005];
bool dali[200005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] < 0) a[i] = n - abs(a[i]) % n;
      dali[i] = 0;
    }
    int i;
    for (i = 0; i < n; i++) {
      int x = (i + a[i]) % n;
      if (!dali[x])
        dali[x] = 1;
      else {
        cout << "NO\n";
        break;
      }
    }
    if (i == n) cout << "YES\n";
  }
}
