Let $A$ be an $R$-algebra (commutative with identity). Then there is a natural bijection $\mathrm{Hom}_{R-\mathrm{Alg}}(R[X]/(X^n-1),A)=\{a\in A:a^n=1\}$ given by $\varphi\mapsto\varphi(x)$, where $x=X+(X^n-1)$ is the image of $X$ in $R[X]/(X^n-1)$. (In fancier language, $\mathrm{Spec}(R[X]/(X^n-1))$ is the group scheme of $n$-th roots of unity over $R$.) This is a consequence of the universal property of the $R$-algebra $R[X]$.
There is also a natural bijection $\mathrm{Hom}_{R-\mathrm{Alg}}(R[\langle b\rangle],A)\rightarrow\mathrm{Hom}_{\mathrm{Grp}}(\langle b\rangle,A^\times)$ given by restricting along the canonical injection $\langle b\rangle\hookrightarrow R[\langle b\rangle ]$. This is a consequence of the universal property of the group algebra $R[\langle b \rangle]$. The latter set of group homomorphisms is in canonical bijection with $\{a\in A:a^n=1\}$ by sending a group homomorphism to its image on the generator $b$ (this is just because $\langle b\rangle $ is a cyclic group of order $n$). I should mention that these bijections are only pinned down by the choice of a generator, but once one fixes a generator, one gets canonical bijections.
Thus both $R$-algebras represent the same functor on the category of all (commutative) $R$-algebras (with identity), so by Yoneda's lemma there is a unique isomorphism $R[X]/(X^n-1)\cong R[\langle b\rangle]$ compatible with the above identifications. As can be checked, this isomorphism is the one that interchanges $X$ and $b$.
Similar reasoning applies to $R[X,X^{-1}]$ and $R[\mathbf{Z}]$, replacing $\{a\in A:a^n=1\}$ with $A^\times$, the unit group of $A$. (Again in fancier language, the spectra of these two $R$-algebras both represent the multiplicative group scheme over $R$.)
I realize the OP might not be familiar with this language, but I still thought it might be useful to have this perspective recorded as an answer.