I have a problem which I would like to have a general formula for. Here is the description.
There are island aligned by a grid. Every cell contains an island. Every adjacent island is connected by vertical or horizontal bridges. Each bridge has a value. The vertical ones have value of 1. The horizontal ones have a value of the row number in the grid. You start from the left top island which is in the (0,0) position, 0. column and 0. row. You can travel only to the direction of right or down. A route to any islands have a value of multiplying the value of the bridges used in the route. An island has a value of adding up the value of all possible routes leading to the island. Is there a general formula depending on the row and column number? The column No1. has the formula of n*(n+1)/2. But the others are more complex which I couldn't really figure out. I I'm correct, the table looks like this:
0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1
1 3 7 15 31 63
1 6 25 90 301
1 10 65 350
1 15 140
1 21
1
Thank you for the answers!