I have a question. For $x,y,n \in\Bbb N$, $y$ a power of two, being given $x$ and $y$ is there a faster way to mentally calculate $ny$ where $ny ≤ x< (n+1)y-1$ other than $\lfloor x \div y \rfloor \times y$? Thanks.
quicker way of doing this in your head?
1
$\begingroup$
arithmetic
-
0@RossMillikan I figured out one thing you could do would be x-x%y, that also gives you ny – 2012-11-15