计算Pascal三角形深对角线的算法

时间:2014-02-18 18:51:33

标签: algorithm combinatorics pascals-triangle

鉴于Pascal三角形的深对角线:

          1
        1   1
      1   2   1
    1   3   3   1
  1   4   6   4    1
1   5   10  10   5   1

1st diagonal: 1 1 1 1 1 ...
2nd diagonal: 1 2 3 4 5 ...
3rd diagonal: 1 3 6 10 15 ...
4th diagonal: 1 4 10 20 35 ...

是否存在从任何第i个对角线计算前k个项的算法?

1 个答案:

答案 0 :(得分:-1)