Given a nonnegative integer $k$. What is the value of the following sum: $$\sum_{m = 0}^k \sum_{n = 0}^m \binom{k}{m} \binom{m}{n}$$
I need this in order to simplify some of my work. I tried to expand it using binomial formula but didn't lead anywhere. I am simplifying weyl denominator formula for certain Kac-Moody algebras and I end up with this sum.
$${k\choose m}{m \choose n} = {k!\over m!(k-m)!}{m!\over n!(m-n)!}={k\choose k-m,n,m-n}$$ so we have $$\sum_{m=0}^k\sum_{n=0}^m{k\choose k-m,n,m-n}=3^k,$$ the number of ways to distribute $k$ objects in $3$ piles.