已知数列an满足a1=1/2,anan+1=2an-an+1,求an