There is a bug at the origin. It wants to get to $(8, 8)$. It can move either one unit to the right or one unit upwards. If the bug is on a point $(x,y)$ and if $x+y$ is an even number, the bug can move diagonally i.e. go to the point $(x+1,y+1)$. In how many ways can the bug reach $(8,8)$?
If the even sum condition wasn't imposed, the bug goes to $(8,8)$ in $\frac{16!}{(8!)^2}$. This is done using binary systems. My approaches included putting 2's in places which had an even number of 1's and zero's preceding it. However, the number of pathways explodes very quickly and it just became unviable to try that method. Any advice towards a more efficient method would be appreciated.
The plan is to expand upon the idea and generalize it to any point $(h,k)$.
