Can you complete the following number sequences?
Number Sequence #1:
Number Sequence #2:
Number Sequence #3:
There are different types of number sequences. Let’s investigate the most widely used types of number sequences.
You may want to read this page first: https://www.mathsisfun.com/numberpatterns.html
An Arithmetic Sequence is made by adding the same value each time. When creating an arithmetic number sequence you have to decide of a starting number (e.g. “2”) and an increment (e.g. “3”)
A Geometric Sequence is made by multiplying by the same value each time.
When creating a geometric number sequence you have to decide of a starting number (e.g. “2”) and a multiplier (e.g. “3”)
This sequence consists of calculating the squares of whole numbers.
This sequence is generated by adding an “increasing” number, that is a number that each time is incremented by 1 as we progress through the number sequence. Not clear? Check the diagram below.
The Fibonacci Sequence is found by adding the two numbers before it together.
- The 3 is found by adding the two numbers before it (1+2)
- The 5 is found by adding the two numbers before it (2+3)
- The 8 is found by adding the two numbers before it (3+5)
In this challenge, we are writing a Python script to help us find the nth term of a number sequence.
We have completed the Python code to find out the nth term of an arithmetic number sequence:
Your challenge is to tweak this code to help find out the nth term of any:
- Geometric Sequence
- Square Number Sequence
- Incremental Sequence
- Fibonacci Numbers Sequence