#include <bits/stdc++.h>
using namespace std;
void debug_out() { cerr << '\n'; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
  cerr << " " << H;
  debug_out(T...);
}
const long long MAXN = 2e5 + 10;
long long t, n, cnt, a[MAXN], b[MAXN];
map<long long, long long> mpp;
int32_t main() {
  cin >> t;
  while (t--) {
    for (long long i = 0; i < n; i++) a[i] = 0, b[i] = 0;
    cin >> n, mpp.clear(), cnt = 0;
    for (long long i = 0; i < n; i++)
      cin >> a[i], b[i] = (((a[i] + i) % n) + n) % n, mpp[b[i]]++;
    for (auto it : mpp) cnt++;
    if (cnt == n)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
