Let $\mathbb{Q}[a]=\{r \in \mathbb{R}|r \text{ is algebraic over }\mathbb{Q}(a)\}$, and $f(x)$ be a polynomial with rational coefficients such that $f(p)=q$. Thanks to the answers to my question here is now clear to me that $p$ being algebraic implies $q$ being algebraic too; Now I'm wondering why this implies also $\mathbb{Q}[q]=\mathbb{Q}[p]$. Since we can express $q$ in terms of $p$, it's clear that $\mathbb{Q}[q] \subset \mathbb{Q}[p]$, but I can't see the converse.
EDIT:The statement above is written in the short paper "Versatile Coins" , Szalkai and Velleman, The American Mathematical Monthly 1993, pag.30 (last line).
I give more information about the context: the polynomial $f(x)$ above is of the form $\sum_{i=0}^n a_i p^i(1-p)^i$ with $0\leq a_i \leq {n \choose i}$, and $p,q \in [0,1]$.