设等差数列{an}的公差d不为零,a1=9d.若ak是a1与a2k的等比中项,则k=______.