While trying to solve a probability question about a coin flip game, I arrived at the expression $\sum_{k=0}^n {n\choose k}\sum_{j=0}^{k-1}{{n-1}\choose j}.$ Computing this sum for several low values of $n$ suggested that it summed to $2^{2n-2}$, suggesting there is an identity:
$$\sum_{k=0}^n {n\choose k}\sum_{j=0}^{k-1}{{n-1}\choose j}=2^{2n-2}$$
However I was not able to prove the identity by means of the Pascal recurrence relation, the Chu-Vandermonde identity $\sum_{k=0}^r {m\choose k}{n\choose {r-k}}={{m+n}\choose r}$, nor the $\sum_{k=0}^n{n\choose k} = (1+1)^n=2^n$ identity from the binomial theorem.
Can I get a hint how to proceed?
This is similar to the proof by darij grinberg in the other thread but the formula there looks slightly different.
Let $$S=\sum_{k=0}^n {n\choose k}\sum_{j=0}^{k-1}{{n-1}\choose j}$$ be the original sum. Then $$S=\sum_{k=0}^n{n\choose k}\left[2^{n-1}-\sum_{j=k}^{n-1}{{n-1}\choose j}\right]$$ $$=\sum_{k=0}^n {n\choose k}\cdot 2^{n-1}-\sum_{k=0}^n{n\choose k}\sum_{j=k}^{n-1}{{n-1}\choose j}$$ $$=2^n\cdot 2^{n-1}-\sum_{k=0}^n{n\choose {n-k}}\sum_{j=k}^{n-1}{{n-1}\choose j}$$ $$=2^{2n-1}-\sum_{k’=0}^n{n\choose k’}\sum_{j=n-k’}^{n-1}{{n-1}\choose j}~({\rm with~}n-k=k’)$$ $$=2^{2n-1}-\sum_{k’=0}^n{n\choose k’}\sum_{j=n-k’}^{n-1}{{n-1}\choose {n-1-j}}$$ $$=2^{2n-1}-\sum_{k’=0}^n{n\choose k’}\sum_{j’=0}^{k’-1}{{n-1}\choose j’}~({\rm with~}n-1-j=j’)$$ $$=2^{2n-1}-S,$$ hence $$2S=2^{2n-1}~{\rm and~so~}S=2^{2n-2},$$ as required.