Problem 9. (8 points) Let ana_nan be a sequence such that a1=2,a2=ka_1=2,a_2=ka1=2,a2=k for some kkk and for all n≥3n\ge3n≥3, an=an−1an−2a_n=a_{n-1}^{a_{n-2}}an=an−1an−2. Let p,q,r,sp,q,r,sp,q,r,s be the values of a1024a_{1024}a1024 where k=4,5,6,7k=4,5,6,7k=4,5,6,7, respectively. Find the last two digits of p+q+r+sp+q+r+sp+q+r+s.
Note by Cody Johnson 7 years, 6 months ago
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
_italics_
**bold**
__bold__
- bulleted- list
1. numbered2. list
paragraph 1paragraph 2
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
This is a quote
# I indented these lines # 4 spaces, and now they show # up as a code block. print "hello world"
\(
\)
\[
\]
2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
I think it's 46.
Log in to reply
I do it this way. I start with k=4k=4k=4. First we try small numbers first.
a1=2,a2=4,a3=42=16,a4=164=65536=‾36(mod100),a5=6553616...a_1 = 2, a_2 = 4, a_3 = 4^2 = 16, a_4 = 16^4 = 65536 \overline= 36 (mod 100), a_5 = 65536^{16} ... a1=2,a2=4,a3=42=16,a4=164=65536=36(mod100),a5=6553616...
It would be laborious for us to calculate term a5a_5a5, so we try to trace the pattern, by testing some small values.
361=3636^1 = 36361=36
362=1296=‾96(mod100)36^2 = 1296 \overline= 96 (mod 100)362=1296=96(mod100)
363=‾96×36(mod10000)=‾56(mod100)36^3 \overline= 96 \times 36 (mod 10000) \overline= 56 (mod 100)363=96×36(mod10000)=56(mod100)
364=‾56×36(mod10000)=‾16(mod100)36^4 \overline= 56 \times 36 (mod 10000) \overline = 16 (mod 100)364=56×36(mod10000)=16(mod100)
365=‾16×36(mod10000)=‾76(mod100)36^5 \overline= 16 \times 36 (mod 10000) \overline = 76 (mod 100)365=16×36(mod10000)=76(mod100)
366=‾76×36(mod10000)=‾36(mod100)36^6 \overline= 76 \times 36 (mod 10000) \overline = 36 (mod 100)366=76×36(mod10000)=36(mod100),
367=‾36×36(mod10000)=‾96(mod100)36^7 \overline= 36 \times 36 (mod 10000) \overline = 96 (mod 100)367=36×36(mod10000)=96(mod100),
and so on. Obviously, the pattern recurs every 5 terms. Since 16=‾1(mod5)16 \overline= 1 (mod 5)16=1(mod5), so last two digits of 655361665536^{16}6553616 is 363636. Thus, we have 363636 as the last two digits of ppp, since no matter what happens, we have 666 as the last digit of every term except term a1a_1a1 and a2a_2a2, and 6=‾1(mod5)6 \overline= 1 (mod 5) 6=1(mod5).
Then, when k=5k = 5k=5, we have
a1=2,a2=5,a3=52=25,a4=255...a_1 = 2, a_2 = 5, a_3 = 5^2 = 25, a_4 =25^5 ...a1=2,a2=5,a3=52=25,a4=255...
Since 25525^5255 is very hard to calculate, so we try to trace the pattern again,
51=55^1 = 5 51=5
52=255^2 = 2552=25
53=1255^3 = 12553=125
54=6255^4 =62554=625
and so on. Starting from 525^252, last two digits are 252525. Thus, 25525^5255 has 252525 as the last two digits, so as the term a5=2525a_5 = 25^{25}a5=2525. Therefore, qqq has 252525 as the last two digits.
Then, when k=6k = 6k=6, we have
a1=2,a2=6,a3=62=36,a4=366=‾36(mod100),a5=‾36(mod100)...a_1 = 2, a_2 = 6, a_3 = 6^2 = 36, a_4 = 36^6 \overline= 36(mod 100), a_5 \overline= 36 (mod 100) ...a1=2,a2=6,a3=62=36,a4=366=36(mod100),a5=36(mod100)....
Hey! This case is almost the same as when k=4k=4k=4! So, last digits of r=36r = 36r=36
Finally, when k=7k=7k=7, we have
a1=2,a2=7,a3=72=49,a4=497...a_1 = 2, a_2 = 7, a_3 = 7^2 = 49, a_4 = 49^7 ... a1=2,a2=7,a3=72=49,a4=497...
Again, for the last time in this problem, we trace the pattern.
491=4949^1 = 49491=49
492=240149^2 = 2401492=2401
493=‾01×49(mod100)=‾49(mod100)49^3 \overline= 01 \times 49 (mod 100) \overline = 49 (mod 100)493=01×49(mod100)=49(mod100)
494=‾49×49(mod10000)=‾01(mod100)49^4 \overline= 49 \times 49 (mod 10000) \overline = 01 (mod 100)494=49×49(mod10000)=01(mod100)
and so on. Obviously, the pattern recurs every two terms. Since 7=‾1(mod2)7 \overline= 1(mod 2)7=1(mod2), so 497=‾49(mod100)49^7 \overline= 49(mod 100)497=49(mod100), so as term a5=49343=‾49(mod100)a_5 = 49^{343} \overline= 49(mod 100)a5=49343=49(mod100). This implies that rrr has last two digits of 494949.
In the end, p+q+r+s=36+25+36+49=‾46(mod100)p+q+r+s = 36+25+36+49 \overline= \boxed {46}(mod 100)p+q+r+s=36+25+36+49=46(mod100).
Some Latex suggestions. Use:
\pmod n
which comes out as (modn) \pmod n (modn) which looks nicer.
@Anqi Li – Okay, I appreciate that and I will remember that
Correct! 8 points for you!
The last two digits of P=36,Q=25,R=36,S=49.Thus Last two digits of P+Q+R+S=46
Can you explain the second sentence? Do you mean that a1024a_{1024}a1024has 444 possible values or other thing else?
When k=4k = 4k=4 , a1024=pa_{1024} = pa1024=p and when k=5k = 5k=5 , a1024=qa_{1024} = qa1024=q and so on .
Okay, I got it. Thanks.
i dont know sir can u liease teach me i will be very glad to get teachings from you
Okay, first of all, I start with k=4k=4k=4. Then, we follow the rules to define the next term of the sequence, we have a1=2,a2=k=4,a3=a(3−1)a(3−2)=a2a1=42=16,and a4=164=65536a_1 = 2, a_2 = k = 4, a_3 = a_{(3-1)}^{a_{(3-2)}} = a_2^{a_1} = 4^2 = 16, \text{and } a_4 = 16^4 = 65536a1=2,a2=k=4,a3=a(3−1)a(3−2)=a2a1=42=16,and a4=164=65536. So, why I write 65536=‾36(mod100)65536 \overline= 36 \pmod {100}65536=36(mod100) is because 100∣65536−36100|65536 - 36100∣65536−36. So, you may ask me why I can't try 136,236136, 236136,236 or bigger, yes, you can. But remember we need last two digits. It is all about Modular Arithmetic. So, if you don't understand or don't know what is Modular Arithmetic, click on the link. (By the way, you have to understand the main property of modular, that is when a=‾b(modn)a\overline= b \pmod na=b(modn), that means n∣a−bn|a-bn∣a−b.)
Now, let's move on to the line 7. (I expect you understand line 5 and 6) It would be laborious for us to calculate 36336^3363 (In this competition, it is stated clearly that calculator or any calculating program is prohibited, so this way is faster and better), so I take the last two digits of 1296, which is 96, then since 36336^3363 is equal to 36 times of 1296, so I multiply 96 with 36, and this process goes on and on (But I stopped it when it reaches 36736^7367, since it is enough to prove that the pattern of the last two digits is recursive). So, you may ask me why I write (mod10000)\pmod {10000}(mod10000) instead of (mod100) or (mod1000)\pmod{100} \text{ or } \pmod{1000}(mod100) or (mod1000), from line 7 to line 12. Yes, you can, if you want to, there is no right and wrong about that, as long as your statement satisfy the main property I listed out. Okay, back to the solution, as we know, 6=‾1(mod5)6 \overline= 1\pmod56=1(mod5), so from here it indicates the first term in the pattern. Therefore, ppp has 36 as its last two digits, since the exponent ends with 6.
Then, we now move on to the case when k=5k=5k=5. Do you realize that except term a1a_1a1 and a2a_2a2, all of them ends with 25. This implies to every term and qqq execpt term a1a_1a1 and a2a_2a2 has 25 as the last two digits.
Alright, for the case when k=6k=6k=6 and k=7k=7k=7, I use the same way, even though the case when k=6k=6k=6, I skipped a lot, since the exponent ends with 6, just like when k=4k=4k=4. Finally, sum up p+q+r+sp+q+r+sp+q+r+s, we have 46 as the last two digits.
So, I had try my best to explain, I hope you had understand. This question tests you Pattern Recognition the most, since you have to check out the pattern what has happened to the last two digits when the exponents are different. Otherwise, if you choose to use brute force, then you will have to calculate for 1024 times, that would drive you nuts. (I can't imagine what is the real value of a1024a_{1024}a1024...)
Problem Loading...
Note Loading...
Set Loading...
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
I think it's 46.
Log in to reply
I do it this way. I start with k=4. First we try small numbers first.
a1=2,a2=4,a3=42=16,a4=164=65536=36(mod100),a5=6553616...
It would be laborious for us to calculate term a5, so we try to trace the pattern, by testing some small values.
361=36
362=1296=96(mod100)
363=96×36(mod10000)=56(mod100)
364=56×36(mod10000)=16(mod100)
365=16×36(mod10000)=76(mod100)
366=76×36(mod10000)=36(mod100),
367=36×36(mod10000)=96(mod100),
and so on. Obviously, the pattern recurs every 5 terms. Since 16=1(mod5), so last two digits of 6553616 is 36. Thus, we have 36 as the last two digits of p, since no matter what happens, we have 6 as the last digit of every term except term a1 and a2, and 6=1(mod5).
Then, when k=5, we have
a1=2,a2=5,a3=52=25,a4=255...
Since 255 is very hard to calculate, so we try to trace the pattern again,
51=5
52=25
53=125
54=625
and so on. Starting from 52, last two digits are 25. Thus, 255 has 25 as the last two digits, so as the term a5=2525. Therefore, q has 25 as the last two digits.
Then, when k=6, we have
a1=2,a2=6,a3=62=36,a4=366=36(mod100),a5=36(mod100)....
Hey! This case is almost the same as when k=4! So, last digits of r=36
Finally, when k=7, we have
a1=2,a2=7,a3=72=49,a4=497...
Again, for the last time in this problem, we trace the pattern.
491=49
492=2401
493=01×49(mod100)=49(mod100)
494=49×49(mod10000)=01(mod100)
and so on. Obviously, the pattern recurs every two terms. Since 7=1(mod2), so 497=49(mod100), so as term a5=49343=49(mod100). This implies that r has last two digits of 49.
In the end, p+q+r+s=36+25+36+49=46(mod100).
Log in to reply
Some Latex suggestions. Use:
which comes out as (modn) which looks nicer.
Log in to reply
Correct! 8 points for you!
The last two digits of P=36,Q=25,R=36,S=49.Thus Last two digits of P+Q+R+S=46
Can you explain the second sentence? Do you mean that a1024has 4 possible values or other thing else?
Log in to reply
When k=4 , a1024=p and when k=5 , a1024=q and so on .
Log in to reply
Okay, I got it. Thanks.
i dont know sir can u liease teach me i will be very glad to get teachings from you
Log in to reply
Okay, first of all, I start with k=4. Then, we follow the rules to define the next term of the sequence, we have a1=2,a2=k=4,a3=a(3−1)a(3−2)=a2a1=42=16,and a4=164=65536. So, why I write 65536=36(mod100) is because 100∣65536−36. So, you may ask me why I can't try 136,236 or bigger, yes, you can. But remember we need last two digits. It is all about Modular Arithmetic. So, if you don't understand or don't know what is Modular Arithmetic, click on the link. (By the way, you have to understand the main property of modular, that is when a=b(modn), that means n∣a−b.)
Now, let's move on to the line 7. (I expect you understand line 5 and 6) It would be laborious for us to calculate 363 (In this competition, it is stated clearly that calculator or any calculating program is prohibited, so this way is faster and better), so I take the last two digits of 1296, which is 96, then since 363 is equal to 36 times of 1296, so I multiply 96 with 36, and this process goes on and on (But I stopped it when it reaches 367, since it is enough to prove that the pattern of the last two digits is recursive). So, you may ask me why I write (mod10000) instead of (mod100) or (mod1000), from line 7 to line 12. Yes, you can, if you want to, there is no right and wrong about that, as long as your statement satisfy the main property I listed out. Okay, back to the solution, as we know, 6=1(mod5), so from here it indicates the first term in the pattern. Therefore, p has 36 as its last two digits, since the exponent ends with 6.
Then, we now move on to the case when k=5. Do you realize that except term a1 and a2, all of them ends with 25. This implies to every term and q execpt term a1 and a2 has 25 as the last two digits.
Alright, for the case when k=6 and k=7, I use the same way, even though the case when k=6, I skipped a lot, since the exponent ends with 6, just like when k=4. Finally, sum up p+q+r+s, we have 46 as the last two digits.
So, I had try my best to explain, I hope you had understand. This question tests you Pattern Recognition the most, since you have to check out the pattern what has happened to the last two digits when the exponents are different. Otherwise, if you choose to use brute force, then you will have to calculate for 1024 times, that would drive you nuts. (I can't imagine what is the real value of a1024...)