The given equation can be rewritten as follows:
1+3x+9x2+27x3+81x4+243x5=1−p61−p
The LHS can be simplified as:
1+3x+9x2+27x3+81x4+243x5=1+(3x)1+(3x)2+(3x)3+(3x)4+(3x)5
The LHS is the sum of 6 terms which are in Geometric Progression (G.P.) with the common ratio 3x and the first term being 1.
The sum of n terms in G.P. with the common ratio r and first term a is a(1−rn)1−r
Thus, the LHS reduces to 1−(3x)61−3x
On comparing LHS and RHS, we observe that 3x=p⇒px=3