I have a problem understand this math problem:
Write a number on the board. This number is either multiplied by $2$ or raised to a square. If the number $"1"$ is written at the beginning, at least how many steps should be taken to reach $2^{2018}?$
A) $15$
B) $16$
C) $17$
D) $18$
E) $12$
I can't solve this problem. Because I don't understand the question. Now, I need to understand the question. Then maybe I can.
Is there a problem in the question? The question unclear for me...Can you explain me, what is the meaning of the question?
Since you want to go to $2^{2018}$, it's easier to use exponents: the operations are doubling or adding $1$, start from $0$ and get to $2018$.
The best strategy is going backwards: $$ 2018 \xrightarrow{/2} 1009 \xrightarrow{-1} 1008 \xrightarrow{/2} 504 \xrightarrow{/2} 252 \xrightarrow{/2} 126 \xrightarrow{/2} 63 \xrightarrow{-1} 62 \xrightarrow{/2} 31 \xrightarrow{-1} 30 \xrightarrow{/2} 15 \xrightarrow{-1} 14 \xrightarrow{/2} 7 \xrightarrow{-1} 6 \xrightarrow{/2} 3 \xrightarrow{-1} 2 \xrightarrow{/2} 1 \xrightarrow{-1} 0 $$ Is this the most efficient way?
At odd numbers you have no choice. Suppose the number $n$ is even; if it is a multiple of $4$, $n=4k$, you get at $k$ in two steps and this is obviously the best choice: otherwise you have to subtract $1$ twice, divide by $2$, subtract $1$ and divide again by $2$ just to arrive at $k-1$, five steps against two for a very small gain; in the average, this method is worse. If $n=4k+2$ you can choose between dividing by $2$ and subtracting $1$ or subtracting $1$ twice and dividing by $2$: two steps in the former case, three in the latter.