The between groups sums of squares in an ANOVA is the squared distance of the group means from the grand mean, multiplied by the number of subjects in each group (for a balanced design)

Between groups sums of squares = 4(