Practical suggestion for solution of problem


#1

If some one is stuck I would suggest make A*B matrix with small values of A and B. write how many ways are possible to reach each cell . You will see, it will form pascal’s triangle diagonally.