#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long n, t;
    cin >> n;
    set<long long> arr;
    for (long long i = 0; i < n; i++) {
      cin >> t;
      t += 1000000000LL * n;
      arr.insert((t + i) % n);
    }
    if (arr.size() == n)
      cout << "YES"
           << "\n";
    else
      cout << "NO"
           << "\n";
  }
  return 0;
}
