岚默笙的博客 设该数列的生成函数为 A ( x ) A(x) A(x) Solution 1: 根据我们小学就学过的等比数列求和公式, A ( x ) = 1 − x n 1 − x A(x)=\frac{1-x^n}{1-x} A(x)=1−x1−xn 所以 l i m n → + ∞ A ( x ) = 1 1 − x , ...
「已注销」的博客Fibonacci数列 for k = 1:6 k = int16(k); fprintf('f%d = %d\n', k, Fibonacci(k)); end function fk = Fibonacci(k) assert(isinteger(k) && numel(k)==1 && k>=1); if k > 2 %fk = Fibonacci(k-1) + Fibonacci(k-...