Introduction
In this project, you will learn how to calculate the sum of the first N (N >= 6) terms of a special number series. This series is defined by the following pattern:
\frac{2}{1} + \frac{3}{2} + \frac{5}{3} + \frac{8}{5} + \frac{13}{8} + \frac{21}{13} + ...
The numerators of this series are the Fibonacci numbers (2, 3, 5, 8, 13, 21, ...), and the denominators are also the Fibonacci numbers (1, 2, 3, 5, 8, 13, ...).
ð Preview
$ python3 sum_fib.py
Enter the value of n: 6
Sum of the special series: 10.00705
$ python3 sum_fib.py
Enter the value of n: 20
Sum of the special series: 32.66026
$ python3 sum_fib.py
Enter the value of n: 45
Sum of the special series: 73.11111
ðŊ Tasks
In this project, you will learn:
- How to understand the problem statement and requirements for the project
- How to implement the
sum_fib
function to calculate the sum of the first N terms of the number series
- How to test the
sum_fib
function by running the sum_fib.py
script
- How to explain the logic behind the
sum_fib
function and the underlying Fibonacci number series
ð Achievements
After completing this project, you will be able to:
- Understand and solve problems related to number series and mathematical sequences
- Implement functions to perform calculations on complex number series
- Test and validate your code to ensure it meets the project requirements
- Explain the logic behind your solutions and the underlying mathematical concepts
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
python(("`Python`")) -.-> python/BasicConceptsGroup(["`Basic Concepts`"])
python(("`Python`")) -.-> python/ControlFlowGroup(["`Control Flow`"])
python(("`Python`")) -.-> python/DataStructuresGroup(["`Data Structures`"])
python(("`Python`")) -.-> python/FunctionsGroup(["`Functions`"])
python/BasicConceptsGroup -.-> python/variables_data_types("`Variables and Data Types`")
python/BasicConceptsGroup -.-> python/numeric_types("`Numeric Types`")
python/BasicConceptsGroup -.-> python/type_conversion("`Type Conversion`")
python/ControlFlowGroup -.-> python/conditional_statements("`Conditional Statements`")
python/ControlFlowGroup -.-> python/for_loops("`For Loops`")
python/DataStructuresGroup -.-> python/tuples("`Tuples`")
python/FunctionsGroup -.-> python/function_definition("`Function Definition`")
python/FunctionsGroup -.-> python/build_in_functions("`Build-in Functions`")
subgraph Lab Skills
python/variables_data_types -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/numeric_types -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/type_conversion -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/conditional_statements -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/for_loops -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/tuples -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/function_definition -.-> lab-302776{{"`Sum of a Special Number Series`"}}
python/build_in_functions -.-> lab-302776{{"`Sum of a Special Number Series`"}}
end