dp[k] = {k+{dp[k-1]}}+{k SWAP k+{dp[k-1]}}