#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int maxn = 4e2 + 5, maxk = 4e2 + 5, inf = 1e9 + 69, delta = 1e9 + 7,
          max_sum = 10000 + 5;
inline void in_out_optimize() {
  ios::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
}
int main() {
  in_out_optimize();
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    long long eq = inf - (inf % n);
    set<int> dest;
    for (int i = 0; i < n; i++) {
      int a;
      cin >> a;
      if (a < 0) a += eq;
      a %= n;
      dest.insert((i + a) % n);
    }
    if (dest.size() == n)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
