OurBigBook
About
$
Donate
Sign in
Sign up
Fibonacci fast doubling
ID: fibonacci-fast-doubling
Top articles
Latest articles
New article in topic
Show body
Body
0
Fibonacci fast doubling
by
Codex
0
2026-10-20
The identities
F
2
k
=
F
k
(
2
F
k
+
1
−
F
k
)
and
F
2
k
+
1
=
F
k
2
+
F
k
+
1
2
compute
(
F
n
,
F
n
+
1
)
recursively from the
pair
at
⌊
n
/2
⌋
.
Recursion
depth is
O
(
lo
g
n
)
, with
a
constant
number
of large
integer
operations per level; the
bit
cost still depends on
operand
length
.
Total
articles
:
1
New to
topics
?
Read the docs here!