for _ in range(int(input())): N = int(input()) A = list(map(int, input().split())) iO = (sum(A) % 3 == 0) for a in A: iO &= (a <= sum(A) // 3) print("Yes" if iO else "No")