On the Betti Polynomials of certain graded ideals