Problem 789: (2016 AMC 10a, 4; 2016 AMC 12a, 3)
The remainder can be defined for all real numbers $x$ and $y$ with $y \neq 0$ by \[\text{rem} (x ,y)=x-y\left \lfloor \frac{x}{y} \right \rfloor\] where $\left \lfloor \dfrac{x}{y} \right \rfloor$ denotes the greatest integer less than or equal to $\dfrac{x}{y}$. What is the value of $\text{rem}\left(\dfrac{3}{8}, -\dfrac{2}{5}\right)$?
$\textbf{(A)}\ -\frac{3}{8}$ $\textbf{(B)}\ -\frac{1}{40}$ $\textbf{(C)}\ 0$ $\textbf{(D)}\ \frac{3}{8}$ $\textbf{(E)}\ \frac{31}{40}$
- $\frac{3/8}{-2/5}=-\frac{15}{16}$, so $\left\lfloor-\frac{15}{16}\right\rfloor=-1$.
- $\text{rem}=\frac38-\left(-\frac25\right)(-1)=\frac38-\frac25=-\frac1{40}$.
- The answer is (B).
With $\text{rem}(x,y)=x-y\left\lfloor\frac xy\right\rfloor$, what is $\text{rem}\left(-\frac56,\frac34\right)$?