first, list $P(1), P(2), P(3), P(4)$ to find some pattern:
$P(1)=2$
$P(2)=2P(1)+2^2\times2$
$P(3)=2P(2)+2^3\times3=2(2P(1)+2^2\times2)+2^3\times3$
$P(4)=2P(3)+2^4\times4=2(2(2P(1)+2^2\times2)+2^3\times3)+2^4\times4$
the pattern for $P(n)$ is there will be $a-1$ number of 2 multiplying $P(1)$, $a-2$ number of 2 multiplying $(2^2\times2)$, $a-3$ number of 2 multiplying $(2^3\times3)$...
Therefore, we can write $2^{n-1}\times2+2^{n-2}\times2^2\times2+2^{n-3}\times2^3\times3+...+2^{n-n}\times2^n\times n$
Simplify it, we get $2^n\times1+2^n\times2+2^n\times3+...+2^n\times n$.
take out the common factor, $2^n\times(1+2+3+...+n)$ which is $2^n\times\frac{(1+n)n}{2}$.