I’ve learned recently that the formula for A001187 is defined recursively. The formula is: $$n2^{\binom n2}=\sum_{k=0}^{n} \binom{n}{k}kd_k2^{\binom{n-k}{2}}$$ Where $d_k$ is the number of connected labeled graphs with $k$ nodes. That way is hard to understand for me, is there a simpler way to derive this using combinatorics from the graph?
I was thinking something like the following but I don’t think it’s correct: For $k$ from $1$ to $n-1$, we choose $k$ vertices. We then find the connected graph for this $k$ vertices $d_k$. Then the exponent accounts for the rest of the possible edges.
Is there a more formal and correct way to derive this?