Golden and Alternating, fast simple O(lg n) algorithms for Fibonacci

10/31/2010
by   L. F. Johnson, et al.
0

Two very fast and simple O(lg n) algorithms for individual Fibonacci numbers are given and compared to competing algorithms. A simple O(lg n) recursion is derived that can also be applied to Lucas. A formula is given to estimate the largest n, where F_n does not overflow the implementation's data type. The danger of timing runs on input that is too large for the computer representation leads to false research results.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/16/2021

A fast recurrence for Fibonacci and Lucas numbers

We derive the double recurrence e_n = 1/2(a_n-1+5b_n-1); f_n = 1/2(a_n-1...
research
08/02/2022

Sums of k-bonacci Numbers

We give a combinatorial proof of a formula giving the partial sums of th...
research
02/10/2020

Millions of Perrin pseudoprimes including a few giants

The calculation of many and large Perrin pseudoprimes is a challenge. Th...
research
02/23/2023

A fast and simple algorithm for the computation of the Lerch transcendent

This paper deals with the computation of the Lerch transcendent by means...
research
03/20/2018

Eleven Simple Algorithms to Compute Fibonacci Numbers

The Fibonacci numbers are a sequence of integers in which every number a...
research
12/07/2019

Dances between continuous and discrete: Euler's summation formula

Leonhard Euler likely developed his summation formula in 1732, and soon ...
research
11/15/2021

Fast adjoint differentiation of chaos

We devise a fast algorithm for the gradient of the long-time-average sta...

Please sign up or login with your details

Forgot password? Click here to reset