#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << endl;
  err(++it, args...);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  long long x, n;
  cin >> t;
  while (t--) {
    cin >> n;
    set<long long> s;
    for (long long i = 0; i < n; ++i) {
      cin >> x;
      x = ((x + i + 1LL) % n + n) % n;
      s.insert(x);
    }
    if (s.size() == n) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
