[Math] Find the number of increasing functions from $\{ 1,2,3,4,5\}$ to $\{ 6,7,8,9,10\}$.

functions

Find the number of increasing functions (not strictly increasing) from $\{ 1,2,3,4,5\}$ to $\{ 6,7,8,9,10\}$.

There is only one strictly increasing function possible. How do I calculate the others? In all my attempts I was eventually listing down the cases and then adding up all of them, only to get the wrong answer. Is there a nice method?

Best Answer

A hint: You can encode each such function as a binary word containing five stars and four bars, like so: $$*\>|\ |**\>|**|\quad.$$