Earlier quoted context omitted.
How does that work? Like this? That's not really following the "pattern" though, which is to keep adding 1 down the left edge of the triangle. Choosing to put a 0 in because we ran out of terms in our series is pretty arbitrary. 1 2 4 8 16 31 1 2 4 8 15 1 2 4 7 1 2 3 1 1 0
Difference tables don't operate on a "pattern"- they simply take the difference of the two terms above.
9,73,241,561,1081,1849,_?_
81–90 of 91 posts
Re: 9,73,241,561,1081,1849,_?_
#82Can anyone explain why it takes so long to find the equation differentially? I understand that is subjective, but the 'constants' are only constant from y''' to y''. From y'' to y' the 'constant' is linear (meaning you have to solve for change in y' - y) and the 'constant' is quadratic from y' to y. Basically you can't just integrate each DE and solve for a constant C by finding the value of the lower order DE where…
Re: 9,73,241,561,1081,1849,_?_
#83Re: 9,73,241,561,1081,1849,_?_
#842^3+1^2; 4^3+3^2; 6^3+5^2; 8^3+7^2; 10^3+9^2; 12^3+11^2; ?
Soln: 14^3+13^2 = 2913
Re: 9,73,241,561,1081,1849,_?_
#85I discovered difference tables as a kid, didn't know they were used much, I was modelling motion on a 2D display (an oscilloscope hooked to a P2P11!). Was a lifesaver for quick polynomial evolution - uses only addition, execution time scales linearly with the order of the polynomial. So, how do you go from the difference table "coefficients" to the polynomial?
Integrate the constant 48 back to the series level: 48 -> 48x -> 24x^2 -> 8x^3 Subtract 8x^3 from the series 9 - 8•1^3, 73 - 8•2^3, 241 - 8•3^3 and repeat the whole process on this series for the coefficient of x^2, etc...
Approximately, what the difference table is doing is differentiating until the leading term is constant. If we end up with a constant k levels down, we must have had a.x^k in the polynomial, as the derivative of a.x^k = ak.x^(k-1). Repeating this k times gives constant = a.k!
So the leading coefficient of the polynomial, a = constant/k!
I guess the next step is to subtract the values generated by this term from the sequence, then repeat to find the next term in the polynomial...
Re: 9,73,241,561,1081,1849,_?_
#86I hit my head to wall after reading this. Difference table is a really cool way to solve this kind of questions. I thought "how come I have never learned this difference table before". I could make better points with IQ tests with difference tables :)
Re: 9,73,241,561,1081,1849,_?_
#87Not to be too harsh here, but... I've been using "difference tables" (without calling it that) since I was 10 years old. I don't mean this to be bragging at all, because I didn't think (and still don't think) it was at all remarkable. It's just a basic method of analysis.
Re: 9,73,241,561,1081,1849,_?_
#88Can anyone explain why it takes so long to find the equation differentially? I understand that is subjective, but the 'constants' are only constant from y''' to y''. From y'' to y' the 'constant' is linear (meaning you have to solve for change in y' - y) and the 'constant' is quadratic from y' to y. Basically you can't just integrate each DE and solve for a constant C by finding the value of the lower order DE where…
This is just a sequence being modeled by a polynomial. The point of a "difference table" is that when you take enough levels of differences (if you like you can think of these as analogous in some way to derivatives, insofar as each step of grabbing differences reduces the order of a polynomial sequence by one power, but it's not really necessary), you eventually get down to a constant, from which you can work backwa…
I was using differential equations to find the equation that describes the sequence and I was wondering why the constant that you get when you integrate a function isn't actually a constant after the second integration.
Re: 9,73,241,561,1081,1849,_?_
#89Earlier quoted context omitted.
It's only difficult in general. Nobody says there aren't any easy instances.
Sure, there's a bunch of trivial/easy ones for programs that do almost nothing, but I really wonder if are there any interesting programs for which tight bounds are known?
E.g. see http://en.wikipedia.org/wiki/Primitive_recursive_function
Re: 9,73,241,561,1081,1849,_?_
#90Earlier quoted context omitted.
Sure, there's a bunch of trivial/easy ones for programs that do almost nothing, but I really wonder if are there any interesting programs for which tight bounds are known?
Look at primitive recursive functions. E.g. see http://en.wikipedia.org/wiki/Primitive_recursive_function