1. 程式人生 > >CodeForces-450B Jzzhu and Sequences【數列+矩陣快速冪】

CodeForces-450B Jzzhu and Sequences【數列+矩陣快速冪】

Jzzhu has invented a kind of sequences, they meet the following property:

You are givenxandy, please calculatefnmodulo1000000007(109 + 7).