#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int a[n], cnt[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      cnt[i] = 1;
    }
    int flag = 0;
    for (int i = 0; i < n; i++) {
      cnt[i]--;
      int temp = ((i + a[i]) % n + n) % n;
      cnt[temp]++;
    }
    for (int i = 0; i < n; i++) {
      if (cnt[i] != 1) {
        flag = 1;
        break;
      }
    }
    if (flag == 1) {
      cout << "NO" << endl;
    } else
      cout << "YES" << endl;
  }
  return 0;
}
