0% found this document useful (0 votes)
26 views8 pages

Algorithm On Finding Sum of A Series

The document discusses finding the sum of a geometric progression series. It defines what a number series is and provides examples of arithmetic, geometric and harmonic progressions. It presents the problem of finding the sum of the geometric progression series 1,2,2,3,3,3,4,4,4,4... up to a user input number n. An algorithm and flowchart are provided that initialize sum and i, iteratively calculate each term and add it to the sum, and print the final sum once i exceeds n.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views8 pages

Algorithm On Finding Sum of A Series

The document discusses finding the sum of a geometric progression series. It defines what a number series is and provides examples of arithmetic, geometric and harmonic progressions. It presents the problem of finding the sum of the geometric progression series 1,2,2,3,3,3,4,4,4,4... up to a user input number n. An algorithm and flowchart are provided that initialize sum and i, iteratively calculate each term and add it to the sum, and print the final sum once i exceeds n.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Finding the Sum of a Series

Presented by-
Contents

1) Concept of a Number Series


2) Comparative Analysis-A.P. Vs G.P. Vs H.P.
3) Problem statement for this assignment
4) Algorithm
5) Flowchart
Concept of a Number Series

A mathematical series is the sum for all the numbers


arranged in a specific sequence where a sequence is an
ordered list of numbers arranged in a particular way.

There are many types of mathematical series. Some of the


common series are:-
Arithmetic Progression Series
Geometric Progression Series
Harmonic Progression Series

1
Comparative Analysis – AP Vs GP Vs HP
Arithmetic Geometric Harmonic
Progression Series Progression Series Progression Series
A sequence of The geometric A sequence of
numbers is called progression series is numbers is called
an arithmetic a sequence of a Harmonic
progression if the numbers in which progression if the
difference between each term of the reciprocal of the
any two consecutive progression is a terms of a sequence
terms is constant. constant multiple of are in arithmetic
the previous term. progression.
Example- Example- Example-
1,2,3,4,5,6… 3,9,27,81,243…. 1/5,1/10,1/15,1/20…

2
Problem Statement for this Assignment
To solve this problem, we have chosen the following
G.P. series :- 1,2,2,3,3,3,4,4,4,4…….n

Here, n is an user input and must be a positive integer


number.

Now, if n = 5, then
The series will be: 1,2,2,3,3,3,4,4,4,4,5,5,5,5,5
Thus, the sum of the series will be:
1+2+2+3+3+3+4+4+4+4+5+5+5+5+5 = 55
3
Algorithm

1. START
2. Declare variable n, sum and i
3. Read the value of n
4. Assign sum = 0 and i = 1
5. sum = sum + (i*i)
6. i = i+1
7. If (i<=n), return to step no. 5
8. Print sum
9. STOP
4
Flowchart
START

Declare variables n, sum and i

Read n

sum=0, i=1

sum=sum+(i*i)

i=i+1

Is i<=n Y

N
print sum

STOP
5
THANK YOU

You might also like