设数列{an}的前n项和sn=3^n+pn+q,则{an}为等比数列的充要条件是p= ,q=