若方程cos2x-3sinxcosx=k+1有解,则k的取值范围是