已知数列{an}是公差不为零的等差数列且a1=1,且a2,a4,a8成等比数列.①求通项an