Find the probability that the equation $[x+y+z]=[x]+[y]+[z]+2$ is true, where $x,y,z \in R$. [.] Represents the greatest integer function.
I got two different answers by two different methods.
1st method: $x=[x]+\{x \}$ etc in LHS, where {} is the fractional part function.
So $[\{x \}+\{y \}+ \{z \}]=2$
So $\{x \}+\{y \}+ \{z \}$ is between $[2,3)$.
All $\{x \},\{y \},\{z \}$ are between $[0,1)$ and are uniformly distributed in this interval.
So if we consider the "expectation" instead of actual probability. The expectation that $\{x \},\{y \},\{z \}$ is between $[2,3)$.
= Expectation that $3\{x \} $ is between $[2,3)$.
= Expectation that ${x}$ is between $[2/3,1)$
$= (1-\frac{2}{3})/1 = \frac{1}{3}$
(Due to uniform distribution of {x}).
Can we call this the final required probability?
Method 2: consider a unit cube with vertices $(0,0,0),(1,0,0),(0,1,0),(0,0,1),(1,1,0),(1,0,1),(0,1,1),(1,1,1)$ and the plane $x+y+z=2$.
The required probability (of $\{x \}+\{y \}+ \{z \}$ is between $[2,3)$). is the volume of the cube cut out of the plane(not including the origin) /volume of cube = volume of tetrahedron with vertices $(1,1,1),(1,1,0),(1,0,1),(0,1,1)$/1 = $\frac{1}{6}$.
Which method is correct (if at all any) and is there any other way to solve this question?