#include <bits/stdc++.h>
using namespace std;
int t, n, a;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    bool ok[200005];
    memset(ok, 0, sizeof ok);
    for (int i = (int)0; i <= (int)n - 1; i++) {
      cin >> a;
      a += i;
      a += (1e9 / n) * n;
      a %= n;
      ok[a] = 1;
    }
    bool can = true;
    for (int i = (int)0; i <= (int)n - 1; i++)
      if (!ok[i]) can = false;
    if (can)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
