Let $n$ be the smallest integer:$7n$ has $1984$ digits
What is the units digit of $n$?
My attempt:
I have deduced that the number $7n$ must begin with a $1$ and have $1982$ $0s$ after that, ending in the digit $c$ which I need to find.
Next I used long division to determine that:
$\frac{7n}{7} = \frac{10000000...00c}{7} =$ the $6$ digits $142857$ repeated many times till the number terminates on $c$ = one of the digits $1,4,2,8,5,7$
So to determine $c$, We calculate $1984mod6 \equiv 4mod6$
Therefore $c =$ the fourth digit in the pattern of 6 repeated digits = $8$
Is my attempt correct, and if yes, is it efficient?
EDIT:
Having looked at the inputs from members on the site, I have identified my errors. I should have used $1983\equiv 3mod6$ and then used the remainders corresponding to each recurring digit i.e. $1 \rightarrow 1, 4 \rightarrow 1, 2\rightarrow 3, 8 \rightarrow 2, 5\rightarrow 6, 7 \rightarrow 4$ Then the remainder corresponding to the third digit in $142857$ gives us $c=3$