2 1 − 2 2 + 2 3 − 2 4 + 2 5 − 2 6 + 2 7 − … + 2 2 0 1 3
Let a be the value of the expression above. Find the last two digits of a .
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.
Although your final answer is right, it's impractical to actually calculate the "period" of 2 0 as you can easily make plenty of arithmetic errors. And your "period" is not a rigorous proof, you have only observed that pattern repeats after 20 terms but you didn't explain why it happens.
What I would prefer to do is set b = 3 a − 2 = 2 2 0 1 4 then apply Chinese Remainder Theorem for modulo 1 0 0 = 4 × 2 5 . Noting that 4 , 2 5 are coprime. We have the linear congruences: b ≡ 0 ( m o d 4 ) , and for modulo 2 5 : b ≡ 2 2 0 1 4 m o d ϕ ( 2 5 ) ≡ 2 1 4 ≡ ( 2 7 ) 2 ≡ 3 2 ≡ 9 .
By CRT, we get: b ≡ 8 4 ( m o d 1 0 0 ) ⇒ 3 a ≡ 8 6 ( m o d 1 0 0 )
⇒ 3 a ≡ 8 6 + 1 0 0 ( m o d 1 0 0 ) ⇒ a ≡ 6 2 ( m o d 1 0 0 ) .
Log in to reply
Can you explain the mod 25 part a bit more elaborately. I couldn't understand how did Euler's totient function phi has come in here?
Log in to reply
Euler's totient function and Euler's theorem .
Log in to reply
@Pi Han Goh – I know them, I just couldn't understand the application part
Log in to reply
@Puneet Pinku – Write down the exact step where you don't understand.
Log in to reply
@Pi Han Goh – Calculation of mod25 part?
Log in to reply
@Puneet Pinku – In the wiki I've provided above, a ϕ ( n ) ≡ 1 ( m o d n ) , where g cd ( a , n ) = 1 . In this case, a = 2 , n = 2 5 .
Log in to reply
@Pi Han Goh – So we get 2 2 0 ≡ m o d 2 5 . After that...
Log in to reply
@Puneet Pinku – NO. it's 2 2 0 ≡ 1 ( m o d 2 5 ) . Now, we want to find 2 2 0 1 4 m o d 2 5 , which is just 2 2 0 1 4 m o d ( ϕ ( 2 5 ) ) m o d 2 5 by Euler's Theorem.
Log in to reply
@Pi Han Goh – Ah! I see.. Now how did the 2^14 turn into 3^2
Log in to reply
@Puneet Pinku – Follow the steps that I've given above.
Log in to reply
@Pi Han Goh – Okay! But why is 100 added to the remainder after getting 3a ≡ m o d 25 is obtained.
Log in to reply
@Puneet Pinku – If A ≡ B ( m o d C ) , then A ≡ B + C ( m o d C ) is true as well.
Log in to reply
@Pi Han Goh – Thankyou very much I now understand it completely.
Euler's theorem can be used if a and n are co-prime.
Same query as Kartik According to the Theorem a ϕ ( n ) ≡ 1 m o d n
Both a and n should be coprime. However 2 and 100 are not. How does the solution work still work.
It should be noted that 2 4 0 ≡ 7 6 m o d 1 0 0
Great Soution However!
Log in to reply
Yes, you and @Kartik Sharma are correct; that was a silly oversight on my part. It was just lucky that the wrong method produced the right answer. I've found a correct method and have made the appropriate edits. Thanks for pointing out my mistake. :)
You could use the chinese remainder though to divide the task of finding mod 100 into finding mod 4 and mod 25 respectively, that way 25 and 2 are coprime
I started by noticing ( 2 3 − 2 2 ) + ( 2 5 − 2 4 ) = 2 0 , and the next set of four powers of two would be ( 2 7 − 2 6 ) + ( 2 9 − 2 8 ) = 2 4 ⋅ ( 2 3 − 2 2 + 2 5 − 2 4 ) = 1 6 ⋅ 2 0 = 3 2 0 , and continuing this pattern we keep having as last digits ...20.
Since there are 2012 of such terms to account for (we skipped 2 1 ), we would add 2 0 1 2 / 4 = 5 0 3 of these 20s. It is easy to see that this gives last digits ...60.
Finally, adding in 2 1 = 2 , we get 6 2 .
nice solution
that was an awsomest answer, the simplest! cheers!
Math is fun.Let it be enjoyed.
Wow, clear for who doesn't learn any theorem!
2 1 − 2 2 + 2 3 + . . . + 2 2 0 1 3 = 2 1 + 2 2 ∗ 1 + 2 2 ∗ 2 + . . + 2 2 ∗ 1 0 0 6 It is easy to realize that: 2 2 ∗ ( 1 0 ∗ i + 1 ) + 2 2 ∗ ( 1 0 ∗ i + 2 ) + 2 2 ∗ ( 1 0 ∗ i + 3 ) + . . . + 2 2 ∗ ( 1 0 ∗ i + 1 0 ) m o d 1 0 0 = 0 with i=0..99 So: 2 1 − 2 2 + 2 3 + . . . + 2 2 0 1 3 m o d 1 0 0 = 2 1 + 2 2 0 0 2 + 2 2 0 0 4 + . . . + 2 2 0 1 2 m o d 1 0 0 = 6 2
Lets try to sum in the usual way:
S = ( 2 1 + 2 3 + . . . . 2 2 0 1 3 ) − ( 2 2 + 2 4 + . . . . . 2 2 0 1 2 )
= 2 ( 2 0 + 2 2 + . . . . 2 2 0 1 2 ) − ( 2 0 + 2 2 + . . . . . 2 2 0 1 2 ) + 1
= ( 2 0 + 2 2 + 2 4 + . . . . . 2 2 0 1 2 ) + 1
The expression in () is an AP with a=1, r=2², n=1007
Which gives S = 3 4 1 0 0 7 − 1 + 1
Observe the following:
3 4 1 − 1 = 0 1
3 4 3 − 1 = 2 1
3 4 5 − 1 = 3 4 1
3 4 7 − 1 = . . . 6 1
3 4 9 − 1 = . . . . 8 1
3 4 1 1 − 1 = . . . . . 0 1
So, 3 4 1 0 0 7 − 1 = . . . . . . . 6 1
Hence S will end in 61+1 = 6 2
Since we only need the last 2 digits, we can do all of our computation in mod 100.
First, we find the residues (mod 100) of the powers of 2, just doubling each time and subtracting 100 if necessary:
2 1 ≡ 2 ( m o d 1 0 0 )
2 2 ≡ 4
2 3 ≡ 8
2 4 ≡ 1 6
2 5 ≡ 3 2
2 6 ≡ 6 4
2 7 ≡ 2 8
2 8 ≡ 5 6
2 9 ≡ 1 2
2 1 0 ≡ 2 4
2 1 1 ≡ 4 8
2 1 2 ≡ 9 6
2 1 3 ≡ 9 2
2 1 4 ≡ 8 4
2 1 5 ≡ 6 8
2 1 6 ≡ 3 6
2 1 7 ≡ 7 2
2 1 8 ≡ 4 4
2 1 9 ≡ 8 8
2 2 0 ≡ 7 6
2 2 1 ≡ 5 2
2 2 2 ≡ 2 2 ≡ 4
We find that every 20 powers of 2, the residue in mod 100 repeats.
Next, we rearrange the original equation to 2 2 0 1 3 − 2 1 − 2 3 − 2 5 . . . − 2 2 0 1 1 . We can do this because 2 n + 1 is twice 2 n , so 2 n − 2 n + 1 = − 2 n .
In mod 100, this is equivalent to 2 1 3 − 2 1 − 1 0 0 ( 2 3 ) − 1 0 0 ( 2 5 ) − 1 0 0 ( 2 7 ) − 1 0 0 ( 2 9 ) − 1 0 0 ( 2 1 1 ) − 1 0 0 ( 2 1 3 ) −
1 0 1 ( 2 1 5 ) − 1 0 1 ( 2 1 7 ) − 1 0 1 ( 2 1 9 ) − 1 0 0 ( 2 2 1 ) ≡ 2 1 3 − 2 1 − 2 1 5 − 2 1 7 − 2 1 9 ≡
9 2 − 2 − 6 8 − 7 2 − 8 8 ≡ 6 2 ( m o d 1 0 0 ) .
First, rewrite the sum as
= = = 2 1 − 2 2 + 2 3 − 2 4 + 2 5 − … + 2 2 0 1 3 2 1 + ( − 2 2 + 2 3 ) + ( − 2 4 + 2 5 ) + … + ( − 2 2 0 1 2 + 2 2 0 1 3 ) 2 + 2 2 + 2 4 + 2 6 + … + 2 2 0 1 2 2 + 4 1 + 4 2 + 4 3 + … + 4 1 0 0 6 .
Now, note that 4 1 + 4 2 ≡ 2 0 ( m o d 1 0 0 ) . Multiplying by 4 2 gives us 4 3 + 4 4 ≡ 3 2 0 ≡ 2 0 ( m o d 1 0 0 ) . Continuing this process yields 4 2 n − 1 + 4 2 n ≡ 2 0 ( m o d 1 0 0 ) . Therefore
≡ = ≡ 2 + ( 4 1 + 4 2 ) + ( 4 3 + 4 4 ) + … + ( 4 1 0 0 5 + 4 1 0 0 6 ) 2 + 5 0 3 2 0 + … + 2 0 ( m o d 1 0 0 ) 1 0 0 6 2 6 2 ( m o d 1 0 0 ) .
xt=0; a= [4 8 16 32 64 28 56 12 24 48 96 92 84 68 36 72 44 88 76 52]; for y= 2:2013; if rem (y,20) == 0 c= 20 ; else c = rem (y,20); end x=a(c); xt = xt+x;
end disp (rem(xt+2,100))
Once again, not the best way to find a solution, as it certainly doesn't prove the existence of the solution:
1 2 3 4 5 6 7 8 9 10 |
|
The comments at the bottom, in order, are (respectively) the pattern of the one's place digit, and the pattern of the ten's place digit. This works until until scientific notation kicks in, so i to 100 is actually quite overkill.
Since the first pattern has 4 numbers, 2013 (2012 divisible by 4) ends on the first number, which is 2.
The second pattern has 20, and after 2000 it ends on the 13th number, which is 6.
So the sum of the sequence will end with '62'
(2^n+2)/3, where n%4=2..... the second last digit when (2^n+2)/3 is ((n-2/4)%5)*(2)...In our case n=2014.... So ((2014-2/4)%5)(2)=(503%5)(2) =(3)(2)=6...Here the last digit of 2^n is 4..by n%4...So (2^n+2) has 6 as its last digit..:. (2^n+2)/3 has 2 as its last digit..So last 2 digits are 62..
Let's calculate just remainders mod 4 and 25. Mod 4 is easy: the remainder is 2. Mod 25: subtract 1 = 2 0 from the sum and notice that it can be rewritten as ∑ k = 0 1 0 0 6 4 k . When we notice that 4 5 = 1 0 2 4 ≡ − 1 , we know that any 10 consecutive summands give a remainder of 0, so the whole sum's remainder is ∑ k = 0 6 4 k ≡ 1 + 4 + 1 6 + 1 4 + 6 − 1 − 4 = 1 1 ; the original sum's remainder then must have been 12.
Chinese remainder theorem guarantees that there's exactly one number ≥ 0 , < 1 0 0 that satisfies the two congruences; that number is easily guessed to be 62 (not 12, definitely not 37 or 87).
Problem Loading...
Note Loading...
Set Loading...
The sum can be written as
a = 2 ∗ ( 2 0 − 2 1 + 2 2 − 2 3 + . . . . . + 2 2 0 1 2 ) =
2 ∗ ( − 2 ) − 1 ( − 2 ) 2 0 1 3 − 1 = 3 2 ( 2 2 0 1 3 + 1 ) .
Now in order to find the last two digits of a we will need to determine a m o d 1 0 0 . Now 2 2 2 ≡ 2 2 m o d 1 0 0 , i.e., the remainders m o d 1 0 0 have a 'period' of 2 0 , so
2 2 0 0 2 ≡ 2 2 m o d 1 0 0 ⟹ 2 2 0 1 3 ≡ 2 1 3 m o d 1 0 0 ≡ 9 2 m o d 1 0 0 .
Therefore 3 2 ( 2 2 0 1 3 + 1 ) ≡ 3 2 ( 9 3 ) ≡ 6 2 m o d 1 0 0 .
Thus the last two digits of a are 6 2 .