Problems > Sequence h=3a+6b (h0=0,h1=1) > Editorial

Sequence h=3a+6b (h0=0,h1=1) — Solution & Editorial

Back to the Problem

2×2 companion matrix exponentiation.

Complexity: O(log N)