The Fibonacci Sequence

Efficient computation of Fibonacci and Lucas numbers

Download
Download

You are now following this Submission

Cite As

John D'Errico (2026). The Fibonacci Sequence (https://www.mathworks.com/matlabcentral/fileexchange/34766-the-fibonacci-sequence), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: image segmentation

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.2.0

Final version.

Download
2.1.0

Uploaded the wrong version as version 2.0. 2.1 is correct

Download
1.1.0

Allows efficient computation of the modulus of large Fibonacci/Lucas numbers.

Download
1.0.0

Repaired a bug in computing the mods of Fibonacci & Lucas numbers

Download