Find a recurrence relation for the number of strictly increasing sequences of positive integers such that the first term is 1 and last term is $n$, where $n$ is a positive integer. The sequence is: $a_1$, $a_2$, $a_3$, ... , $a_k$ and $a_1=1$, $a_k=n$ and $a_{j-1}$ < $a_j$ where $j=1,2,3, ... , k-1$.
Here $a_{j-1}$ means the $(j-1)th$ term of the sequence. The solution considers two cases when $a_{k-1} = n-1$ and when $a_{k-1} < n-1$.
I don't understand why two cases are considered.