Difference between revisions of "2004 AMC 12B Problems/Problem 25"

(Alternate Solution)
m (Solution 1)
 
(7 intermediate revisions by 3 users not shown)
Line 4: Line 4:
  
 
<math>\mathrm{(A)}\ 194 \qquad \mathrm{(B)}\ 195 \qquad \mathrm{(C)}\ 196 \qquad \mathrm{(D)}\ 197 \qquad \mathrm{(E)}\ 198</math>
 
<math>\mathrm{(A)}\ 194 \qquad \mathrm{(B)}\ 195 \qquad \mathrm{(C)}\ 196 \qquad \mathrm{(D)}\ 197 \qquad \mathrm{(E)}\ 198</math>
== Solution ==
+
== Solution 1==
  
Given <math>n</math> digits, there must be exactly one power of <math>2</math> with <math>n</math> digits such that the first digit is <math>1</math>. Thus <math>S</math> contains <math>603</math> elements with a first digit of <math>1</math>. For each number in the form of <math>2^k</math> such that its first digit is <math>1</math>, then <math>2^{k+1}</math> must either have a first digit of <math>2</math> or <math>3</math>, and <math>2^{k+2}</math> must have a first digit of <math>4,5,6,7</math>. Thus there are also <math>603</math> numbers with first digit <math>\{2,3\}</math> and <math>603</math> numbers with first digit <math>\{4,5,6,7\}</math>. By using [[complementary counting]], there are <math>2004 - 3 \times 603 = 195</math> elements of <math>S</math> with a first digit of <math>\{8,9\}</math>. Now, <math>2^k</math> has a first of <math>\{8,9\}</math> [[iff|if and only if]] the first digit of <math>2^{k-1}</math> is <math>4</math>, so there are <math>\boxed{195} \Rightarrow \mathrm{(B)}</math> elements of <math>S</math> with a first digit of <math>4</math>.
+
Given <math>n</math> digits, there must be exactly one power of <math>2</math> with <math>n</math> digits such that the first digit is <math>1</math>. Thus <math>S</math> contains <math>603</math> elements with a first digit of <math>1</math>. For each number in the form of <math>2^k</math> such that its first digit is <math>1</math>, then <math>2^{k+1}</math> must either have a first digit of <math>2</math> or <math>3</math>, and <math>2^{k+2}</math> must have a first digit of <math>4,5,6,7</math>. Thus there are also <math>603</math> numbers with first digit <math>\{2,3\}</math> and <math>603</math> numbers with first digit <math>\{4,5,6,7\}</math>. By using [[complementary counting]], there are <math>2004 - 3 \times 603 = 195</math> elements of <math>S</math> with a first digit of <math>\{8,9\}</math>. Now, <math>2^k</math> has a first digit of <math>\{8,9\}</math> [[iff|if and only if]] the first digit of <math>2^{k-1}</math> is <math>4</math>, so there are <math>\boxed{195} \Rightarrow \mathrm{(B)}</math> elements of <math>S</math> with a first digit of <math>4</math>.
  
== Alternate Solution ==
+
== Solution 2 ==
  
 
We can make the following chart for the possible loops of leading digits:
 
We can make the following chart for the possible loops of leading digits:
Line 18: Line 18:
  
  
Thus each loop from <math>1 \rightarrow 1</math> can either have <math>3</math>or<math>4</math>numbers. Let there be <math>x</math> of the sequences of <math>4</math> numbers, and let there be <math>y</math> of the sequences of <math>3</math> numbers. We note that a <math>4</math> appears only in the loops of <math>4</math>, and also we are given that <math>2^{2004}</math> has <math>604</math> digits.
+
Thus each loop from <math>1 \rightarrow 1</math> can either have <math>3</math> or <math>4</math> numbers. Let there be <math>x</math> of the sequences of <math>3</math> numbers, and let there be <math>y</math> of the sequences of <math>4</math> numbers. We note that a <math>4</math> appears only in the loops of <math>4</math>, and also we are given that <math>2^{2004}</math> has <math>604</math> digits.
 
<cmath>3x+4y=2004</cmath>
 
<cmath>3x+4y=2004</cmath>
 
<cmath>x+y=603</cmath>
 
<cmath>x+y=603</cmath>
 
Solving gives <math> x = 408</math> and <math>y = 195</math>, thus the answer is <math>(B)</math>.
 
Solving gives <math> x = 408</math> and <math>y = 195</math>, thus the answer is <math>(B)</math>.
--[[User:Az phx brandon jiang|Az phx brandon jiang]] 19:49, 26 July 2014 (EDT)
 
  
 
== See also ==
 
== See also ==

Latest revision as of 19:12, 15 October 2016

Problem

Given that $2^{2004}$ is a $604$-digit number whose first digit is $1$, how many elements of the set $S = \{2^0,2^1,2^2,\ldots ,2^{2003}\}$ have a first digit of $4$?

$\mathrm{(A)}\ 194 \qquad \mathrm{(B)}\ 195 \qquad \mathrm{(C)}\ 196 \qquad \mathrm{(D)}\ 197 \qquad \mathrm{(E)}\ 198$

Solution 1

Given $n$ digits, there must be exactly one power of $2$ with $n$ digits such that the first digit is $1$. Thus $S$ contains $603$ elements with a first digit of $1$. For each number in the form of $2^k$ such that its first digit is $1$, then $2^{k+1}$ must either have a first digit of $2$ or $3$, and $2^{k+2}$ must have a first digit of $4,5,6,7$. Thus there are also $603$ numbers with first digit $\{2,3\}$ and $603$ numbers with first digit $\{4,5,6,7\}$. By using complementary counting, there are $2004 - 3 \times 603 = 195$ elements of $S$ with a first digit of $\{8,9\}$. Now, $2^k$ has a first digit of $\{8,9\}$ if and only if the first digit of $2^{k-1}$ is $4$, so there are $\boxed{195} \Rightarrow \mathrm{(B)}$ elements of $S$ with a first digit of $4$.

Solution 2

We can make the following chart for the possible loops of leading digits: \[1 \rightarrow 2 \rightarrow 4 \rightarrow 8 \rightarrow 1\] \[1 \rightarrow 2 \rightarrow 4 \rightarrow 9 \rightarrow 1\] \[1 \rightarrow 2 \rightarrow 5 \rightarrow 1\] \[1 \rightarrow 3 \rightarrow 6 \rightarrow 1\] \[1 \rightarrow 3 \rightarrow 7 \rightarrow 1\]


Thus each loop from $1 \rightarrow 1$ can either have $3$ or $4$ numbers. Let there be $x$ of the sequences of $3$ numbers, and let there be $y$ of the sequences of $4$ numbers. We note that a $4$ appears only in the loops of $4$, and also we are given that $2^{2004}$ has $604$ digits. \[3x+4y=2004\] \[x+y=603\] Solving gives $x = 408$ and $y = 195$, thus the answer is $(B)$.

See also

2004 AMC 12B (ProblemsAnswer KeyResources)
Preceded by
Problem 24
Followed by
Last problem
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 12 Problems and Solutions

The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions. AMC logo.png