What does this floor expression evaluate to?

75 Views Asked by At

Consider the expression

$$\left\lfloor\frac{2n-1}{2}\right\rfloor\;:$$

does it make sense that this floor function will evaluate to $n$? Or should it be $n-1$?

1

There are 1 best solutions below

1
On BEST ANSWER

$\frac{2n-1}{2}=n-\frac{1}{2}$, so the floor is $n-1$.