Let f:R→A={y:0≤y<π2} be a function such that f(x)=tan−1(x2+x+k), where k is a constant. The value of k for which f is an onto function is