If $\dfrac{x^2+x+1}{1-x} = a_0+a_1x+a_2x^2+\cdots$
then $\displaystyle\sum_{\gamma = 1}^{50}a_{\gamma} = ??$
This is a sum related to evaluating a series, from the chapter binomial theorem.
This is how I tried to solve the question
I took the $(1-x)$ from the denominator to the numerator making it a $$(1-x)^{-1}$$ and then expanded it binomially, and I tried to find the sum of the coefficients of $$x,x^2,x^3,....,x^{50}$$ However my answer isn't matching. I got $1325$ but the answer is $149$.
update:i do get my mistake, but how do i go about solving it?

Your first few terms are correct. But you only have three terms in the numerator, so the series is $1+2x+3x^2+3x^4+3x^5+...$