Time limit
1000 ms
Memory limit
262144 kB
Source
Codeforces Round #230 (Div. 1)
Tags
combinatorics math matrices
Descriptions:

Yet Another Number Sequence

CodeForces - 392C