a)\(2^{x-1}=16\)
\(\Rightarrow2^{x-1}=2^4\)
\(\Rightarrow x-1=4\Rightarrow x=5\)
b)\(\left(x-1\right)^2=25\)
\(\Rightarrow\left(x-1\right)^2=5^2=\left(-5\right)^2\)
\(\Rightarrow\left(x-1\right)^2=5^2\) hoặc \(\left(x-1\right)^2=\left(-5\right)^2\)
\(\Rightarrow x-1=5\) hoặc \(x-1=-5\)
\(\Rightarrow x=6\) hoặc \(x=-4\)