nth fibonacci number in sublinear time

Following from Pillsy’s reference to matrix exponentiation, such that for the matrix M = [1 1] [1 0] then fib(n) = Mn1,2 Raising matrices to powers using repeated multiplication is not very efficient. Two approaches to matrix exponentiation are divide and conquer which yields Mn in O(ln n) steps, or eigenvalue decomposition which is constant … Read more