Can You Prove the Floor Function Challenge for Real Numbers?

In summary, the Floor Function Challenge is a mathematical problem that involves finding the largest integer less than or equal to a given number, denoted by the symbol ⌊x⌋. It is different from rounding down as it always rounds down to the nearest integer, even if the decimal part of the number is less than 0.5. The purpose of the challenge is to solve problems in computer programming and can also be applied in mathematical proofs and real-world scenarios. To solve it, one needs to identify the given number and round down using the floor function or mathematical operations. Other names for the floor function include greatest integer function, integer floor function, and integer part function.
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
115
For all real $x$, prove that $\displaystyle\sum_{k=0}^{\infty} \left\lfloor\dfrac{x+2^k}{2^{k+1}}\right\rfloor=\lfloor x\rfloor$.
 
Last edited:
Mathematics news on Phys.org
  • #2
Yes, it's supposed to be a sum, not a limit, in case anyone else was confused (can't believe nobody pointed it out).
 
  • #3
Hi Bacterius,

Yep, you're right...sorry for making such a silly typo and thanks for pointing it out!

I've just fixed the typo. Thanks again.:)
 
  • #4
Let $x$ be real, $n = \lfloor{x}\rfloor$, and for all integers $k \ge 0$ set

$A(k) = \left\lfloor{\frac{n+1}{2}}\right\rfloor + \left\lfloor{\frac{n+2}{4}}\right\rfloor + \cdots + \left\lfloor{\frac{n+2^k}{2^{k+1}}}\right\rfloor + \left\lfloor{\frac{n}{2^{k+1}}}\right\rfloor.$

Since $\left\lfloor{\frac{n}{2^{k+1}}}\right\rfloor$ is always an integer,

$\left\lfloor{\frac{n}{2^{k+1}}}\right\rfloor = \left\lfloor{\dfrac{\left\lfloor{\frac{n}{2^{k+1}}}\right\rfloor+1}{2}}\right\rfloor + \left\lfloor{\dfrac{\left\lfloor{\frac{n}{2^{k+1}}}\right\rfloor}{2}}\right\rfloor = \left\lfloor{\dfrac{\frac{n}{2^{k+1}}+1}{2}}\right\rfloor + \left\lfloor{\dfrac{\frac{n}{2^{k+1}}}{2}}\right\rfloor = \left\lfloor{\frac{n+2^{k+1}}{2^{k+2}}}\right\rfloor + \left\lfloor{\frac{n}{2^{k+2}}}\right\rfloor.$

Therefore $A(k+1) = A(k)$ for all $k$, i.e., $A(k)$ is constant. The value of the constant is

$A(0) = \left\lfloor{\frac{n+1}{2}}\right\rfloor + \left\lfloor{\frac{n}{2}}\right\rfloor = n$,

since $n$ is an integer. Thus $A(k) = n$ for all $k \ge 0$. Let $2^{k_0}$ is the highest power of $2$ not exceeding $n$. For all $k \ge k_0$, $\left\lfloor{n/2^{k+1}}\right\rfloor = 0$ and thus

$n = A(k) = \left\lfloor{\frac{n+1}{2}}\right\rfloor + \left\lfloor{\frac{n+2}{4}}\right\rfloor + \cdots + \left\lfloor{\frac{n+2^k}{2^{k+1}}}\right\rfloor.$

This shows that

$\sum_{k = 0}^\infty
\left\lfloor{\frac{n+2^k}{2^{k+1}}}\right\rfloor = n.$

Since for each $k \ge 0$,

$\left\lfloor{\frac{n+2^k}{2^{k+1}}}\right\rfloor =\left\lfloor{\frac{x+2^k}{2^{k+1}}}\right\rfloor$,

it is also the case that

$\sum_{k = 0}^\infty \left\lfloor{\frac{x+2^k}{2^{k+1}}}\right\rfloor = n.$
 
  • #5
Thanks, Euge for participating in this challenge problem.:) Your proof is great!

Here is the solution uses the Hermite's identity in the proof:

From the Hermite Identity, we have $\displaystyle\sum_{k=0}^{n-1} \left\lfloor x+\dfrac{k}{n}\right\rfloor=\lfloor nx\rfloor$ and taking $n=2$ we then have

$\displaystyle\sum_{k=0}^{1} \left\lfloor x+\dfrac{k}{2}\right\rfloor=\lfloor 2x\rfloor$

