I dont know how to calculate first n term summary when we have quadratic sequence

exm.c1- 1 1 2 8 64 ....

b1 1 2 4 8 16

q 2 2 2 2

## 12 Replies - 374 Views - Last Post: 04 November 2017 - 11:43 AM

### #1

# Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 11:10 AM

##
**Replies To:** Is anyone here? I need help to calculate quadratic sequence

### #2

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 11:10 AM

Yes people are here.

What have you tried?

What have you tried?

### #3

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 11:14 AM

I tried to use for loop but teacher said i have to find out first n term sum formula it helps program to work more fast. But i dont know how to find in internet because of my bad english

Do you know whats the name of this sequence?

Do you know whats the name of this sequence?

### #4

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 12:52 PM

I have no idea what you are talking about you must give us

There is no such thing as a

https://en.wikipedia.../wiki/Quadratic

Pick one of the terms used here....

**exactly**the terms used by your teacher word for wordThere is no such thing as a

**Quadratic sequence**

https://en.wikipedia.../wiki/Quadratic

Pick one of the terms used here....

### #5

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 01:18 PM

Quadratic sequence

There is also a stack overflow answer that gives the formula for the sum of the the first n terms of a quadratic sequence.

That is the first time I have heard of a quadratic sequence. Must be a relatively new thing because even my math and calculus teachers who love to teach us all kinds of esoteric stuff never covered this.

On the other hand, suddenly that sequence (3, 8, 15, 24) looks familiar. I saw that sequence in an interview question which asked me to provide the next number in the series. I burned half an hour on that question. (I skipped ahead to the other questions and came back to this one to use up the rest of the hour.)

There is also a stack overflow answer that gives the formula for the sum of the the first n terms of a quadratic sequence.

That is the first time I have heard of a quadratic sequence. Must be a relatively new thing because even my math and calculus teachers who love to teach us all kinds of esoteric stuff never covered this.

On the other hand, suddenly that sequence (3, 8, 15, 24) looks familiar. I saw that sequence in an interview question which asked me to provide the next number in the series. I burned half an hour on that question. (I skipped ahead to the other questions and came back to this one to use up the rest of the hour.)

### #6

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 01:23 PM

Oh thanks for that... still quadratic equations yes quadratic variance yes...

but I had never heard the term quadratic sequence you live and learn I suppose...

but I had never heard the term quadratic sequence you live and learn I suppose...

### #7

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 03 November 2017 - 01:34 PM

Anyway according to the bbc page you posted the equation the OP is looking for is this

Equation:

Equation:

**an**^{2}+**b**
This post has been edited by **snoopy11**: 03 November 2017 - 01:34 PM

### #8

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 04 November 2017 - 08:11 AM

That finds the n-th term. The OP is seeking to find the sum up to the n-term without using iterative approaches according to post #3.

### #9

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 04 November 2017 - 08:15 AM

Oh I see so the sum of all the nth terms then.... worse.. poor OP what a question...

### #10

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 04 November 2017 - 08:23 AM

As I mentioned, there is a proposed solution in StackOverflow. From what I recall, the solution proposed there only deals with the case when a = 1, and b = 0, but I didn't look too closely. What was nice was that it walked through the derivation of the equation, so the same analysis could be performed for other values of a and b if one is patient and not looking for a gimme-the-codez.

### #11

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 04 November 2017 - 08:33 AM

Well it should be possible to sum the terms up.. for all a n and b rather than just a specific case I will think on it...

Research is always the key to these kind of problems,...

Research is always the key to these kind of problems,...

### #12

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 04 November 2017 - 09:05 AM

I found the general equation for the form

it is this....

in code this means a sum variable and a loop variable from

summing all n terms up...

**an**^{2}it is this....

in code this means a sum variable and a loop variable from

**1**to**a**.....^{2}summing all n terms up...

### #13

## Re: Is anyone here? I need help to calculate quadratic sequence

Posted 04 November 2017 - 11:43 AM

+1. And the constant part is easy.

Page 1 of 1