#include <bits/stdc++.h>
using namespace std;
long long N;
void solve() {
  cin >> N;
  long long arr[N];
  set<int> s;
  for (int i = 0; i < N; i++) {
    cin >> arr[i];
    s.insert(((i + arr[i]) % N + N) % N);
  }
  if (s.size() == N)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
