#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
template <typename T>
T sum() {
  return 0;
}
template <typename T, typename... Args>
T sum(T a, Args... args) {
  return a + sum(args...);
}
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << '\n';
  err(++it, args...);
}
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &x : a) {
    cin >> x;
  }
  vector<bool> visited(n, false);
  for (int i = (0); i < (n); i++) {
    visited[((i + a[i]) % n + n) % n] = true;
  }
  bool yes = true;
  for (int i = (0); i < (n); i++) {
    if (!visited[i]) {
      yes = false;
      break;
    }
  }
  if (yes) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
