Difference between revisions of "2009 AMC 10B Problems/Problem 21"

(New page: == Problem == What is the remainder when <math>3^0 + 3^1 + 3^2 + \cdots + 3^{2009}</math> is divided by 8? <math>\mathrm{(A)}\ 0\qquad \mathrm{(B)}\ 1\qquad \mathrm{(C)}\ 2\qquad \mathrm{...)
 
(Solution)
Line 9: Line 9:
  
 
== Solution ==
 
== Solution ==
 +
 +
=== Solution 1 ===
 +
 
The sum of any four consecutive powers of 3 is divisible by <math>3^0 + 3^1 + 3^2 +3^3 = 40</math> and hence is divisible by 8. Therefore
 
The sum of any four consecutive powers of 3 is divisible by <math>3^0 + 3^1 + 3^2 +3^3 = 40</math> and hence is divisible by 8. Therefore
: <math>(3^2 + 3^3 + 3^4 + 3^5) + \cdots + (3^{2006} + 3^{2007} + 3^{2008} + 3^{3009})</math>
+
: <math>(3^2 + 3^3 + 3^4 + 3^5) + \cdots + (3^{2006} + 3^{2007} + 3^{2008} + 3^{2009})</math>
 
is divisible by 8.  So the required remainder is <math>3^0 + 3^1 = \boxed {4}</math>. The answer is <math>\mathrm{(D)}</math>.
 
is divisible by 8.  So the required remainder is <math>3^0 + 3^1 = \boxed {4}</math>. The answer is <math>\mathrm{(D)}</math>.
 +
 +
=== Solution 2 ===
 +
 +
We have <math>3^2 = 9 \equiv 1 \pmod 8</math>. Hence for any <math>k</math> we have <math>3^{2k}\equiv 1^k = 1 \pmod 8</math>, and then <math>3^{2k+1} = 3\cdot 3^{2k} \equiv 3\cdot 1 = 3  \pmod 8</math>.
 +
 +
Therefore our sum gives the same remainder modulo <math>8</math> as <math>1 + 3 + 1 + 3 + 1 + \cdots + 1 + 3</math>. There are <math>2010</math> terms in the sum, hence there are <math>2010/2 = 1005</math> pairs <math>1+3</math>, and thus the sum is <math>1005 \cdot 4 = 4020 \equiv 20 \equiv \boxed{4} \pmod 8</math>.
  
 
== See also ==
 
== See also ==
 
{{AMC10 box|year=2009|ab=B|num-b=20|num-a=22}}
 
{{AMC10 box|year=2009|ab=B|num-b=20|num-a=22}}

Revision as of 12:41, 8 March 2009

Problem

What is the remainder when $3^0 + 3^1 + 3^2 + \cdots + 3^{2009}$ is divided by 8?

$\mathrm{(A)}\ 0\qquad \mathrm{(B)}\ 1\qquad \mathrm{(C)}\ 2\qquad \mathrm{(D)}\ 4\qquad \mathrm{(E)}\ 6$

Solution

Solution 1

The sum of any four consecutive powers of 3 is divisible by $3^0 + 3^1 + 3^2 +3^3 = 40$ and hence is divisible by 8. Therefore

$(3^2 + 3^3 + 3^4 + 3^5) + \cdots + (3^{2006} + 3^{2007} + 3^{2008} + 3^{2009})$

is divisible by 8. So the required remainder is $3^0 + 3^1 = \boxed {4}$. The answer is $\mathrm{(D)}$.

Solution 2

We have $3^2 = 9 \equiv 1 \pmod 8$. Hence for any $k$ we have $3^{2k}\equiv 1^k = 1 \pmod 8$, and then $3^{2k+1} = 3\cdot 3^{2k} \equiv 3\cdot 1 = 3  \pmod 8$.

Therefore our sum gives the same remainder modulo $8$ as $1 + 3 + 1 + 3 + 1 + \cdots + 1 + 3$. There are $2010$ terms in the sum, hence there are $2010/2 = 1005$ pairs $1+3$, and thus the sum is $1005 \cdot 4 = 4020 \equiv 20 \equiv \boxed{4} \pmod 8$.

See also

2009 AMC 10B (ProblemsAnswer KeyResources)
Preceded by
Problem 20
Followed by
Problem 22
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
All AMC 10 Problems and Solutions