Let $a_{1}=\cos x$ with $0<x<\frac\pi2$ and let $b_{1}=1$. Given that
$$
\begin{aligned}
a_{n+1}&={\textstyle \frac{1}{2}}(a_{n}+b_{n}),\\[2mm]
b_{n+1}&=(a_{n+1}b_{n})^{1/2},
\end{aligned}
$$
find $a_{2}$ and $b_{2}$ and show that
$$
a_{3}=\cos\frac{x}{2}\cos^{2}\frac{x}{4}
\ \quad\text{and}\quad
\ b_{3}=\cos\frac{x}{2}\cos\frac{x}{4}.
$$
Guess general expressions for $a_{n}$ and $b_{n}$ (for $n\geqslant2$) as products of cosines and verify that they satisfy the given equations.