Define = number of paths from to cell . This is clean and intuitive. Each cell stores how many ways you can reach it. The answer is .
Notice: you don't need to track which path you took. You only care about how many paths reach each cell. The state is enough because movement is restricted to right and down. No extra information is needed to decide the transitions.