Let M(j) be the maximum sum of terms of a consecutive subsequence, which last term is aj. Prove that M(j)=max{M(j-1)+aj, aj}.

Thanks in advance!!!