设初始位置为a0,
a1=a0-1,
a2=a1+2,
.
a(2k+1)=a(2k)-(2k+1),k=0,1,2,.
a(2k)=a(2k-1)+(2k),k=0,1,2,3.
得
a(2k+1)=a(2k-1)-1,
a(2k+2)=a(2k)+1,
奇数项是公差为-1的等差数列,
偶数项是公差为1的等差数列,
a2003=1000 =a0-1002
a0=2002
你验证看看对不对,数可能会算错
设初始位置为a0,
a1=a0-1,
a2=a1+2,
.
a(2k+1)=a(2k)-(2k+1),k=0,1,2,.
a(2k)=a(2k-1)+(2k),k=0,1,2,3.
得
a(2k+1)=a(2k-1)-1,
a(2k+2)=a(2k)+1,
奇数项是公差为-1的等差数列,
偶数项是公差为1的等差数列,
a2003=1000 =a0-1002
a0=2002
你验证看看对不对,数可能会算错