阅读背景:

Recursive sequence(HDU5950 矩阵快速幂)

来源:互联网 

题目:

Farmer John likes to play mathematics games with his N cows. Recently, they are attracted by recursive sequences. In each turn, the cows would stand in a line, while John writes two positive numbers a and b on a blackboard. And then, the cows would say their identity number one by one. The first cow says the first number a and the second says the second number b. After that, the i-th cow says the sum of twice the (i-2)-th number, the (i-1)-th number, and Farmer John likes to play mathematics game




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: