已知数列an满足a1=1/2,a(n+1)=an/(1+an),且数列(n^2-k/an)的项中仅n=5时取最小值,则k