In the card game Set, each card features a number of shapes, with four attributes: There is only 1 card for each possible combination of attributes. For more information about the game: go here.
Questions:
Find the number of sets where all three cards are the same for exactly $0$ attributes.
Find the number of sets where all three cards are the same for exactly $1$ attribute.
Find the number of sets where all three cards are the same for exactly $2$ attribute.
Find the number of sets where all three cards are the same for exactly $3$ attribute.
Hint: Each possible set with $k$ attributes that are the same can be uniquely constructed as follows:
For example, in the case where $k = 3$, each set can be constructed with the following procedure
Thus, we find that all together there are $$ 4 \times 27 = 108 $$ sets that can be constructed in which $3$ attributes are the same.