设数列An的前n项和Sn=2an-2的n次方,求A1,A4