Let \([\, \cdot \,]\) be the floor function and \(\Vert x\Vert \) denote the distance from x to the nearest integer. In this paper we show that whenever \(\alpha \) is irrational and \(\beta \) is real then for any fixed \(\frac{13}{14}<\gamma <1\) , there exist infinitely many prime numbers p satisfying the inequality \(\begin{aligned} \Vert \alpha p^2+\beta \Vert < p^{\frac{13-14\gamma }{29}+\varepsilon } \end{aligned}\) and such that \(p=[n^{1/\gamma }]\) .