How can interpolation be used to find a polynomial formula for G(n)?

  • Thread starter Thread starter KLscilevothma
  • Start date Start date
  • Tags Tags
    Interpolation
KLscilevothma
Messages
315
Reaction score
0
Find a formula to calculate G(n) and it should be a polynomial of degree 4.

G(n) = 1/6(0)(0-1)(0-2) + 1/6(1)(1-1)(1-2)+...+1/6(n-1)(n-2)(n-3)

I know
G(0)=G(1)=G(2)=G(3)=0
G(4)=1
G(5)=1+3
G(6)=1+3+6
G(7)=1+2+3+10
G(8)=1+3+6+10+15 (sum of triangle numbers)

What should I do to find out the forumla? I think it is some kind of interpolation formula.
 
Mathematics news on Phys.org
G(n) = SUM[ (1/6)(k-1)(k-2)(k-3) , k=1..n] ..rewrite function
G(n) = (1/6) SUM[ (k-1)(k-2)(k-3) , k=1..n] ..extract constant
G(n) = (1/6) SUM[ (k3-6k2+11k-6) , k=1..n] ..expand the general term on inside
G(n) = (1/6)( SUM[k3, k=1..n] - SUM[6k2, k=1..n] + SUM[11k, k=1..n] - SUM[6, k=1..n] ) ..add sums separately
G(n) = (1/6)( n2(n+1)2/4 - 6n(n+1)(2n+1)/6 +11n(n+1)/2 -6n ) ..rewrite sums
G(n) = (1/24)n4 - (1/4)n3 + (11/24)n2 - (1/4)n ..expand

Your G(n) values do not agree for n > 4. Take for instance G(5) = (1/6)(4-1)(4-2)(4-3) + (1/6)(5-1)(5-2)(5-3) = 1 + 4 = 5
 
Originally posted by suffian
G(n) = SUM[ (1/6)(k-1)(k-2)(k-3) , k=1..n] ..rewrite function
G(n) = (1/6) SUM[ (k-1)(k-2)(k-3) , k=1..n] ..extract constant
G(n) = (1/6) SUM[ (k3-6k2+11k-6) , k=1..n] ..expand the general term on inside
G(n) = (1/6)( SUM[k3, k=1..n] - SUM[6k2, k=1..n] + SUM[11k, k=1..n] - SUM[6, k=1..n] ) ..add sums separately
G(n) = (1/6)( n2(n+1)2/4 - 6n(n+1)(2n+1)/6 +11n(n+1)/2 -6n ) ..rewrite sums
G(n) = (1/24)n4 - (1/4)n3 + (11/24)n2 - (1/4)n ..expand

Thank you. I think this is one of the ways to tackle this problem. After reading my notes carefully, I think we can do the question by using "interpolation" method as follows:
G(1)=G(2)=G(3)=0
G(4)=1
G(5)=5
Since G(1)=G(2)=G(3)=0, (x-1), (x-2) and (x-3) are factors of G(n). Since the formula that we need to find is of degree 4, therefore G(n)=(an+b)(n-1)(n-2)(n-3). By using G(4)=1 and G(5)=5, we know G(n)=1/24n(n-1)(n-2)(n-3), which is exactly the answer that you get.

Your G(n) values do not agree for n > 4. Take for instance G(5) = (1/6)(4-1)(4-2)(4-3) + (1/6)(5-1)(5-2)(5-3) = 1 + 4 = 5
Usually I can't do simple arithmatic correctly.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top