It is well known that a straightforward implementation of the recurrence
formula leads to a very bad algorithm, whose complexity is
big integer operations. On the other hand, combining
with a fast exponentiation algorithm leads to a complexity in
big floating point operations. In the (genuine) Fibonacci case, the
fact that
leads to the even simpler result :
We will see now that the former results can be used to obtain an algorithm
whose complexity is
big integer operations. The expansion
Eq. 12 allows to consider only the (generalized)
Fibonacci sequence. From Eq. 16, this specific sequence
verifies :
Another way to derive these divide and conquer formulae can be obtain when prooving :
Let
and
be respectively any solution of
Eq. 4 and the associated Fibonacci sequence. Then,
for all indices, we have :
em If we substitute
in Proposition 5,
both Eq. 19 and Eq. 20 turn into :
Taking
, we obtain what looks like a "linearization",
but this doesn't contradicts the negative result stated in sub:Essentially-different-relations
since the sum Eq. 24 doesn't involves a fixed
number of terms. On the other hand, taking
, then
and substracting gives another proof of the well known Eq. 9.
The special case
has been escaped until here. Let
us now describe how to deal with this special case. Concerning the
generating finction, the substitution
into
Eq. 6 followed by a first order Taylor expansion
in
leads to :
Applying the same method to the squared sequence, we obtain :