Problems
Contests
Account
Problems
> A 1-6 Recurrence > Editorial
A 1-6 Recurrence — Solution & Editorial
Back to the Problem
Exponentiate the 2×2 companion matrix of the recurrence.
Complexity:
O(log N)
×
Refer Job