I am currently taking a course in Modern Physics mainly focused on Special Relativity and came up with the following problem:
Let $O_1$ be an observer at rest. A second observer $O_2$ is moving to the right at speed $v$ with respect to $O_1$, and a third observer $O_3$ is moving also to the right at speed $v'$ but relative to $O_2$. During $\Delta t_3$ an event occurs in $O_3$'s frame that is measured as $\Delta t_2=\gamma'\Delta t_3$ where: $$\gamma'=\frac{1}{\sqrt{1-\frac{v'^2}{c^2}}}$$
Similarly, $\Delta t_2$ is measured by $O_1$ as $\Delta t_1=\gamma\Delta t_2$ where: $$\gamma=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}}$$ Hence, $\Delta t_1=\gamma\gamma'\Delta t_3$ : $$\gamma\gamma'=\frac{1}{\sqrt{1-v^2/c^2 - v'^2/c^2 +v^2v'^2/c^4}}$$
Now if we want to directly measure $\Delta t_1$ from $\Delta t_3$ without going through $\Delta t_2$ we would first have to express the speed of $O_3$ in $O_1$'s frame using the Lorentz transformation: $$v''=\frac{v+v'}{1+vv'/c^2}$$
Then applying the formula for time dilation: $$\Delta t_1=\gamma''\Delta t_3$$ where : $$\gamma''=\frac{1}{\sqrt{1-v''^2/c^2}}$$ $$=\frac{1}{\sqrt{1-(\frac{v+v'}{1+vv'/c^2})^2/c^2}} $$
By identification $\gamma''$ is supposed to be equal to $\gamma\gamma'$ which is clearly not the case. I have tried expanding $\gamma''$ and replacing terms with their series expansions to no avail. I can't seem to figure out what the fallacy is.