#include <bits/stdc++.h>
using namespace std;
int t, n, a[200005];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      a[i] = ((a[i] + i) % n + n) % n;
    }
    sort(a, a + n);
    int f = 1;
    for (int i = 0; i < n - 1; i++)
      if (a[i] == a[i + 1]) f = 0;
    if (f)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
