#include <bits/stdc++.h>
using namespace std;
void yes() {
  cout << "YES"
       << "\n";
}
void no() {
  cout << "NO"
       << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    long long int flag = 0;
    cin >> n;
    long long int arr[n + 5];
    long long int freq[n + 5];
    for (int i = 0; i < n + 5; i++) freq[i] = 0;
    for (int i = 0; i < n; i++) cin >> arr[i];
    for (int i = 0; i < n; i++) freq[i] = 1;
    for (int i = 0; i < n; i++) {
      freq[i]--;
      long long int x = i + arr[i % n];
      long long int yy = x % n;
      if (yy < 0)
        freq[(x % n + n)]++;
      else
        freq[x % n]++;
    }
    for (int i = 0; i < n; i++) {
      if (freq[i] > 1) {
        flag = 1;
        break;
      }
    }
    if (flag == 1)
      cout << "NO"
           << "\n";
    else
      cout << "YES"
           << "\n";
  }
  return 0;
}
