Problem:
$\triangle ABC$ is such that $AB=n$, $AC=n-1$, $BC=n+1$ (with $n$ a natural number) and angles $A$, $2A$, $\pi-3A$. Find $n$.
The answer is $n=5$.
My try:
By the Law of Cosines we have:
$$\begin{align} n^{2} &=(n-1)^{2}+(n+1)^{2}-2(n^{2}-1)\cos (\pi-3A) \\ (n-1)^{2}&=n^{2}+(n+1)^{2}-2n(n+1)\cos A \\ (n+1)^{2}&=n^{2}+(n-1)^{2}\cos (2A) \end{align}$$
I know that $$\cos(\pi-3A)=-\cos(3A)=3\cos A-4\cos^{3}A \quad\text{and}\quad \cos(2A)=2cos^{2}A-1$$
From the second equation we have
$$\cos A=\frac{n+4}{2(n+1)}$$
But when I applied I can't get correct answer.
I'm searching a simple way to find $n$.
And we can generalized for sides $4k$, $5k$, $6k$ ($k$ a natural number).
By law of sines: $$\frac{\sin\alpha}{n-1}=\frac{\sin2\alpha}{n+1},$$ which gives $$\cos\alpha=\frac{n+1}{2(n-1)}.$$ Also, $$\frac{\sin\alpha}{n-1}=\frac{\sin3\alpha}{n}$$ or $$\frac{n}{n-1}=3-4\sin^2\alpha$$ or $$\frac{n}{n-1}=3-4+\frac{(n+1)^2}{(n-1)^2}$$ or $$n^2-n=-n^2+2n-1+n^2+2n+1.$$ Can you end it now?
You made a mistake for $\cos2\alpha$. $$\cos2\alpha=\frac{n^2+(n-1)^2-(n+1)^2}{2n(n-1)},$$ which gives $$\cos2\alpha=\frac{n-4}{2(n-1)}.$$