等差数列{an}中,am+n=A,am-n=B(m>n),求an