Problem
$A = \{1, 2, 3, 4\}$
$B = \{1, 2, 3, 4, 5\}$ Find the number of mappings from A to B such that $f(i)\le f(j)$ for all $i<j$.
My approach:
The required set of functions= $\{\text{Set of total possible of functions}\}\setminus\{\text{Functions such that $f(i)>f(j)$ for $i<j$}\}$
- (i)
The number of possible functions would be $5 \times 5 \times 5 \times 5 = 625$.(There are $5$ mappings possible for each one of them.)
- (ii)To find the number of functions such that $f(i)>f(j)$ for $i < j$, I can choose any four elements from $B$ in $C(5,4)$ ways. This will have only one decreasing order and only one arrangement is possible out of every set of elements I will choose. I will therefore have $5$ such functions.
So the required number of functions would be $625-5 = 620$ which largely differs from the answer stated by my textbook, i.e. $70$.
Please help me out.