已知{an}是公比为常数q的等比数列,若a4,a5+a7,a6成等差数列,则q等于 ______.