SOLUTION: What's the equation for the following sequence: 2, 5, 6, 11, 12, 19, 20?

Algebra ->  Sequences-and-series -> SOLUTION: What's the equation for the following sequence: 2, 5, 6, 11, 12, 19, 20?       Log On


   



Question 893471: What's the equation for the following sequence:
2, 5, 6, 11, 12, 19, 20?

Answer by Edwin McCravy(20056) About Me  (Show Source):
You can put this solution on YOUR website!

x| 1| 2| 3| 4| 5| 6| 7|
-|--|--|--|--|--|--|--|
y| 2| 5| 6|11|12|19|20|

(1,2), (2,5), (3,6), (4,11), (5,12), (6,19), (7,20)

Taking the points where x is odd:

We find the quadratic equation through 

(1,2), (3,6), (5,12), (7,20)  

by substituting three of those points in y = ax˛+bx+c

y+=+%28x%5E2%2B4x%2B3%29%2F4

Similar we take the points where x is even and find the
quadratic equation through 

(2,5), (4,11), (6,19) where x is even

y+=+%28x%5E2%2B6x%2B4%29%2F4

We compare the two quadratic equations:

When x is odd the coefficient of x in the parentheses is 4, and
when x is even the coefficient of x in the parentheses is 6

The average of 4 and 6 is 5

4 = 5-1 and 6 = 5+1

So the coefficient of x is 5+(-1)x in either case

---

When x is odd, the constant term in the parentheses is 3, and
when x is even, the constant term in the parentheses is 4

The average of 3 and 4 is 7/2

3 = 7/2-1/2 and 4 = 7/2+1/2

the constant term in the parentheses is 7/2+1/2(-1)x in either case

So the general term is

y+=+%28x%5E2%2B%285%2B%28-1%29%5Ex%29x%2B7%2F2%2B%281%2F2%29%28-1%29%5Ex%29%2F4

which simplifies to

y=%282x%5E2%2B%282x%2B1%29%28-1%29%5Ex%2B10x%2B7%29%2F8

In sequence notation we replace y by an and x by n

a%5Bn%5D=%282n%5E2%2B%282n%2B1%29%28-1%29%5En%2B10n%2B7%29%2F8

Edwin