设Sn是等比数列{an}的前n项和,S3,S9,S6成等差数列,则公比q=______.