#include <bits/stdc++.h>
using namespace std;
long long t;
const long long maxn = 2e5 + 10;
long long a[maxn];
long long n;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> t;
  while (t--) {
    cin >> n;
    bool flag = true;
    for (long long i = 0; i < n; ++i) cin >> a[i];
    set<long long> s;
    for (long long i = 0; i < n; ++i) {
      long long tmp = ((i + a[i]) % n + 2 * n) % n;
      if (s.count(tmp))
        flag = false;
      else
        s.insert(tmp);
    }
    cout << (flag ? "YES" : "NO") << endl;
  }
  return 0;
}
