For a complex number x, ∥x∥:=min{∣x−m∣:m∈Z}. Let k≥1 be an integer, and K be a number field. Let I^±1,…,I^±k be algebraic numbers with ∣I^±i∣≥1 and let di denotes the degree of I^±i for 1≤i≤k. Set d=d1+⋯+dk. In this article, we show that if the inequality 0<∥I^»1qI^±1n+⋯+I^»kqI^±kn∥<qd+εI^¸n has infinitely many solutions in (n,q,I^»1,…,I^»k)∈N2×(K×)k with absolute logarithmic Weil height of I^»i is small compared to n and some I^¸∈(0,1), then, in particular, the tuple (I^»1qI^±1n,…,I^»kqI^±kn) is pseudo-Pisot, and at least one of I^±i is an algebraic integer. This result can be viewed as Roth's type theorem for linear combinations of powers of algebraic numbers over Q. The case q=1 was recently proved by Kulkarni, Mavraki, and Nguyen \cite{kul}, which is a generalization of Mahler's question proved in \cite{corv}. As a consequence of our result, we obtain the following generalization of this question: let I^±>1 be an algebraic number with d=[Q(I^±):Q]. For a given ε>0, if the inequality 0<∥I^»qI^±n∥<qd+εI^¸n has infinitely many solutions in the tuples (n,q,I^»)∈N2×K× with absolute logarithmic Weil height of I^» is small compared to n and I^¸∈(0,1), then some power of I^± is a Pisot number. As an application of this result, we deduce the transcendence of certain infinite products of algebraic numbers.