Problems
Contests
Account
Problems
> Sequence g=5a+3b (g0=g1=1) > Editorial
Sequence g=5a+3b (g0=g1=1) — Solution & Editorial
Back to the Problem
Exponentiate the 2×2 companion matrix in O(log N).
Complexity:
O(log N)
×
Refer Job