I'm trying to count the number of paths from $(0,0)$ to $(n,k)$, ($n,k> 0$) when only diagonal and vertical moves are allowed. I know that if only horizontal and vertical moves are allowed than its $n+k \choose n$, but can it help solving the question?
edit: by diagonal moves I mean moves from $(x,y)$ to $(x+1,y+1)$.
This problem is quite simple. Note that reaching from $(0,0)$ to $(n,k)$ requires $n$ horizontal steps and $k$ vertical steps.
But, regardless of whether you take a vertical or a diagonal step, the $y$ coordinate of your position always increases by $1$. Therefore, it will take you exactly $k$ steps to reach your position.
But then, you can decide, out of these $k$ steps, which $n$ of these should be diagonal, and which should be only vertical.
Therefore, the following statement is true:
Therefore, the answer is just $\binom kn$(exclaim).
Note : a similar argument applies for the only "horizontal and vertical steps allowed" problem, since there you must reach your target in $n+k$ steps, out which you can choose the $n$ horizontal, or $k$ vertical ones, giving the answer $\binom{n+k}{n} = \binom{n+k}{k}$.