Skip to content

Commit 70f0091

Browse files
authored
Create README file.
Add readme file for algorithm description.
1 parent 52a43b4 commit 70f0091

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# basic-algorithm
2+
Fibonucci
3+
4+
The Fibonacci Numbers is a sequence of numbers in the following order: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34...
5+
The next number is found by adding up the two numbers before it. The formula for calculating these numbers is:
6+
7+
F(n) = F(n-1) + F(n-2)
8+
9+
where:
10+
11+
F(n) is the term number.
12+
F(n-1) is the previous term (n-1).
13+
F(n-2) is the term before that (n-2).
14+
15+
By definition, the first two numbers in the Fibonacci Sequence are either 0 and 1, or 1 and 1, depending on the chosen starting point of
16+
the sequence and each subsequent number is the sum of the previous two numbers.

0 commit comments

Comments
 (0)