Problem

Source: Croatia 1999 4th Grade P2

Tags: combinatorics



Let $n>1$ be an integer. Find the number of permutations $(a_1,a_2,\ldots,a_n)$ of the numbers $1,2,\ldots,n$ such that $a_i>a_{i+1}$ holds for exactly one $i\in\{1,2,\ldots,n-1\}$.