\(3^x+3^{x+1}+3^{x+2}=3159\\ =>3^x+3^x.3+3^x.3^2=3159\\ =>3^x\left(1+3+3^2\right)=3159\\ =>3^x.13=3159\\ =>3^x=3159:13\\ =>3^x=243\\ =>3^x=3^5\\ =>x=5\)
\(3^x+3^{x+1}+3^{x+2}=3159\\ 3^x+3^x.3+3^x.3^2=3159\\ 3^x.\left(1+3+3^2\right)=3159\\ 3^x.13=3159\\ 3^x=3159:13\\ 3^x=243\\ 3^x=3^5\\ x=5\)