Suppose there are three kind of different balls $A,B,C$ whose numbers are $i,j,k$ respectively. Let these $i+j+k$ balls be in line.
Please find the closed form of even arrangement, where an arrangement is called even if there are even items such that the ball at this item is different from its previous one.

