The Fibonacci Sequence
Efficient computation of Fibonacci and Lucas numbers
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
- Version 2.2.0 (1.03 MB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 2.2.0 | Final version. |
||
| 2.1.0 | Uploaded the wrong version as version 2.0. 2.1 is correct |
||
| 1.1.0 | Allows efficient computation of the modulus of large Fibonacci/Lucas numbers. |
||
| 1.0.0 | Repaired a bug in computing the mods of Fibonacci & Lucas numbers |