#include<bits/stdc++.h>
using namespace std;
int main(){
  int T;
  cin>>T;
  while(T--){
    int N;
    cin>>N;
    vector<int>A(N);
    long long sum=0;
    for(int i=0;i<N;i++){
      cin>>A[i];
      sum+=A[i];
    }
    bool ok=true;
    if(sum%3!=0){
      ok=false;
    }else{
      sum/=3;
      for(int i=0;i<N;i++){
        if(A[i]>sum){
          ok=false;
          break;
        }
      }
    }
    if(ok){
      cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
    }
  }
}