$x$, $y$, and $z$ are three positive integers, with $x > z$.
$(x, 2y, z)$ is an arithmetic progression
$(x, y, z)$ is a geometric progression.
Find the value of $z/x$.
I mapped $(x, 2y, z)$ to $(a, a + d, a + 2d)$ and $(x, y, z)$ to $(a, ar, ar^2)$
My current approach: find $r$ by dividing $ar$ by $a$, and $ar^2$ by $ar$. Set these 2 equations equal to each other. Which works out to be $\ (a+2d) / 2a = (2a + 4d) / (a +d) = r $.
I am stuck here, what should my next step be?
With three term progressions, I think it is easier to fix the middle term. Thus, in this case, we write the arithmetic progression as $$(x,2y,z)=(2y-P,2y,2y+P)$$ and the geometric as $$(x,y,z)=\left(\frac yt,y,yt\right)$$
On first glance it appears that we have two equations in the three variables $(y,P,t)$ but we can eliminate one of these. Nothing in the problem changes if we scale both triples (the a.p. and the g.p. remain in progression and the ratio of the outer terms is unchanged). Thus we may assume that $y=1$ so we have $$(2-P,2,2+P)\quad \&\quad \left(\frac 1t,1,t\right)$$
(Note: the value of $P$, though not of $t$, changed after the scaling, but we will continue to use the same variable for simplicity. The scale factor will cancel out in the final ratio).
We now have two equations in two unknowns. So:
$$2-P=\frac 1t\quad \&\quad 2+P=t\implies 2-P=\frac 1{2+P}\implies 4-P^2=1\implies P=-\sqrt 3$$
Note: we are told that $x>z$ which implies that $P<0$.
Thus $$P=-\sqrt 3\quad \& \quad t=2-\sqrt 3$$ and the desired ratio is $$\boxed {\frac {2-\sqrt 3}{2+\sqrt 3}=\left(2-\sqrt 3\right)^2=7-4\sqrt 3}$$
Note: this solution is not compatible with the stated condition that $x,y,z\in \mathbb N$. Indeed, I do not see how that condition can be satisfied. If there were a solution over the natural numbers then the ratio $\frac zx$ would clearly be rational, which my solution is not. So, either I am mistaken or the extra condition means there is no solution.