Asymptotic Analysis & Recurrences

Your answer
Answer & solution
Answer: A (no official key was published)
Write n=2k. Repeated squaring computes a²,a⁴,…,a2^k, using exactly k multiplications. To prove minimality in the ordinary multiplication-only straight-line model, observe that one multiplication can at most double the largest exponent already available. Starting with exponent 1, after t multiplications every computed exponent is at most 2t. Reaching n therefore requires t≥log2 n=k. Construction and lower bound coincide, giving A; n=1 needs zero multiplications.