#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int test = 1;
  cin >> test;
  while (test--) {
    long long int n;
    cin >> n;
    long long int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    long long int guest[n];
    memset(guest, 0, sizeof(guest));
    for (int i = 0; i < n; i++) {
      guest[(i + (arr[i] % n + n) % n) % n]++;
    }
    int x = 0;
    for (int i = 0; i < n; i++) {
      if (guest[i] == 0) {
        x++;
      }
    }
    if (x) {
      cout << "NO\n";
    } else {
      cout << "YES\n";
    }
  }
  return 0;
}
