Power Up

Consider a number 3 n , 3^n, where n n is a positive integer.

If n = 2016 n=2016 , the last digit of 3 n 3^n is a a .
If n = 9018 n=9018 , the last digit of 3 n 3^n is b b .

What is a + b ? a+b?

2 4 6 8 10 12 14 16

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.

4 solutions

Ashish Menon
Mar 13, 2016

Observe that the last digit of the power of 3 3 repeat in the cycle 3 , 9 , 7 , 1 3,9,7,1\cdots . So, the last digit of 3 2016 3^{2016} will be the 201 6 t h 2016^{th} digit in the given sequence. As 2016 2016 when divided by 4 4 leaves ni remainder, 1 1 .

When 901 8 t h 9018^{th} is divided by 4 4 it leaves 2 2 as remainder, so, b = 9 b=9 .

So, a + b = 1 + 9 = 10 a+b=1+9=10 .

Moderator note:

Simple standard approach once you know that the last digits always repeat (and just have to find the length of the period).

I accidentally stopped after I did 2016 mod 4 and 9018 mod 4! When I got 0 and 2, I accidentally forgot to go back and check which last digits those represented and blindingly just hit the option of '2'... I feel so silly!

Andrew Tawfeek - 5 years, 3 months ago

I did in the same way

Nikkil V - 5 years, 3 months ago
Sravanth C.
Mar 13, 2016

We know 3 2 1 ( m o d 10 ) 3^2\equiv -1\pmod{10} , thus 3 2016 ( 3 2 ) 1008 1 3^{2016}\equiv (3^2)^{1008}\\\equiv 1

Similarly, 3 9018 ( 3 2 ) 4009 1 9 3^{9018}\equiv (3^2)^{4009}\\\equiv -1\equiv 9

Thus, a = 1 a=1 and b = 9 b=9 , hence a + b = 1 + 9 = 10 a+b=1+9=\boxed{10} .

ϕ ( 10 ) = 4 \phi(10) = 4 where ϕ ( n ) \phi(n) is the Euler-Phi function.
According to Euler's theorem,
a ϕ ( n ) ( m o d n ) , g c d ( a , n ) = 1 a^{\phi(n)} \equiv \pmod{n} , gcd(a,n) = 1
3 4 1 ( m o d 10 ) \therefore 3^{4} \equiv 1 \pmod{10}
3 2016 ( 3 4 ) 504 1 ( m o d 10 ) 3^{2016} \equiv (3^{4})^{504} \equiv 1 \pmod{10}
a = 1 \therefore a = 1



3 9018 3 2 3 9016 9 ( 3 4 ) 2254 9 1 9 ( m o d 10 ) 3^{9018} \equiv 3^{2} \cdot 3^{9016} \equiv 9\cdot (3^{4})^{2254} \equiv 9 \cdot 1 \equiv 9 \pmod{10}
b = 9 \therefore b = 9
a + b = 10 \therefore a + b = 10 .

Note : What I actually did was calculated the remainder when the number was divided by 10, which is actually the last digit.

. .
Mar 24, 2021

3 2016 2016 0 ( m o d 4 ) 3 ^ { 2016 } \rightarrow 2016 \equiv 0 ( \mod 4 )

3 9018 9018 2 ( m o d 4 ) 3 ^ { 9018 } \Rightarrow 9018 \equiv 2 ( \mod 4 )

So, 3 n 3 ^ { n } is repeating by the pattern of last digits, 3, 9, 7, and 1, so the answer will be a = 1 , b = 9 , a + b = 1 + 9 = 10 a = 1, b = 9, \therefore a + b = 1 + 9 = \boxed { 10 }

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...