I am trying to find an efficient way of calculating the unsigned coefficients of $$P_n(x)=\prod_{k=1}^{n}(x-k),$$ i.e. I want to speed up the process of calculating $a_k(n)$ such that $$P_n(x)=\sum_{k=0}^{n}(-1)^ka_k(n)x^{n-k}.$$
I found a method, but for $n\ge 5$ it is very inefficient. I found it by noting that $$\prod_{a\in A}(x-a)=\sum_{k=0}^{|A|}(-1)^{k}x^{|A|-k}\sum_{P\subseteq A\\ |P|=k}\prod_{u\in P}u\ .$$ So setting $A=\{1,2,...,n\}$ for some $n\in\Bbb N$, $$\prod_{a\in A}(x-a)=P_n(x)=\sum_{k=0}^{n}(-1)^kx^{n-k}\sum_{P\subseteq A\\ |P|=k}\prod_{u\in P}u\ .$$ So of course I defined $$a_0(n)=1$$ and $$a_k(n)=\sum_{P\subseteq\{1,...,n\}\\ \quad |P|=k}\prod_{u\in P}u\ .\tag{1}$$
If we plug in $x=0$, $$P_n(0)=\prod_{k=1}^{n}(-k)=(-1)^n n!\ ,$$ so that $$a_n(n)=n!\ .$$ It is also fairly easy to show that $$a_1(n)=\frac{n(n+1)}{2}\ .$$ I was also able to show that $$a_2(n)=\sum_{(u,v)\in R_n}uv$$ where $$R_n=[1,n]^2\cap\left\{(x,y)\in\Bbb N^2: y-x\in[1,n-1]\right\},$$ But that isn't simpler by any stretch of the imagination.
Is there a more efficient version of $(1)$? Thanks.
Edit for context:
As I said in the comments, there is no reason that I need these coefficients, I just thought it would be an interesting problem to find them. Once I found them, I wondered if there was a more efficient way of calculating them, so I asked here.