/// <summary>
/// 一列数的规则如下: 1、1、2、3、5、8、13、21、34…… (用递归算法)
/// </summary>
/// <param name=”length”></param>
/// <returns></returns>
public int MathP(int length)
{
int[] iArray = new int[length+1];
iArray[0] = 0;
iArray[1] = 1;
for (int i = 2; i <= length; i++)
{
iArray[i] = iArray[i – 1] + iArray[i – 2];
}
return iArray[length];
}