#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int t;
  cin >> t;
  while (t-- > 0) {
    int n, a;
    cin >> n;
    vector<bool> b(n, false);
    bool bad = false;
    for (int i = 0; i < n; ++i) {
      cin >> a;
      int k = (i + a) % n;
      if (k < 0) k += n;
      if (b[k])
        bad = true;
      else
        b[k] = true;
    }
    cout << (bad ? "NO" : "YES") << "\n";
  }
  return 0;
}
