I was helping out a student in a Maths Olympiad and I'd like to know if there's a better way to solve this problem.
(Source: International Mathematics Assessment for Schools, First Round, Upper Primary Division, Question 24)
Let $a_1, a_2, a_3, a_4, a_5, a_6, a_7, a_8, a_9$ be distinct non-zero digits such that:
- $a_1 < a_2 < a_3 < a_4 < a_5$
- $a_1 < a_6, a_2 < a_7, a_3< a_8$ and $a_4 < a_9$
How many different ways are there to assign the values to $a_1, a_2, a_3, a_4, a_5, a_6, a_7, a_8, a_9$?
Our attempt: $a_1 = 1$, possible values for $a_2$ to $a_5$ are the following:
$a_2$: 2 and 3
$a_3$: 3, 4, 5
$a_4$: 4, 5, 6, 7
$a_5$: 5, 6, 7, 8, 9
We then listed all the possible cases starting from $a_1$ to $a_4$ and tallied them together. For example, in the sequence 1, 2, 3, 4,..., digits 5 to 9 can be arrange in 5! ways.
We got the correct answer of 384 ways.
Ways to improve our solution would be greatly appreciated.