Sets, Relations & Functions

Answer & solution
Official answer: B; C
There are 3n² matrices because each of n² entries has 3 choices. There are also 3n² functions from an n²-element domain to a 3-element codomain. A direct bijection reads matrix entries in a fixed order and maps a, b, c to 0, 1, 2. A bijection is also a surjection and an injection, so B, C.
Explicitly index matrix position (i,j), for zero-based i,j, by i*n+j. Map its symbol a,b,c to the function value 0,1,2. The inverse reconstructs each entry from that value, proving both injectivity and surjectivity without relying only on equal counts. A and D negate properties that this construction supplies.