a(1)=s(1)=3+p,
s(n+1)=3^(n+1)+p,
a(n+1)=s(n+1)-s(n)=3^(n+1)-3^n=2*3^n,
a(1)=3+p,
a(n)=2*3^(n-1),n=2,3,...
a(2)=2*3=6,
q=a(2)/a(1)=6/(3+p)=a(3)/a(2)=3,
6=3(3+p),2 = 3+p,p=-1.
p+q=-1+3=2
a(1)=s(1)=3+p,
s(n+1)=3^(n+1)+p,
a(n+1)=s(n+1)-s(n)=3^(n+1)-3^n=2*3^n,
a(1)=3+p,
a(n)=2*3^(n-1),n=2,3,...
a(2)=2*3=6,
q=a(2)/a(1)=6/(3+p)=a(3)/a(2)=3,
6=3(3+p),2 = 3+p,p=-1.
p+q=-1+3=2