from sys import stdin import heapq def inputSynario(): input = stdin.readline num_list = [] T = int(input().rstrip()) for i in range(T * 2): num_list.append(list(map(int, input().rstrip().split()))) return num_list synario = inputSynario() for synarioId in range(len(synario)//2): N=synario[synarioId * 2] A=synario[synarioId * 2 + 1] dangoCountSum = sum(A) if(dangoCountSum % 3 == 0): kushiCount = dangoCountSum // 3 if(max(A) <= kushiCount): print("Yes") continue print("No")