First of all, this may seem very basic for you, but I've never been good at math, and I can't figure this out!
I need to solve the number of sequences that exist under this conditions:
- All sequences are made of four numbers like 0123
- All the numbers must be different
- The first and the last number are on the same horizontal line
- The second and third numbers are on the horizontal line immediately above the first and last number line
This is table that is provided with the problem
[1][2][3]
[4][5][6]
[7][8][9]
[-][0][+]
How many sequences exist under these conditions?
a) 72
b) 90
c) 162
d) 171
As two pairs of different digits must be on the same row, $0$ is excluded.
You can choose the first and last digits freely in the second or third row, which makes $2\cdot3\cdot2$ options, then the second/third digits in the first or second row respectively.
In total,
$$2\cdot3\cdot2\cdot3\cdot2.$$