Three digits

Find the three last digits of 14 3 999999 143^{999999} . What is their sum?


The answer is 7.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

5 solutions

Discussions for this problem are now closed

Prasun Biswas
Mar 21, 2015

First, we note that finding the last three digits is the same as performing the operation of given number modulo 1000 1000 . Also, gcd ( 143 , 1000 ) = 1 \gcd(143,1000)=1 . Next, we use the Euler's Theorem (which is a generalization of Fermat's Little Theorem ) to ease out computations of residue by reducing exponents on the given number. The theorem states that:

a ϕ ( n ) 1 ( m o d n ) a , n Z + gcd ( a , n ) = 1 a^{\phi(n)}\equiv 1\pmod{n}~\forall a,n\in\mathbb{Z^+} \land \gcd(a,n)=1

Note: ϕ ( n ) \phi(n) is the Euler's Totient Function which counts the totatives of n n .

ϕ ( 1000 ) = ϕ ( 5 3 × 2 3 ) = 1000 ( 1 1 2 ) ( 1 1 5 ) = 400 \phi(1000)=\phi(5^3\times 2^3)=1000\left(1-\frac{1}{2}\right)\left(1-\frac{1}{5}\right)=400

14 3 400 1 ( m o d 1000 ) 14 3 1000000 = ( 14 3 400 ) 2500 1 ( m o d 1000 ) \therefore\quad143^{400}\equiv 1\pmod{1000}\implies 143^{1000000}=(143^{400})^{2500}\equiv 1\pmod{1000}

14 3 999999 = 14 3 1000000 × 14 3 1 1 × 14 3 1 14 3 1 ( m o d 1000 ) 143^{999999}=143^{1000000}\times 143^{-1}\equiv 1\times 143^{-1}\equiv 143^{-1}\pmod{1000}

Let z 14 3 1 ( m o d 1000 ) z\equiv 143^{-1}\pmod{1000} . Then, we have, 143 z 1 ( m o d 1000 ) 143z\equiv 1\pmod{1000} . Using Extended Euclidean Algorithm , we have,

143 z 1 ( m o d 1000 ) z 7 ( m o d 1000 ) 143z\equiv 1\pmod{1000}\implies z\equiv 7\pmod{1000}

14 3 999999 7 ( m o d 1000 ) \therefore\quad 143^{999999}\equiv 7\pmod{1000}

Required sum = 0 + 0 + 7 = 7 =0+0+7=\boxed{7}

Moderator note:

It would be better to show the working for Extended Euclidean Algorithm: 1 = 7 ( 143 ) 1 ( 1000 ) 1 = 7(143) - 1(1000) .

Pi Han Goh
Mar 21, 2015

Euler Totient Function: ϕ ( 1000 ) = 1000 × ( 1 1 2 ) ( 1 1 5 ) = 400 \phi(1000) = 1000 \times \left (1 - \frac 1 2 \right ) \left (1 - \frac 1 5 \right ) = 400

Consider modulo 1000 1000

14 3 999999 14 3 1 0 6 1 14 3 1 0 6 ( m o d 400 ) 14 3 1 14 3 0 1 143 1 143 \begin{aligned} 143^{999999} & \equiv & 143^{10^6 - 1} \\ & \equiv & 143^{10^6 \pmod {400} } \cdot 143^{-1} \\ & \equiv & 143^0 \cdot \frac {1}{143} \\ & \equiv & \frac {1}{143} \\ \end{aligned}

So we want to to find modulo inverse of 143 143 modulo 1000 1000 , which is easily computed to be 7 \boxed{7} because 1 = 7 ( 143 ) 1 ( 1000 ) 1 = 7(143) - 1(1000) .

Moderator note:

It would be better to show the working for Extended Euclidean Algorithm: 1 = 7 ( 143 ) 1 ( 1000 ) 1 = 7(143) - 1(1000) .

Shashank Rustagi
Mar 21, 2015

I got the answer using binomial expansion of (140+3)^999999

Moderator note:

This solution has been marked incomplete. What is your to split them up as 143 = 140 + 3 143 = 140 + 3 ? Why don't we choose 143 = 144 1 143 = 144 - 1 , 143 = 141 + 2 143 = 141 + 2 , or 143 = 200 + 143 143 = 200 + 143 ?

Can you elaborate your solution?

Prasun Biswas - 6 years, 2 months ago

yes offcourse sir but i do not know to type the expressions can you help me

Shashank Rustagi - 6 years, 2 months ago

Well, you can start by writing the solution. There are the moderators of this community who can and will help you in improving the presentation.

Prasun Biswas - 6 years, 2 months ago

ya sure! if u have google chrome , then use equation editor (app) from the chrome webstore. its a great help!

Abhay Raj Singh - 6 years, 2 months ago
John Taylor
Apr 4, 2015

We can let n be the exponent of 143. Then we must look for a pattern. If the problem asks us to find what is the last digit or the last two digits, it would be much easier. Let n = 1

143^1 = 143.

n = 2, 143^2 = 20449. But we don't need to find out the other digits.

After solving for the last three digits in 143^n, we multiply that number to 143 to get 143^(n+1). If n = 2, the last three digits are 449. n = 3: 449 x 143 = ...207. Just solve for the last three digits to avoid wasting time. Repeat until you find a pattern. After n = 20, the last three digits repeat.

We divide 999999 by 20, then we get a remainder of 19. if n = 19, the last three digits are 007. Hence, the answer is 7.

Of course there are more elegant ways to solve this but for pattern-oriented people such as me this solution works best.

Moderator note:

This solution is very impractical. It's easy to mess up on the calculation. And you actually got lucky that the cycle is a mere 20 20 , generally, the cycle when determining the last 3 digits is at most ϕ ( 1000 ) = 400 \phi(1000) = 400 . Replacing 143 143 by almost any other number gives a cycle greater than 20 20 , which will involve more calculation!

Arabinda Pratihar
Mar 21, 2015

last digit of 143^999999 is same as the last digit of 3^999999......... now last digit of 3^1=3 , 3^2=9 , 3^3=7 , 3^4=1 , 3^5=3 , so after power 4 the repetition start so, now 999999 % 4 = 3 , so answer is 7

Moderator note:

This solution has been marked wrong. Like Pi Han Goh has mentioned, your working only shows the last digit of the number.

You have only shown the last digit is 7 7 , you need to show that the last THREE digits is 007 007

Pi Han Goh - 6 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...