#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tc, n, temp;
  cin >> tc;
  while (tc--) {
    unordered_set<int> check;
    int flag = 1;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> temp;
      temp += i;
      temp %= n;
      if (temp < 0) temp += n;
      if (check.find(temp) != check.end()) {
        flag = 0;
      } else
        check.insert(temp);
    }
    if (flag == 1)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
