#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  for (long long int i = 0; i < t; i++) {
    long long int n;
    cin >> n;
    map<long long int, long long int> M;
    bool flag = true;
    long long int a[n];
    for (long long int j = 0; j < n; j++) {
      cin >> a[j];
      a[j] += j;
      a[j] += (n * 1000000000);
      a[j] %= n;
      if (M[a[j]] == 1) flag = false;
      M[a[j]]++;
    }
    if (flag == true)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
