Last 3 digits of 7 77 ^{77}

N = 7 77 \large N = 7^{77}

Find the last three digits of N N .

The problem is posed by Soner Karaca .


The answer is 207.

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.

3 solutions

Seth Christman
Nov 21, 2016

I don't know of any fancy, quick equation to assist with this, but I have a rather fun solution.

Whenever one is dealing with finding digits from powers, establishing a pattern is the first step to take. Listing out the powers of 7 mod 1000 (to limit them to 3 digits) we get:

7 , 49 , 343 , 401 , 807 , 649 , 543 , 801 , 607 , 249 , 743 , 201 , 7, 49, 343, \textbf{401}, 807, 649, 543, \textbf{801}, 607, 249, 743, \textbf{201}, \dots

If we look at every 4th term, a small pattern is emerging. Specifically it always ends with 01 01 and leads with its current power placement mod 10 (Ex. 7 4 = 401 , 7 8 = 801 , 7 12 = 201 7^4=\dots401, 7^8=\dots801, 7^{12}=\dots201

Now we see that 77 m o d 4 = 1 77\mod4 = 1

So our solution, broken down, is 7 77 = 7 76 × 7 = 601 × 7 = 207 7^{77}=7^{76}\times7=\dots601\times7=\dots207

Thus the answer is 207 207

wow! nice observation seth christmas..

Rakshit Joshi - 4 years, 6 months ago

Thanks for the solution. I couldn't get a nice solution too.

Chew-Seong Cheong - 4 years, 6 months ago

Great observation! Do you know what other numbers (mod 100) have powers whose remainder mod 100 repeat every 4 terms?

Calvin Lin Staff - 4 years, 6 months ago

Obviously 1 does, but that repeats every term.

2 repeats every 4th term, yielding 2, 4, 8, 6 as unit digit, tens digit in the form, P 3 P-3 . (This is for the 4th terms only since that is the end of the cycle)

3 has a similar pattern, ending in 81 after 4. So its pattern is twice its power followed by a 1.

4 always ends in 4 for odd powers and 6 for even powers, tens digit of the form (power=P) 3 ( P 1 ) 3(P-1) for odd powers, and 2 P 3 2P-3 for even powers.

5 always yields 25 for any power mod 100.

6 always has 6 in the unit digit, tens digit following the pattern (after the 6 1 6^1 which is 06 06 ) 3,1,9,7,5. This follows a pattern every 6 terms

7 we have gone over in this problem.

8 has the pattern of 8,4,2,6 for its unit digit, repeating every 4th term, tens digit (of the 4th terms) in the same form as 4, 3 ( P 1 ) 3(P-1)

9, being a power of 3, repeats every 2 terms, thus every 4 terms as well, but has a better pattern every 10, ending in exactly 01.

Please correct me if I have made any mistakes with these. I kinda just winged it quickly to see if there were any neat patterns.

Seth Christman - 4 years, 6 months ago

Log in to reply

Note that for 3, 3 5 = 243 43 ( m o d 100 ) 3 ^ 5 = 243 \equiv 43 \pmod{100} . It seems like you are mixing up mod 100 and mod 10 when replying.

So, more specifically, how can we solve for x 4 1 ( m o d 100 ) x^ 4 \equiv 1 \pmod{100} ? As noticed x = 1 , 7 x = 1, 7 are solutions. Are there any others? This is a "degree 4" modulus equation. Are there 4 solutions? Or more than 4?

Calvin Lin Staff - 4 years, 6 months ago
Chew-Seong Cheong
Feb 26, 2017

7 3 N 7 80 7 2 × 40 4 9 40 ( 50 1 ) 40 1 (mod 1000) 343 N 1 (mod 1000) \begin{aligned} 7^3N & \equiv 7^{80} \equiv 7^{2\times 40} \equiv 49^{40} \equiv (50-1)^{40} \equiv 1 \text{ (mod 1000)} \\ \implies 343N & \equiv 1 \text{ (mod 1000)} \end{aligned}

Let N a b c N \equiv \overline{abc} , a three-digit integer. Then,

343 ( 100 a + 10 b + c ) 1 (mod 1000) 34300 a + 3430 b + 343 c 1 (mod 1000) For last digit of LHS = 1 c = 7 34300 a + 3430 b + 2401 1 (mod 1000) For 2nd last digit of LHS = 0 b = 0 34300 a + 2401 1 (mod 1000) For 3rd last digit of LHS = 0 a = 2 68600 + 2401 1 (mod 1000) N a b c = 207 \begin{aligned} 343(100a + 10b + c) & \equiv 1 \text{ (mod 1000)} \\ 34300a + 3430b + 343c & \equiv 1 \text{ (mod 1000)} & \small \color{#3D99F6} \text{For last digit of LHS }=1 \implies c = 7 \\ 34300a + 3430b + 2401 & \equiv 1 \text{ (mod 1000)} & \small \color{#3D99F6} \text{For 2nd last digit of LHS }= 0 \implies b = 0 \\ 34300a + 2401 & \equiv 1 \text{ (mod 1000)} & \small \color{#3D99F6} \text{For 3rd last digit of LHS }= 0 \implies a = 2 \\ 68600+2401 & \equiv 1 \text{ (mod 1000)} \\ \implies N & \equiv \overline{abc} = \boxed{207} \end{aligned}

That was amazing.

Ankit Kumar Jain - 4 years, 3 months ago

Sir , you can try my sets My Problems and THRILLER . The former contains problems that I have posted and the latter contains some awesome problems.

THRILLER \href{https://brilliant.org/profile/ankit-kumar-c62tb1/sets/thriller/}{\color{#3D99F6}\text{THRILLER}}

My Problems \href{https://brilliant.org/profile/ankit-kumar-c62tb1/sets/my-problems/}{\color{#3D99F6}\text{My Problems}}

Can you please fix the link for me!!??

EDIT

I have done it. Thanks.

Ankit Kumar Jain - 4 years, 3 months ago
Ankit Kumar Jain
Feb 25, 2017

7 4 401 ( m o d 1000 ) 7^4 \equiv{401}\pmod{1000}

7 77 7 76 7 2401 19 7 401 19 7 ( 400 + 1 ) 19 7 ( 19 × 400 + 1 ) 7 207 ( m o d 1000 ) 7^{77}\equiv{7^{76}\cdot 7}\equiv{{2401}^{19}\cdot 7}\equiv{{401}^{19}\cdot 7}\equiv{(400 + 1)^{19}\cdot 7}\equiv{(19\times{400} + 1)\cdot 7}\equiv{207}\pmod{1000}

@Chew-Seong Cheong @Seth Christman Please comment!

Good approach. I have just thought of a solution. See my solution too.

Chew-Seong Cheong - 4 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...