PATH COUNTING · INTERACTIVE WALKTHROUGH

How many paths lead from A to B?

由 A 走到 B,有多少條路?

Move only up or right. At each junction, add the number of ways to arrive from below and from the left.

每步只可向上或向右。到達每個交點的方法數,等於從下方及左方進入的方法數相加。

AB Each circle shows the number of ways to reach that junction · 圓圈數字代表到達該交點的方法數
Starting point / 起點

There is 1 way to start at A.

由 A 出發,只有 1 種起始方式。

Each junction / 每個交點

Add the counts from connected points on the left and below. A missing link contributes 0.

把左方及下方有連線的交點數字相加;沒有連線的一側計作 0。

Answer / 答案

The count at B gives the total: 20 different paths.

B 點的數字就是不同路徑總數:20 條。