For two arbitrary finite sequences of naturals $a_1, a_2, \cdots a_n$ and $b_1, b_2, b_3 \cdots b_n$ let
$$c = \sum_{i=1}^n (a_i)^{\frac{1}{b_i}}$$
Is there an algorithm which generates the monic polynomial $p \in \Bbb Z[X] $ of smallest degree such that $p(c) = 0$?
Motivation: I'm interested in generalizing the result in this question.
Edit: The "motivation" has an answer as linked in the comments. My idea was using the rational root theorem instead. Nevertheless, I think this problem is somewhat interesting by itself. Another related problem is this.