The sides of a triangle have lengths $p-q$, $p$ and $p+q$, where $p>q>0$. The largest and smallest angles of the triangle are $\alpha$ and $\beta$, respectively. Show by means of the cosine rule that
$$
4(1-\cos\alpha)(1-\cos\beta)
=\cos\alpha+\cos\beta.
$$
In the case $\alpha=2\beta$, show that
$$
\cos\beta=\frac34
$$
and hence find the ratio of the lengths of the sides of the triangle.