#include <bits/stdc++.h>
using namespace std;
const char NL = '\n';
int modu(int a, int b) {
  a %= b;
  if (a < 0) a += b;
  return a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> num(n);
    for (int &i : num) cin >> i;
    unordered_set<int> s;
    for (int i = 0; i < n; i++) {
      s.insert(modu(i + num[i], n));
    }
    if (s.size() == n)
      cout << "YES";
    else
      cout << "NO";
    cout << NL;
  }
  return 0;
}
