10698专题

【矩阵快速幂】UVA 10698 G - Yet another Number Sequence

【题目链接】click here~~ 【题目大意】 Let's define another number sequence, given by the following function: f(0) = a f(1) = b f(n) = f(n-1) + f(n-2), n > 1 When a = 0 and b = 1, this sequence gives the