Let $r=3^s-s$ and $s=2^n+1$. What is the value of $r$ when $n=2$?
First substitute $n=2$ into the expression for $s$ to find $s=2^2+1=5$.  Then substitute $s=5$ into the expression for $r$ to find $r=3^5-5=243-5=\boxed{238}$.
238
Level 1
Algebra
Problem: Let $r=3^s-s$ and $s=2^n+1$. What is the value of $r$ when $n=2$?
Solution:<|START_OF_LATENT|><|PRIOR_PREFIX|>To find the value of $r$, we first need to determine the value of $s$ using the equation $s=2^n+1$. Given that $n=2$, we substitute $n$ into the equation:

1. Calculate $s$:
   s = 2^2 + 1
   s = 4 + 1
   s = 5

Next, we substitute the value of $s$ into the equation for $r$:

2. Calculate $r$:
   r = 3^s - s
   r = 3^5 - 5

Now, we need to compute $3^5$:

3. Calculate $3^5$:
   3^5 = 3 * 3 * 3 * 3 * 3
   3^5 = 243

Now, substitute this value back into the equation for $r$:

4. Substitute and simplify:
   r = 243 - 5
   r = 238

Thus, the final answer is 238.<|END_OF_LATENT|> The final answer is $238$.