Find the kth term for f(x)= 3/(1+x)

1/(1+x) = 1 - x + x^2 - x^3 + x^4 - ...

So, the kth term is 3(-x)^(k-1)