Problems > Recurrence f=2a+2b > Editorial

Recurrence f=2a+2b — Solution & Editorial

Back to the Problem

Exponentiate the 2×2 companion matrix in O(log N).

Complexity: O(log N)