| Thread Closed |
Solve formulas containing the floor function |
Share Thread | Thread Tools |
| Jul24-07, 02:01 PM | #1 |
|
|
Solve formulas containing the floor function
Is there a kosher way of manipulating formulas containing floor truncation, say,
[tex] \sum_{i=1}^n \left [ ~ { 333 \over 2^i } ~ \right ] ~=~ ? [/tex](I mean analytically, not writing a computer program to find out the result.) Thanks. |
| Jul24-07, 03:31 PM | #2 |
|
|
|
| Jul24-07, 04:27 PM | #3 |
|
|
Thanks for your reply, Kummer.
The problem being that a computer program is not a proof, or at least not for an arbitrary n in the example above. (Actually it was a bad example because the 333 constant limits the useful values of n; let's say it's not a prove for arbitraries n and constant. But you get the idea.) |
| Jul25-07, 11:23 AM | #4 |
|
|
Solve formulas containing the floor function
for n >= 9 that sum is 328, but i got that by summing the terms before the argument was less than 1. it seems like there should be a better way to do it. i'll think about it.
|
| Jul25-07, 12:28 PM | #5 |
|
Recognitions:
|
Write
[tex]a=a_0+2\cdot a_1+2^2\cdot a_2+\cdots+2^k\cdot a_k[/tex] Then [tex]f(a, n) = \sum_{i=1}^n \frac{a}{2^i} = \sum_{i=1}^ka_i\cdot\frac12i(i+1)/2[/tex] for n > i. |
| Jul25-07, 02:53 PM | #6 |
|
|
|
| Jul26-07, 02:36 PM | #7 |
|
Recognitions:
|
|
| Jul27-07, 01:10 AM | #8 |
|
|
There's a confusion here, CR: the square brackets in the first post are meant to mean "floor truncation", which effectively blocks many of the manipulations one is able to do.
So the solution for n>8 is in fact exactly the same as for n=8, for the a=333 case. For arbitrary a, it is not that clear. |
| Jul27-07, 07:31 AM | #9 |
|
Recognitions:
|
The whole point of this formula is to get some kind of analytical formula (useful if the bits of the number have some special form). Perhaps other forms can be generalized from here -- but this is at least a starting point. |
| Jul27-07, 05:11 PM | #10 |
|
|
As a side note, the reason why I posted this in the Number Theory thread is that, when there is a division involved inside the truncation, I smelled congruency somewhere. The given example becomes
[tex]\sum_{i=1}^n \left [ f(i) \over g(i) \right ] = \sum_{i=1}^n { f(i) \over g(i) } - \sum_{i=1}^n { \left ( f(i) ~mod~ g(i) \right ) \over g(i) }[/tex] which I'm not sure it's more tractable than the original, since the modulo operation is nearly as blocking as the truncation. |
| Jul30-07, 03:00 AM | #11 |
|
|
Oh, and thanks CR for that binary decomposition trick. Indeed very clever. Though I still can't figure out how you got the compact expression above. The presence of i(i+1)/2 would suggest that some sum of integers is done somewhere, but I still don't get it.
It does have the defect of assuming you know beforehand the a_i, which is tantamount of knowing beforehand the results of the truncations. If you don't know their values, it just adds a lot of new variables. It does say something new about the structure of the expression, which is the good part and might perhaps be useful in some context. |
| Thread Closed |
| Thread Tools | |
Similar Threads for: Solve formulas containing the floor function
|
||||
| Thread | Forum | Replies | ||
| Apostol & floor function problem | Calculus & Beyond Homework | 4 | ||
| Is this a necessary and sufficent condition for the floor function? | Calculus & Beyond Homework | 2 | ||
| Absolute value and the floor function... | General Math | 6 | ||
| Error Function & Imaginary Error Function - Formulas | Set Theory, Logic, Probability, Statistics | 0 | ||
| Please help with simplfying a floor/ceiling function | General Math | 1 | ||