Difference between revisions of "Mock AIME 3 Pre 2005 Problems/Problem 10"
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
==Solution== | ==Solution== | ||
− | {{ | + | We can easily express <math>a_n</math> as the following sum: |
+ | <cmath> a_n = \sum_{k=0}^{n-1} 2^k (n-k)^2 </cmath> | ||
− | ==See | + | This can be broken down into three simpler sums: |
+ | <cmath> a_n = \underbrace{\sum_{k=0}^{n-1} n^2 2^k}_A - \underbrace{\sum_{k=0}^{n-1} 2kn 2^k}_B + \underbrace{\sum_{k=0}^{n-1} k^2 2^k}_C </cmath> | ||
+ | |||
+ | Using finite calculus, one can easily derive the following classical sums: | ||
+ | <cmath> D = \sum_{k=0}^{n-1} 2^k = 2^n - 1 </cmath> | ||
+ | <cmath> E = \sum_{k=0}^{n-1} k2^k = (n-2)2^n + 2 </cmath> | ||
+ | <cmath> F = \sum_{k=0}^{n-1} k(k-1)2^k = (n^2-5n+8)2^n - 8 </cmath> | ||
+ | |||
+ | Using these, we can now compute: | ||
+ | <cmath> A = n^2\cdot \sum_{k=0}^{n-1} 2^k = n^2D = n^2 2^n - n^2 </cmath> | ||
+ | <cmath> B = 2n\sum_{k=0}^{n-1} k2^k = 2nE = 2n(n-2)2^n + 4n </cmath> | ||
+ | <cmath> C = \sum_{k=0}^{n-1} k^2 2^k = E+F = (n^2-4n+6)2^n - 6 </cmath> | ||
+ | |||
+ | And hence we get the closed form for <math>a_n</math>: | ||
+ | |||
+ | <cmath> a_n = A-B+C = 6\cdot 2^n - n^2 - 4n - 6 </cmath> | ||
+ | |||
+ | Now we can compute <math>a_n \bmod 1000</math> as follows: | ||
+ | |||
+ | We know that <math>\phi(125)=100</math> (where <math>\phi</math> is the [[Euler's totient function]]), hence <math>2^{100}\equiv 1 \pmod{125}</math>, and thus <math>2^{2000}\equiv 1 \pmod{125}</math>. Thus there is an integer <math>k</math> such that <math>2^{2000} = 125k + 1</math>. And then <math>2^{2004} = 2000k + 16</math>, hence <math>2^{2004} \equiv 16 \pmod{1000}</math>. | ||
+ | |||
+ | Therefore we have <math>a_n \equiv 6\cdot 16 - 4^2 - 4\cdot 4 - 6 = \boxed{058} \pmod{1000}</math>. | ||
+ | |||
+ | ==See Also== | ||
+ | {{Mock AIME box|year=Pre 2005|n=3|num-b=9|num-a=11}} |
Latest revision as of 09:36, 4 April 2012
Problem
is a sequence of positive integers such that
for all integers . Compute the remainder obtained when is divided by if .
Solution
We can easily express as the following sum:
This can be broken down into three simpler sums:
Using finite calculus, one can easily derive the following classical sums:
Using these, we can now compute:
And hence we get the closed form for :
Now we can compute as follows:
We know that (where is the Euler's totient function), hence , and thus . Thus there is an integer such that . And then , hence .
Therefore we have .
See Also
Mock AIME 3 Pre 2005 (Problems, Source) | ||
Preceded by Problem 9 |
Followed by Problem 11 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 |