Problem 1178: (2009 AMC 12a, 24)
The tower function of twos is defined recursively as follows: $T(1) = 2$ and $T(n + 1) = 2^{T(n)}$ for $n\ge1$. Let $A = (T(2009))^{T(2009)}$ and $B = (T(2009))^A$. What is the largest integer $k$ such that \[\underbrace{\log_2\log_2\log_2\ldots\log_2B}_{k\text{ times}}\] is defined?
$\textbf{(A)}\ 2009$ $\textbf{(B)}\ 2010$ $\textbf{(C)}\ 2011$ $\textbf{(D)}\ 2012$ $\textbf{(E)}\ 2013$
- Let $T=T(2009)$, so $A=T^T$ and $B=T^A$. Then $\log_2B=A\log_2T=A\cdot T(2008)$ and $\log_2\log_2B=\log_2A+T(2007)=T\cdot T(2008)+T(2007)$.
- Key step: if $m\ge2$ and $0<\delta<1$, then $\log_2(T(m)+\delta)=T(m-1)+\log_2\left(1+\frac\delta{T(m)}\right)$, and the last term is between $0$ and $1$. So a number of the form $T(m)+\delta$ becomes $T(m-1)+\delta'$ with $0<\delta'<1$.
- The third logarithm is $\log_2(T\cdot T(2008))+\log_2\left(1+\frac{T(2007)}{T\cdot T(2008)}\right)=T(2008)+T(2007)+\varepsilon$ with $0<\varepsilon<1$. The fourth is $T(2007)+\log_2\left(1+\frac{T(2007)+\varepsilon}{T(2008)}\right)$, of the form $T(2007)+\delta$. Applying the key step repeatedly, after $4+j$ logarithms the value is $T(2007-j)+\delta$ with $0<\delta<1$, so after $2010$ it lies in $(T(1),T(1)+1)=(2,3)$.
- The $2011$th lies in $(1,\log_23)$, the $2012$th in $(0,\log_2\log_23)\subset(0,1)$, so the $2013$th is negative, and the $2014$th is undefined. So $k=2013$. The answer is (E).
Let $T(1)=2$ and $T(n+1)=2^{T(n)}$. Let $A=T(10)^{T(10)}$. What is the largest $k$ for which $\underbrace{\log_2\log_2\cdots\log_2}_{k}A$ is defined?