We need to prove that \([x] + [x + 1/2] = [2x]\). We can represent \(x\) as:
where \(\{x\}\) is the fractional part. We will break the proof in two cases. One where \(\{x\} \lt 1/2\) and one where \(\{x\} \ge 1/2\).
If \(\{x\} \lt 1/2\), then the integer part of \(x\) won't increment when adding 1/2:
Is \(2[x] = [2x]\)? Since \(2x = x+x\):
Since \(0 \le \{x\} \lt 1/2\), then \(0 \le 2\{x\} \lt 1\), and since \(2[x]\) is an integer:
This means:
Now let's consider the case where \(1/2 \le \{x\} \lt 1\). Since \(x = [x] + \{x\}\):
Adding them gives:
If \(1/2 \le \{x\} \lt 1\), then \(1 \le \{x\} + 1/2 \lt 1.5\). Let \(s\) be the fractional part of \(\{x\} + 1/2\). Since the integer part is 1:
Is \([2x] = 2[x]+1\)? If \(1/2 \le \{x\} \lt 1\), then \(1 \le 2\{x\} \lt 2\). Let \(t\) be the fractional part of \(2{x}\). Since \([2x] = [2[x] + 2\{x\}]\):
If \([x] + [x + 1/2] = 2[x] + 1\) and \([2x] = 2[x]+1\):