i.e. $\left\lfloor x\right\rfloor+\left\lfloor x+\dfrac{1}{2}\right\rfloor=\lfloor 2x\rfloor$ and rewriting to make $\displaystyle \left\lfloor x+\dfrac{1}{2}\right\rfloor$ as the subject gives

$\displaystyle \left\lfloor x+\dfrac{1}{2}\right\rfloor=\lfloor 2x\rfloor-\left\lfloor x\right\rfloor$

Note that we can make full use of this identity, as we can have

$\displaystyle \left\lfloor \dfrac{x}{2}+\dfrac{1}{2}\right\rfloor=\lfloor x\rfloor-\left\lfloor \dfrac{x}{2}\right\rfloor$

$\displaystyle \left\lfloor \dfrac{x}{4}+\dfrac{1}{2}\right\rfloor=\left\lfloor \dfrac{x}{2}\right\rfloor-\left\lfloor \dfrac{x}{4}\right\rfloor$

and so on and so forth.

Now, back to the question, expand the sum given in sigma notation into an explicit sum yields:

$\displaystyle\sum_{k=0}^{\infty} \left\lfloor\dfrac{x+2^k}{2^{k+1}}\right\rfloor$

$=\left\lfloor\dfrac{x+1}{2}\right\rfloor+\left\lfloor\dfrac{x+2}{4}\right\rfloor+\left\lfloor\dfrac{x+4}{8}\right\rfloor+\cdots$

$=\left\lfloor\dfrac{x}{2}+\dfrac{1}{2}\right\rfloor+\left\lfloor\dfrac{x}{4}+\dfrac{1}{2}\right\rfloor+\left\lfloor\dfrac{x}{8}+\dfrac{1}{2}\right\rfloor+\cdots$

$=\left\lfloor x\right\rfloor-\left\lfloor \dfrac{x}{2}\right\rfloor+\left\lfloor \dfrac{x}{2}\right\rfloor-\left\lfloor \dfrac{x}{4}\right\rfloor+\left\lfloor \dfrac{x}{4}\right\rfloor-\left\lfloor \dfrac{x}{8}\right\rfloor+\cdots$

$=\left\lfloor x\right\rfloor-\cancel{\left\lfloor \dfrac{x}{2}\right\rfloor}+\cancel{\left\lfloor \dfrac{x}{2}\right\rfloor}-\cancel{\left\lfloor \dfrac{x}{4}\right\rfloor}+\cancel{\left\lfloor \dfrac{x}{4}\right\rfloor}-\cancel{\left\lfloor \dfrac{x}{8}\right\rfloor}+\cdots$

$=\left\lfloor x\right\rfloor$

and we're done.
 

Related to Can You Prove the Floor Function Challenge for Real Numbers?

1. What is the "Floor Function Challenge"?

The Floor Function Challenge is a mathematical problem that involves finding the largest integer less than or equal to a given number. It is often used in computer programming and is denoted by the symbol ⌊x⌋, where x is the given number.

2. How is the floor function different from rounding down?

The floor function (⌊x⌋) is different from rounding down in that it always rounds down to the nearest integer, even if the decimal part of the number is less than 0.5. For example, ⌊3.4⌋ = 3, while rounding down would result in 3.0.

3. What is the purpose of the "Floor Function Challenge"?

The Floor Function Challenge is often used in computer programming to solve problems that involve finding the largest integer less than or equal to a given number. It is also used in mathematical proofs and can be applied in various real-world scenarios, such as calculating the number of items needed for a certain project.

4. How do you solve the "Floor Function Challenge"?

To solve the Floor Function Challenge, you need to identify the given number and then round down to the nearest integer. This can be done using the floor function (⌊x⌋) or by manually rounding down using mathematical operations. It is important to pay attention to the decimal part of the number and round down accordingly.

5. Are there any other names for the floor function?

Yes, the floor function is also known as the greatest integer function, integer floor function, or integer part function. These terms are often used interchangeably and all refer to the same mathematical concept of finding the largest integer less than or equal to a given number.

Similar threads

Replies
9
Views
2K
Replies
4
Views
931
Replies
3
Views
869
Replies
1
Views
1K
Replies
1
Views
868
  • General Math
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
1K
Replies
1
Views
1K
Replies
2
Views
1K
Replies
4
Views
2K
Back
Top