#include <bits/stdc++.h>
using namespace std;
void precompute() {}
void test_case() {
  long long int n;
  cin >> n;
  ;
  set<long long int> s;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    ;
    s.insert(((i + x) % n + n) % n);
  }
  cout << ((long long int)s.size() == n ? "YES" : "NO") << '\n';
}
int32_t main() {
  srand(time(0));
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  precompute();
  long long int T = 1;
  cin >> T;
  for (long long int TT = 1; TT <= T; TT++) {
    test_case();
  }
  cerr << "Time : "
       << 1000 * ((long double)clock()) / (long double)CLOCKS_PER_SEC << "ms\n";
  return 0;
}
