1,100 views

1 Answer

Best answer
2 2 votes

For finding the last digit of any number we generally use,

$( n )\mod 10$ = last digit of the number.

Now for this question, $n = 1! + 2! + 3! + \ldots + 10!$, and we need to find $n^n \mod 10$.

First closely look that after $4!$ the last digit is always $0$. ( eg, $5! = 120, 6! = 720, 7! = 5040 \ldots $)

So first we add up $1! + 2! + 3! + 4! $ which is pretty trivial and straightforward and gets us  $1! + 2! + 3! + 4!  = 33 $ and $ 33 \mod 10 = 3$.

So this makes the question simplified as:

$$ 33^{1! + 2! + 3! + \ldots + 10!} \mod 10  $$

Proceeding,

$$ 33^{1! + 2! + 3! + \ldots + 10!} \mod 10 $$

$$ =  33^{33} \mod 10 $$

$$ = 33^{32} \cdot 33 \mod 10 $$,

$$ = 33^{8 \times 4} \cdot 33 \mod 10 = 33^{4 \times 8} \cdot 33 \mod 10 $$

$$ = 1^8 \cdot 33 \mod 10 = 33 \mod 10  $$

$$ = 3 $$

Hence the last digit is $3$.

Brute Force to verify.

I put the question directly into Wolfram, and here's the result,

 $$4037913^4037913 = 1.144730641841134696286784629687671473303988068399 \ldots \times 10^{26675087} $$

and the last few decimal digits are $ \ldots 878102895\textbf{3} $

Sure do comment if you find out another way.

• selected by
Position:
Show:

Related questions

2 2 votes
1 1 answer
2.6k
2.6k views
Aghori asked Jul 12, 2017
2,579 views
Find the remainder of $\frac{9^{1}+9^{2}+...+9^{n}}{6}$ where $n$ is multiple of 11.I am getting $0$ or $3$. But given answer is 3. Can anyone check?
0 0 votes
2 answers 2 answers
878
878 views
Sammohan Ganguly asked Apr 20, 2018
878 views
Why does a perfect square number have odd number of factors?
1 1 vote
2 answers 2 answers
2.4k
2.4k views
Mk Utkarsh asked Apr 13, 2018
2,356 views
A prison houses 100 inmates, one in each of 100 cells, guarded by a total of 100 warders. One evening, all the cells are locked and the keys left in the locks. As the fir...
2 2 votes
3 3 answers
592
592 views
Random Oracle asked Jul 2, 2025
592 views
How many numbers $x \in$ {$1,...,99$} are there such that $x^{\lceil{\sqrt[3]{x}}\rceil}$ is a perfect cube$?$$4$$23$$19$$22$