Accept The Situation And Move On

Determine the smallest positive integer n \displaystyle n , for which 3 n \displaystyle 3^n leaves the remainder 3 on dividing by 1000, the quotient being positive.


The answer is 101.

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.

2 solutions

Kartik Sharma
Jan 24, 2015

Well, first of all overrated!(it is level 5)

Secondly, 1 is also a positive integer. @Satvik Golechha

Now, let's try to find what we require.

3 n = 3 m o d 1000 {3}^{n} = 3 mod 1000

3 n 1 = 1 m o d 1000 3 x = 1 m o d 1000 {3}^{n-1} = 1 mod 1000 \Rightarrow {3}^{x} = 1 mod 1000

Now, of course we know by Euler's formula that 3 400 = 1 m o d 1000 3**400 = 1 mod 1000 as ϕ ( 1000 ) = 40 \phi(1000) = 40 but we don't know if this is the order of 3 modulo 1000.

Hence, we need to find the order of 3 modulo 1000.

With the help of some calculations, we find that

3 10 = 49 m o d 1000 3 10 = 7 2 m o d 1000 {3}^{10} = 49 mod 1000 \Rightarrow {3}^{10} = {7}^{2} mod 1000

Therefore, we actually need to find the order of 49 modulo 1000.

Let us have a look at B = 7 y m o d 1000 B = {7}^{y} mod 1000 for some values of y.

y = 1 , B = 7 y = 1, B = 7

y = 2 , B = 49 y = 2, B = 49

y = 3 , B = 343 y = 3, B = 343

y = 4 , B = 401 y = 4, B = 401

y = 5 , B = 807 y = 5, B = 807

y = 6 , B = 649 y = 6, B = 649

y = 7 , B = 543 y = 7, B = 543

y = 8 , B = 801 y = 8, B = 801 and so on.

Hence, we can see a pattern following here that 4 is added on every 4th number from the preceding term. Like B 4 = 401 , B 8 = 801 , B 12 = 201 , B 16 = 601 , B 20 = 001 {B}_{4} = 401, {B}_{8} = 801, {B}_{12} = 201, {B}_{16} = 601, {B}_{20} = 001

Hence, 20 is the order of the 7 modulo y, or 10 is the order of 49 modulo y.

As a result 10 10 = 100 10*10 = 100 is the order of 3 modulo 1000.

or 3 101 = 3 m o d 1000 {3}^{101} = 3 mod 1000 , n = 101(for n being all positive integers >1)

@Satvik Golechha Fix the problem!

Kartik Sharma - 6 years, 4 months ago

Log in to reply

And yes, nice problem and nice gif. I love pokemon(and that was quite nostalgic) :(

*I used to see pokemon but now, no time and no pokemon even.

Kartik Sharma - 6 years, 4 months ago

Log in to reply

It comes at 4PM everyday on Pogo. I never miss it. :D

Satvik Golechha - 6 years, 4 months ago

@Kartik Sharma Thanks. The problem, though, has already been fixed of that error. I think I set it at level 4, and it presumably got to level 5 due to only 6 solvers.

Satvik Golechha - 6 years, 4 months ago

Log in to reply

Hmm, and now it has doubled. Well, so close to 1000! Wow! Congrats!

Kartik Sharma - 6 years, 4 months ago
Mrigank Krishan
Feb 1, 2015

If allowed to use calculator as in other solutions, i have more easy solution:-

first of all, we'll get the pattern of last digit of 3 n 3^n ,

3 1 = 3 3^1=3

3 2 = 9 3^2=9

3 3 = 27 3^3=27

3 4 = 81 3^4=81

3 5 = 243 3^5=243

So the pattern is 3 , 9 , 7 , 1 3,9,7,1 , so to get 3 n 3 3^n-3 divisible by 1000 we must have 003 as last digit,

hence n m o d 4 = 1 n mod 4=1 , or n can be 5 or 9 or 13 or 17 or 21.............

on calculation we get that when n is 21 o r 41 o r 61 21 or 41 or 61 we get the number as _ _ _ 203(for n=21) or _ _ _ 403(for n=41) or .......... hence to make the last digits _ __ 003 n minimum n should be 101 \boxed{101} . Author, please fix the question as 1 can be also possible.

I've written the the quotient must be positive. Hence, the problem is not incorrect. Thanks.

Satvik Golechha - 6 years, 4 months ago

Log in to reply

Sorry for that, that's my mistake.

Mrigank Krishan - 6 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...