a2=a1*d
a5=a1*d^4
4=a1*d
-1/2=a1*d^4
d^3=-1/2÷4=-1/8
d=-1/2
a1=4÷(-1/2)=-8
所以通项公式an=(-8)*(-1/2)^(n-1)