#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 500;
const long long mod = 1e9 + 7;
const long long cmod = 998244353;
const long long inf = 1LL << 61;
const int M = 1e6 + 500;
const long long int ths = 1LL << 40;
const int NN = 5e3 + 6;
void solve() {
  long long int n;
  cin >> n;
  long long int a[n];
  set<long long int> s;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    long long int t = a[i] + i;
    t %= n;
    if (t < 0) t += n;
    s.insert(t);
  }
  if (s.size() == n)
    cout << "YES";
  else
    cout << "NO";
  cout << "\n";
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
