A sequence of positive integers is defined as follows: a 1 = 2 0 1 3 , a n + 1 = 3 a n − 2 a n for n ≥ 1 . What are the last three digits of a 2 0 1 4 ?
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.
Disproved: 3 1 0 0 1 − 2 1 0 0 1 ≡ 1 0 3 3 1 − 2 1
Log in to reply
Because the last 3 digits of \( 2^{n} \) are equal to the last 3 digits of \( 2^{1000k+n} \) if and only if n is greater than or equal to 3
How did you get 3 1 3 − 2 1 3 ≡ 1 0 3 1 3 1 ?
How did you get 3 1 3 1 − 2 1 3 1 ≡ 1 0 3 2 9 9 , and similar computations?
Log in to reply
3 1 3 − 2 1 3 can be easily calculated as 1 5 9 0 2 2 7 3 1 3 1 − 2 1 3 1 ≡ 1 0 3 3 3 1 − 2 3 1 = 6 1 7 6 7 1 2 4 8 8 0 0 2 9 9 for 299 you can take 99, witch CASIO handles pretty well.
Log in to reply
is there another way to calculate the remainder when mod 1000 instead of using computer?
How do you know that 3 n − 2 n ≡ 1 0 3 3 1 0 0 0 k + n − 2 1 0 0 0 k + n ?
Log in to reply
Or vice versa?
Log in to reply
You have that 3 1 0 0 k + n ≡ 1 0 3 3 n ∧ 2 2 0 0 k + n ≡ 1 0 3 2 n ⟹ . 3 1 0 0 0 k + n ≡ 1 0 3 3 n ∧ 2 1 0 0 0 k + n ≡ 1 0 3 2 n ⟹ 3 1 0 0 0 k + n − 2 1 0 0 0 k + n ≡ 1 0 3 3 n − 2 n
Lemma 3 1 0 0 0 n + a − 2 1 0 0 0 n + a ≡ 3 a − 2 a ( m o d 1 0 0 0 ) , for n ≥ 1 and a ≥ 3
Prove Lemma From fermat litle theorem 3 1 0 0 0 ≡ 1 m o d 1 0 0 0 . It's mean 3 1 0 0 0 n + a ≡ 3 a ( m o d 1 0 0 0 )
2 1 0 0 0 ≡ 3 7 6 ( m o d 1 0 0 0 ) Suppose that a = 3 + x
2 1 0 0 0 n + 3 + x ≡ 3 7 6 × 2 3 + x ≡ 2 3 + x ≡ 2 a ( m o d 1 0 0 0 )
From apply the lemma:
For next step I use wolframalfa.com for reach the result:
a 2 = 3 2 0 1 3 − 2 2 0 1 3 ≡ 3 1 3 − 2 1 3 ≡ 1 3 1 ( m o d 1 0 0 0 )
a 3 ≡ 3 1 3 1 − 2 1 3 1 ≡ 2 9 9 ( m o d 1 0 0 0 )
a 4 ≡ 3 2 9 9 − 2 2 9 9 ≡ 9 7 9 ( m o d 1 0 0 0 )
a 5 ≡ 3 9 7 9 − 2 9 7 9 ≡ 7 7 9 ( m o d 1 0 0 0 )
a 6 ≡ 3 7 7 9 − 2 7 9 9 ≡ 7 7 9 ( m o d 1 0 0 0 )
So, a 2 0 1 4 ≡ a 1 4 ≡ 7 7 9 ( m o d 1 0 0 0 )
a3 = 3^131 - 2^131 = 299 (mod 1000).... how did you solved this ?? please refrain from giving wolfram alpha as solution... can i solve this mentally??
Log in to reply
Use this fact:
3 1 0 0 n + a ≡ 3 a ( m o d 1 0 0 0 ) , proof by quadratic residue.
2 1 0 0 + a ≡ 2 a ( m o d 1 0 0 0 ) , proof by you can use 2 1 0 ≡ 2 4 ( m o d 1 0 0 0 )
For n ≥ 1 and a ≥ 3
For a 2 , a 3 , a 4 , a 5 can use this such that you get smaller degree.
3 1 0 0 0 ≡ 1 ( m o d 1 0 0 0 ) , it's reason.... (actually, I use wolframalfa too, FLT not reasonable for my step :p )
From euler
3 4 0 0 ≡ 1 ( m o d 1 0 0 0 )
Aplly Quadratic residue we get
3 2 0 0 ≡ 1 ( m o d 1 0 0 0 )
So, 3 2 × 4 0 0 × 3 2 0 0 ≡ 1 ( m o d 1 0 0 0 )
To approach this problem, we must first be able to find the last 3 digits for 3 n and 2 n .
Consider this method for finding the last 3 digit for 3 n , for this case , 3 2 0 1 3 , 3 2 0 1 3 = 3 ( 1 0 − 1 ) 1 0 0 6 . Hence, expanding the binomial expansion, we have :
3 ( 1 0 − 1 ) 1 0 0 6 = 3 [ ( − 1 ) 1 0 0 6 + ( 1 0 0 6 ) ( − 1 ) 1 0 0 5 ( 1 0 ) + 2 ( 1 0 0 6 ) ( 1 0 0 5 ) ( − 1 ) 1 0 0 4 ( 1 0 ) 2 ] (mod 1 0 0 0 )
= 3 [ 1 − 6 0 + 5 0 0 ] (mod 1 0 0 0 )
= 1 3 2 3 = 3 2 3 (mod 1 0 0 0 )
For powers of 2, in this case, if you were to write out 100 powers of 2, you would notice that for 2 n , the cycle repeats in the period of 1 0 0 , excluding 2 1 and 2 2 .
Hence, 2 2 0 1 3 = 2 1 3 = 1 9 2 (mod 1 0 0 0 )
Thus, we now find the value of a 2 , which is equals to 3 2 3 − 1 9 2 = 1 3 1
Repeat the process for finding last 3 digits of 3 n using the binomial expansion and finding last 3 digits of 2 n by taking a mod 1 0 0 on the power, writing a table of first 100 powers of 2 n and refer to. It would be too tedious to type out all 100 powers.
Hence, 3 1 3 1 = 9 4 7 (mod 1 0 0 0 ) , 2 1 3 1 = 2 3 1 = 6 4 8 (mod 1 0 0 0 ) . Thus , a 3 = 2 9 9 (mod 1 0 0 0 ).
Thus, 3 2 9 9 = 6 6 7 (mod 1 0 0 0 ) , 2 2 9 9 = 2 9 9 = 6 8 8 (mod 1 0 0 0 ) . Hence , a 4 = 9 7 9 (mod 1 0 0 0 ).
3 9 7 9 = 8 6 7 (mod 1 0 0 0 ) , 2 9 7 9 = 2 7 9 = 7 7 9 (mod 1 0 0 0 ) . Hence , a 5 = 7 7 9 (mod 1 0 0 0 )
3 7 7 9 = 8 6 7 (mod 1 0 0 0 ) , 2 7 7 9 = 2 7 9 = 7 7 9 (mod 1 0 0 0 ) . Hence , a 6 = 7 7 9 (mod 1 0 0 0 )
From this value of a 6 , where the powers of 2 and 3 regenerates back the value of its power. Hence, we can deduce that
a n + 1 = a n
Thus, a 2 0 1 3 = a 6 = 7 7 9
I did not plan to write a solution until I saw my solution is quite different from the solutions posted so far. I am not picking this one to comment. I just need some place to write my solution.
First, notice that a n is odd for n ≥ 1 . If m = 2 k + 1 ≥ 3 , then 3 m − 2 m ≡ 3 ⋅ 9 k ≡ 3 m o d 8 . Hence a n ≡ 3 m o d 8 for n ≥ 2 and also a n ≡ 3 m o d 4 for n ≥ 2 .
Next, if m = 4 k + 3 , then 3 m − 2 m = 3 3 ⋅ 8 1 k − 2 3 ⋅ 1 6 k ≡ 4 m o d 5 . Hence a n ≡ 4 m o d 5 for n ≥ 3 .
By Chinese Remainder Theorem, we have a n ≡ − 1 m o d 2 0 for n ≥ 3 .
Futuermore, if m = 2 0 k − 1 , then by Euler's Theorem 3 m − 2 m = 3 − 1 ⋅ 3 2 0 k − 2 − 1 ⋅ 2 2 0 k ≡ 1 7 − 1 3 = 4 m o d 2 5 . Hence a n ≡ 4 m o d 2 5 for n ≥ 4 .
By Chinese Remainder Theorem again, we have a n ≡ 7 9 m o d 1 0 0 for n ≥ 4 .
Finally, if m = 1 0 0 k + 7 9 , then by Euler's Theorem again 3 m − 2 m ≡ 3 7 9 − 2 7 9 = 3 ( 1 0 − 1 ) 3 9 − 2 ( 5 − 1 ) 3 9 ≡ 2 9 m o d 1 2 5 by binomial expansion. Hence a n ≡ 2 9 m o d 1 2 5 for n ≥ 5 .
Apply Chinese Remainder Theorem one more time, we have a n ≡ 7 7 9 m o d 1 0 0 0 for n ≥ 5 .
Log in to reply
I think this ones the best way...I also did it by repeated application of the chinese remainder theorem.....
Problem Loading...
Note Loading...
Set Loading...
Since we are asked for the last 3 digits of a 2 0 1 4 we can take the modulo 1 0 3
3 2 0 1 3 − 2 2 0 1 3 ≡ 1 0 3 3 1 3 − 2 1 3 ≡ 1 0 3 1 3 1
3 1 3 1 − 2 1 3 1 ≡ 1 0 3 2 9 9
3 2 9 9 − 2 2 9 9 ≡ 1 0 3 9 7 9
3 9 7 9 − 2 9 7 9 ≡ 1 0 3 7 7 9
3 7 7 9 − 2 7 7 9 ≡ 1 0 3 7 7 9
So we get that a i ≡ 1 0 3 7 7 9 ∀ i ≥ 5
Hence a 2 0 1 4 ≡ 1 0 3 7 7 9