I'm trying to solve the recurrence equation from CLRS ed 2. $$ T(n) = 2T(\sqrt{n}) + 1 $$ The question says the solution should be asymptotically tight, but at first I didn't read it and solved it with a substitution of variables and tried to find a big-O solution. $$ m = lg(n) \\ S(m) = T(2^m) \\ S(m) = 2S(m/2)+1 $$ After this, I guessed the solution to be O(lgn) and proved it; changing back the m's to be in the form of n I got T(n) to be O(lglgn).
However, this is not a tight bound and after changing my guess for S(m) from O(lgm) to Θ(m) it worked. The resulting analysis led me to T(n) being Θ(lgn).
Though this is the part that confuses me, how can a function be O(lglgn) yet Θ(lgn)? I can't seem to find my error.