Difference between revisions of "2007 AIME I Problems/Problem 6"
(→Solution 2) |
|||
Line 8: | Line 8: | ||
Let us keep a careful tree of the possible number of paths around every multiple of <math>13</math>. | Let us keep a careful tree of the possible number of paths around every multiple of <math>13</math>. | ||
− | From <math> | + | From <math>0 \Rightarrow 13</math>, we can end at either <math>12</math> (mult. of 3) or <math>13</math> (mult. of 13). |
*Only <math>1</math> path leads to <math>12</math> | *Only <math>1</math> path leads to <math>12</math> | ||
**Continuing from <math>12</math>, there is <math>1 \cdot 1 = 1</math> way to continue to <math>24</math> | **Continuing from <math>12</math>, there is <math>1 \cdot 1 = 1</math> way to continue to <math>24</math> | ||
− | **There are <math> | + | **There are <math>1 \cdot \left(\frac{24-15}{3} + 1\right) = 4</math> ways to reach <math>26</math>. |
*There are <math>\frac{12 - 0}{3} + 1 = 5</math> ways to reach <math>13</math>. | *There are <math>\frac{12 - 0}{3} + 1 = 5</math> ways to reach <math>13</math>. | ||
** Continuing from <math>13</math>, there are <math>5 \cdot 1 = 5</math> ways to get to <math>24</math> | ** Continuing from <math>13</math>, there are <math>5 \cdot 1 = 5</math> ways to get to <math>24</math> | ||
− | **There are <math>5 \cdot \left(\frac{24-15}{3} + 1 + 1\right) = 25</math> ways (the first 1 to make it inclusive, the second to also jump from <math> | + | **There are <math>5 \cdot \left(\frac{24-15}{3} + 1 + 1\right) = 25</math> ways (the first 1 to make it inclusive, the second to also jump from <math>13 \Rightarrow 26</math>) to get to <math>26</math>. |
− | Regrouping, work from <math> | + | Regrouping, work from <math>24 | 26\Rightarrow 39</math> |
*There are <math>1 + 5 = 6</math> ways to get to <math>24</math> | *There are <math>1 + 5 = 6</math> ways to get to <math>24</math> | ||
** Continuing from <math>24</math>, there are <math>6 \cdot \left(\frac{39 - 27}{3}\right) = 24</math> ways to continue to <math>39</math>. | ** Continuing from <math>24</math>, there are <math>6 \cdot \left(\frac{39 - 27}{3}\right) = 24</math> ways to continue to <math>39</math>. | ||
*There are <math>4 + 25 = 29</math> ways to reach <math>26</math>. | *There are <math>4 + 25 = 29</math> ways to reach <math>26</math>. | ||
− | ** Continuing from <math>26</math>, there are <math>29 \cdot \left(\frac{39-27}{3} + 1\right) = 145</math> (note that the 1 is not to inclusive, but to count <math> | + | ** Continuing from <math>26</math>, there are <math>29 \cdot \left(\frac{39-27}{3} + 1\right) = 145</math> (note that the 1 is not to inclusive, but to count <math>26 \Rightarrow 39</math>). |
In total, we get <math>145 + 26 = 169</math>. | In total, we get <math>145 + 26 = 169</math>. | ||
Line 59: | Line 59: | ||
The answer is <math>6*6*5 - 11=169</math> | The answer is <math>6*6*5 - 11=169</math> | ||
+ | |||
+ | === Solution 3 === | ||
+ | |||
+ | Another way would be to use a table representing the number of ways to reach a certain number | ||
+ | |||
+ | <math>\begin{tabular}{c|c|c|c|c|c|c|c|c|c|c|c|c|c|c} | ||
+ | 0 & 3 & 6 & 9 & 12 & 13 & 15 & 18 & 21 & 24 & 26 & 27 & 30 & 33 & 36 \\ | ||
+ | \hline | ||
+ | 1 & 1 & 1 & 1 & 1 & 5 & 6 & 6 & 6 & 6 & 29 & 35 & 35 & 35 & 35 \\ | ||
+ | \end{tabular}</math> | ||
+ | |||
+ | How we came with each value is to just add in the number of ways that we can reach that number from previous numbers. For example, for <math>26</math>, we can reach it from <math>13, 15, 18, 21, 24</math>, so we add all those values to get the value for <math>26</math>. For <math>27</math>, it is only reachable from <math>24</math> or <math>26</math>, so we have <math>29 + 6 = 35</math>. | ||
+ | |||
+ | The answer for <math>39</math> can be computed in a similar way to get <math>35 * 4 + 29 = \boxed{169}</math>. | ||
== See also == | == See also == |
Revision as of 00:13, 9 March 2011
Problem
A frog is placed at the origin on the number line, and moves according to the following rule: in a given move, the frog advances to either the closest point with a greater integer coordinate that is a multiple of 3, or to the closest point with a greater integer coordinate that is a multiple of 13. A move sequence is a sequence of coordinates which correspond to valid moves, beginning with 0, and ending with 39. For example, is a move sequence. How many move sequences are possible for the frog?
Solution
Solution 1
Let us keep a careful tree of the possible number of paths around every multiple of .
From , we can end at either
(mult. of 3) or
(mult. of 13).
- Only
path leads to
- Continuing from
, there is
way to continue to
- There are
ways to reach
.
- Continuing from
- There are
ways to reach
.
- Continuing from
, there are
ways to get to
- There are
ways (the first 1 to make it inclusive, the second to also jump from
) to get to
.
- Continuing from
Regrouping, work from
- There are
ways to get to
- Continuing from
, there are
ways to continue to
.
- Continuing from
- There are
ways to reach
.
- Continuing from
, there are
(note that the 1 is not to inclusive, but to count
).
- Continuing from
In total, we get .
In summary, we can draw the following tree, where in ,
represents the current position on the number line, and
represents the number of paths to get there:
|
|
Again, this totals .
Solution 2
We divide it into 3 stages. The first occurs before the frog moves past 13. The second occurs before it moves past 26, and the last is everything else.
For the first stage the possible paths are ,
,
,
,
, and
. That is a total of 6.
For the second stage the possible paths are ,
,
,
,
, and
. That is a total of 6.
For the second stage the possible paths are ,
,
,
, and
. That is a total of 5.
However, we cannot jump from (this eliminates 5 paths) or
(this eliminates 6 paths), so we must subtract
.
The answer is
Solution 3
Another way would be to use a table representing the number of ways to reach a certain number
How we came with each value is to just add in the number of ways that we can reach that number from previous numbers. For example, for , we can reach it from
, so we add all those values to get the value for
. For
, it is only reachable from
or
, so we have
.
The answer for can be computed in a similar way to get
.
See also
2007 AIME I (Problems • Answer Key • Resources) | ||
Preceded by Problem 5 |
Followed by Problem 7 | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 | ||
All AIME Problems and Solutions |