Ques : Let $N$ be the number of functions $f: \{1, 2, 3,\dots, 2018\} \to \{1, 2, 3,\dots, 2018\}$ satisfying $f(j) < f (i) + j - i$ for all integers $i,j$ such that $1 \leq i < j \leq 2018$. Find $N$.
My development so far : difference of elements' value in domain is strictly greater than that in Co domain. Hence every consecutive number should be mapped to a lesser or equal number the previous number is mapped to. Hence the function should be non-strictly decreasing.