If g(x)=3x^2-1 what is the value of g(a+1)?