For years, telephone area codes in the USA and Canada consisted of a sequence of three digits. The first digit was an integer between 2 and 9, the second digit was either 0 or 1, and the third digit was any integer from 1 to 9. How many area codes were possible? How many area codes starting with a 4 were possible?
Can someone help me with this problem, please? And could you tell me how to understand and a proceed quite easily with combinatorial problems like these? I'm having a hard time solving even a couple of problems. Thank you in advance! :)
Apply the rule of product which can be paraphrased for counting problems to be the following:
This is just formalizing what you should already know about areas of grids and such and extending to higher dimensions and giving it combinatorial flavor and context. The number of ways you could have a letter from $\{A,B,C,D\}$ followed by a number from $\{1,2,3\}$ would be $4\times 3=12$, which you should be able to verify by looking at the grid:
$$\begin{array}{r|ccc}&1&2&3\\\hline A&A1&A2&A3\\B&B1&B2&B3\\C&C1&C2&C3\\D&D1&D2&D3\end{array}$$
For your problem, we break it up via rule of product by defining the steps to be:
Multiplying the number of options for each step gives the result.
For the second part of the problem, the first step will have a different number of options available.
As an additional example to highlight that the options themselves can change, the number of permutations of $1234$ (1234,1243,1324,1342,1423,1432,...) will be $4!=4\times 3\times 2\times 1=24$. This is seen by the following steps:
which, when multiplying the number of options available at each step gives what should be a familiar answer of $4\times 3\times 2\times 1=4!$