Resource · Guide or article
Fibonacci Number
Introduces the Fibonacci sequence, where each term sums the previous two, with tiling and spiral pictures.
Reviewed
Open the original: Fibonacci Number (opens the original site in a new tab)Add to a roadmap
Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.
Source content: English
Read this in other languages: français, 简体中文, ქართული. In mathematics, the Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ...
PrepKit overview
PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.
- Suited to
- The source does not state a level
- Format
- Reference
What it covers
- The sequence definition and its first terms up to 144
- Images of the Fibonacci square tiling and the spiral that approximates the golden spiral
How to use it
PrepKit study advice, not a claim made by the source.
Write naive recursion, memoized recursion and a loop, and count calls for n = 30 so you can explain the blow-up.
Scope and limitations
Definition and pictures only: no algorithm, complexity or closed form, and a stray citation marker [4] remains in a caption.
Access and format
Free English README on GitHub in the MIT-licensed trekhleb/javascript-algorithms repository.
Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 85293e3e2b88
Evidence behind this overview
- src/algorithms/math/fibonacci/README.md
Pages that include this
Get the PrepKit newsletter
Optional. You don't need it to use PrepKit.