若{an}为等比数列,a1=1,且公比q≠1,an=a1a2a3.a10 则n等于