How to add Consecutive numbers
What are consecutive number
A sequence of numbers is a sequence of numbers where there is the same difference between each term.
Flowchart
Python Source Code for Sum of Consecutive Numbers
Mathematical Formula to Derive Sum of Consecutive Numbers
Firstly, let the whole sum be 'S'
Next, Rewrite S in reverse order
Now, Add the two equations, term by term
Each term is the same , and there are 100 of them.
Therefore we can simplify it to:
So, we can derive the formula for the sum of numbers from 1 to any number as
Comments
Post a Comment