# Difference between revisions of "2016 AMC 10A Problems/Problem 4"

## Problem

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 \tfrac{x}{y} \right \rfloor$ denotes the greatest integer less than or equal to $\tfrac{x}{y}$. What is the value of $\text{rem} (\tfrac{3}{8}, -\tfrac{2}{5} )$?

$\textbf{(A) } -\frac{3}{8} \qquad \textbf{(B) } -\frac{1}{40} \qquad \textbf{(C) } 0 \qquad \textbf{(D) } \frac{3}{8} \qquad \textbf{(E) } \frac{31}{40}$

## Solution 1

The value, by definition, is \begin{align*} \text{rem}\left(\frac{3}{8},-\frac{2}{5}\right) &= \frac{3}{8}-\left(-\frac{2}{5}\right)\left\lfloor\frac{\frac{3}{8}}{-\frac{2}{5}}\right\rfloor \\ &= \frac{3}{8}-\left(-\frac{2}{5}\right)\left\lfloor\frac{3}{8}\times\frac{-5}{2}\right\rfloor \\ &= \frac{3}{8}-\left(-\frac{2}{5}\right)\left\lfloor\frac{-15}{16}\right\rfloor\\ &= \frac{3}{8}-\left(-\frac{2}{5}\right)\left(-1\right)\\ &= \frac{3}{8}-\frac{2}{5}\\ &= \boxed{\textbf{(B) } -\frac{1}{40}}. \end{align*}

## Solution 2

Do note that the denominator of the answer will be a multiple of 5 and 8 (40) and that the answer will also be negative. The only answer choice that satisfies this is $\boxed{B}$

~IceMatrix

~savannahsolver