PLEASE HELP WILL REWARD BRAINLIEST!

the first three terms in the binomial expansion of (1+3x)^n are 1+kx-x^2, where n and k are constants. n>1/2.
a) work out the value of n and the value of k