解:设公差为d,数列各项均为正,d≥0a4=2a2a1+3d=2(a1+d)d=a1an=na1a1、4、a4成等比数列,则a1·a4=16a1·4a1=16a1²=4数列各项均为正,a1>0a1=2d=a1=2an=a1+(n-1)d=2+2(n-1)=2n数列{an}的通项公式为an=2n。