#include <bits/stdc++.h>
using namespace std;
bool Tag[222222];
int Arr[222222];
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    for (int i = 0; i < N; ++i) cin >> Arr[i];
    for (int i = 0; i < N; ++i) Tag[i] = 0;
    for (int i = 0; i < N; ++i) {
      Arr[i] = (Arr[i] + 1000000000) % N;
    }
    for (int i = 0; i < N; ++i) {
      Tag[(i + Arr[i]) % N] = 1;
    }
    bool Found = 1;
    for (int i = 0; i < N; ++i) Found &= Tag[i];
    puts(Found ? "YES" : "NO");
  }
}
