1

Sorry, my previous question got deleted.

If I have a grid $N \times M$, and an alphabet of $S$ characters which can populate the grid, how many possibilities are there?

So if I had a $1\times 3$ and my alphabet was $\{A\}$, I would only have $\{A,A,A\}$, but if I had the alphabet $\{A,B\}$ I could have $\{A,A,A\}, \{B,B,B\}, \{A,B,B\}, \{B,A,A\}, \{A,A,B\}$, $\{B,B,A\}, \{A,B,A\}$, and $\{B,A,B\}$.

The answer given in my deleted question was $N\times M\times S$, but I don't think this is correct.

Is it $S ^{N\times M}$?

Brian M. Scott
  • 616,228

0 Answers0