How to find the last digit of this multiplication $1234\times5678$. It may seem like homework but its not. I can do simple multiplication to get the result but I see some patter here, the digits are continuous is this some hint?
-
4$\begingroup$ What is the last digit of $4 \times 8$? $\endgroup$ – Umberto P. Oct 16 '15 at 13:16
-
1$\begingroup$ Its 32. Oops! the question was too basic. These competition question trick me :( $\endgroup$ – CodeYogi Oct 16 '15 at 13:18
If you think of $1234$ as $1230 + 4$ and $5678$ as $5670 + 8$, then you'll see that $$\begin{align} 1234\cdot5678 &= (1230 + 4) \cdot (5670 + 8) \\ &= \underbrace{1230 \cdot 5670 + 1230 \cdot 8 + 5670 \cdot 4}_{\text{all multiples of } 10} + 4 \cdot 8 \end{align}.$$ The last digit isn't affected by multiples of $10$. So the last digit is completely determined by the last digit of the product of $8$ and $4$, which is $2$.
From a different perspective, if you're familiar with modular arithmetic, then last-digit questions almost beg to work mod 10. Working mod 10, we see that the question immediately boils down to $8 \cdot 4 \bmod 10$, which is $2$.
The underlying reasoning behind these two answers is the same. $\diamondsuit$