Question 79
Marina fills the cells of a $4 \times 4$ grid by writing in each of them the number $1$, the number $2$ or the number $3$. In how many ways can the grid be filled so that the sum of each row and the sum of each column are divisible by $3$?
(A) $3^{8}-1$
(B) $3^{8}$
(C) $2 \cdot 3^{8}$
(D) $3^{9}$
(E) None of the above
(A) $3^{8}-1$
(B) $3^{8}$
(C) $2 \cdot 3^{8}$
(D) $3^{9}$
(E) None of the above